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

Fix query parameter OpenAPI generation #138

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Fix query parameter OpenAPI generation #138

merged 1 commit into from
Feb 26, 2024

Conversation

blomqma
Copy link
Owner

@blomqma blomqma commented Feb 26, 2024

The OpenAPI spec generation for query
parameters ended up adding unnecessary
union types for the generated schema which
is fixed here.

The query parameter parsing is now done with
the qs library instead of the previous manual
parsing and some test coverage is added to handle
both valid and invalid query parameter calls.

Copy link

vercel bot commented Feb 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-rest-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2024 7:33pm
next-rest-framework-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2024 7:33pm

@blomqma blomqma force-pushed the query-params-fix branch 2 times, most recently from fec5ee0 to 26c714d Compare February 26, 2024 18:58
@blomqma blomqma changed the title Fix query parameter parsing & OpenAPI generation Fix query parameter OpenAPI generation Feb 26, 2024
The OpenAPI spec generation for query
parameters ended up adding unnecessary
union types for the generated schema which
is fixed here.

The query parameter parsing is now done with
the `qs` library instead of the previous manual
parsing and some test coverage is added to handle
both valid and invalid query parameter calls.

Co-authored-by: itsjxck <1731116+itsjxck@users.noreply.github.com>
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