Skip to content

fix(route-loader): handle enum path parameters and add regression test#112

Merged
niels-nijens merged 2 commits into
nijens:mainfrom
jvdhehvg:fix-parameter-schema-enum
Jul 8, 2026
Merged

fix(route-loader): handle enum path parameters and add regression test#112
niels-nijens merged 2 commits into
nijens:mainfrom
jvdhehvg:fix-parameter-schema-enum

Conversation

@jvdhehvg

@jvdhehvg jvdhehvg commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This change fixes RouteLoader so enum-based path parameter requirements are built from the parameter schema enum instead of the parameter object itself.

Added a regression test to verify that a path parameter with schema.enum generates the expected route requirement regex.

@niels-nijens niels-nijens left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🎉

@niels-nijens niels-nijens merged commit d74388d into nijens:main Jul 8, 2026
16 checks passed
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.

2 participants