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

openapi3filter: Fix default value for array in for query param #1000

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

Tommy-42
Copy link
Contributor

@Tommy-42 Tommy-42 commented Aug 1, 2024

after talking with @TheSadlig we noticed that the behavior was not working as expected.

I removed the code that @TheSadlig introduced as we found out that only one []interface{} case was needed.
I also added a test with a working openapi contract that match our problem to ensure the behavior was working as expected for our case.

cf: #992

fixes #991

ps: it is the 1000 PR, so many people involved !

@fenollp fenollp merged commit af90e9a into getkin:master Aug 2, 2024
5 checks passed
@Tommy-42 Tommy-42 deleted the tommy-42/fix_array_default branch August 3, 2024 19:19
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.

ValidateParameter does not apply default arrays correctly in queries
2 participants