Skip to content

Conversation

@niels-nijens
Copy link
Member

This PR enables Symfony route parameter validation by translating path parameter constraints defined in the OpenAPI specification into Symfony route requirements.

The current implementation supports the following OpenAPI parameter types and formats:

  • boolean
  • integer
  • number
  • string with the formats date, date-time, email, and uuid
  • string parameters with an explicit pattern defined in the OpenAPI document

This allows route-level validation to be automatically derived from the API specification, ensuring better consistency and earlier validation failures.

For more details on Symfony route parameter validation, see:
https://symfony.com/doc/current/routing.html#parameters-validation

@niels-nijens niels-nijens merged commit f2d4dad into nijens:main Jan 20, 2026
20 checks passed
@niels-nijens niels-nijens deleted the route-path-parameter-requirements branch January 20, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant