Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case sensitive parameter name matching for path parameters #4992

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xavierjefferson
Copy link

When scanning parameter list for path parameters, match parameter names on a case insensitive basis. Otherwise some parameters won't match if the schema isn't 100% correct

I had an openapi operation with path "/api/ocrforms/{formid}/active" but the parameter collection had name "formId". This was from a third party API that I didn't create.

Nswag either needs to work in case insensitive mode or inject "TODO" or some exception code to make it obvious when path segments don't match parameter names for a given operation.

…es on a case insensitive basis. Otherwise some parameters won't match if the schema isn't 100% correct
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