core
core copied to clipboard
Parameters: Yaml Extractor does not recognise constraints
API Platform version(s) affected: 3.3.12
Description
Parameter constraints are not being read when defining the operation in yaml but can be defined in attribute definitions.
How to reproduce
Define an operation with parameters and constraints in a yaml file. The constraints will not be known / validated.
Additional Context
https://github.com/api-platform/core/blob/main/src/Metadata/Extractor/YamlResourceExtractor.php#L468