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

Fixed validation of path parameters and query parameters #68

Merged
merged 2 commits into from Jan 22, 2019

Conversation

jiachen1120
Copy link
Contributor

@NicholasAzar @stevehu Since the RequestValidator depends on json-schema-validator. There is another PR related to this issue can be found in networknt/json-schema-validator repo. These changes in different repo contributions to the same issue.

RFC which specifies the details of fix can be found here: https://github.com/networknt/light-rfcs/blob/master/light-rest-4j/0001-openapi-validator-bug-fix.md

The following schema in specification can work properly
- minimum
- maximum
- enum
- pattern
- minItems
- maxItems
@whoamnick whoamnick self-requested a review January 17, 2019 19:26
@whoamnick
Copy link
Member

Linking to dependent PR: networknt/json-schema-validator#113

…eParamValue`

- Added comments to explain why would we check the length of queryParameterValues.
- Added comments to explain why/when we need to validate the queryParameterValues directly instead of check its elements.
@stevehu stevehu merged commit 9d12cd3 into networknt:develop Jan 22, 2019
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.

None yet

3 participants