Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[go-server] Add ability to handle nullable query param #17051
[go-server] Add ability to handle nullable query param #17051
Changes from 5 commits
e066b8b
363b330
432d7ba
607766d
e62a559
0387d4e
ea7fc16
b3fc40f
a9102b8
cdc9a5d
f13553b
f8bf9a0
dfc6895
3070e32
225de17
3f7c9d2
6744004
8a52e22
a682094
29ea180
0c3a0a3
54f064b
3a137d9
42f151e
6fa4b16
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think
isNullable
is behaving as you expect it to here. The Pet Store Specs have many non-required params that would show this change but none of them are showing up in this diff.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you provide a specific example? are they marked as nullable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One specific example from
openapi-generator/samples/server/petstore/go-api-server/api/openapi.yaml
is thebooleanTest
query parameter indeleteUser
.This should result in the the function signature for
deleteUser
having a*bool
parameter for the function signature inopenapi-generator/samples/server/petstore/go-api-server/go/api_user_service.go
There are numerous query parameters in that example file that have optional query parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object is not nullable, please see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#schema-object