api-platform / core

The server component of API Platform: hypermedia and GraphQL APIs in minutes
https://api-platform.com
MIT License
2.45k stars 877 forks source link

Parameters: Yaml Extractor does not recognise constraints #6578

Closed alpox closed 1 week ago

alpox commented 2 months ago

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

stale[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.