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 |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
#1899 is another option that may come in help here |
Beta Was this translation helpful? Give feedback.
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?
Beta Was this translation helpful? Give feedback.
All reactions