https://github.com/api-platform/core/blob/10827bb570c44cdee2c1bb7a307a8a18df9b4f00/src/Symfony/Validator/Metadata/Property/Restriction/PropertySchemaOneOfRestriction.php#L45 Should correct to ` $oneOfConstraints = $constraint->getNestedConstraints(); `