This commit also factors out `API_CONTAINED_DOC_TYPES` to be used by both `filterContainedDocs` and `addAllowedPropertiesRules`. PR Close #24000
This commit also factors out `API_CONTAINED_DOC_TYPES` to be used by both `filterContainedDocs` and `addAllowedPropertiesRules`. PR Close #24000