Replies: 3 comments 1 reply
|
Via https://github.com/oapi-codegen/oapi-codegen?tab=readme-ov-file#openapi-extensions you may be looking for It's done on a per-field level which you can modify either inline or on https://github.com/oapi-codegen/oapi-codegen?tab=readme-ov-file#modifying-the-input-openapi-specification #1694 is a way to set this globally but no ETA on merge |
0 replies
|
I understand that there are options for specific fields, but I have a long OpenAPI spec with many types. I don't want to have to annotate every field, for example. Can I apply this globally? |
1 reply
|
#1899 is another option that may come in help here |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
My generated code contains pointers when it would be preferable to have zero values:
vs
How do I get the latter to work?
All reactions