Skip to content

Conversation

@nfd
Copy link

@nfd nfd commented Jan 2, 2026

When validating, it's convenient to get path_params as part of context. For example, PATCH /items/<item id>/ might want to validate that item id, if supplied, references a record of a specific type. Obviously this could be done after validation, but it feels like it should be part of the validation process.

This PR adds path_params to the context for model validation.

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