-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(protoc-gen-openapiv2/template): updateSwaggerObjectFromFieldBeha… #5278
base: main
Are you sure you want to change the base?
Conversation
Hi, thanks for your PR. Is there an issue this relates to? What is this fixing? Looks to be something related to field behavior? |
In proto3, all fields are Required by default, and the generated pb files are also Required, so the field behavior should be Required by default. |
Hm, I suppose that might make sense. Looks like there are quite a few test errors, could you try and fix those please? Also you'll need to regenerate the files, see CONTRIBUTING.md. |
ok |
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'm sort of worried that this is going to be a breaking change for users. It may be a semantically correct translation from the proto3 definitions, but this is going to change a LOT of people's swagger definitions. What do you think about adding an option for this? use_proto3_field_semantics
perhaps?
Good Idea 👍 |
…vior add default required rule
…vior add default required rule
References to other Issues or PRs
Have you read the Contributing Guidelines?
Brief description of what is fixed or changed
Other comments