-
Notifications
You must be signed in to change notification settings - Fork 55
chore(ws): update swag to 1.16.6 for required fields #489
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
chore(ws): update swag to 1.16.6 for required fields #489
Conversation
/hold The While this particular bug does not seem to affect |
…s in OpenAPI definitions - Updated swaggo/swag from v1.16.4 to v1.16.6 in go.mod and Makefile. - Added required fields to various OpenAPI definitions in docs.go and swagger.json for better validation via `--requiredByDefault` flag - `swag` `v1.16.6` contains a commit we authored to treat `json:omitempty` as `required: false`. That, in conjunction with `--requiredByDefault` flag, allows us to generate models with proper _required-ness_ Signed-off-by: Andy Stoneberg <[email protected]>
c51c964
to
62d1085
Compare
/unhold |
/ok-to-test |
@andyatmiami thanks for this, should make it easier for the frontend to generate a client. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: thesuperzapper The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
4f0a29d
into
kubeflow:notebooks-v2
related: #430
--requiredByDefault
flagswag
v1.16.6
contains a commit we authored to treatjson:omitempty
asrequired: false
. That, in conjunction with--requiredByDefault
flag, allows us to generate models with proper required-ness