Replies: 2 comments 2 replies
-
You need to explictly define https://ogen.dev/docs/types/map#free-form-map type: object
additionalProperties: true |
Beta Was this translation helpful? Give feedback.
0 replies
-
@tdakkota Is there any option for a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now in my OpenAPI yaml, we have a component with a field that is marked as
type: object
.In all other OpenAPI code generators, this gets turned into
map[string]any
, letting us use this field for any key-value pairs (this is our desired goal).How should we define our OpenAPI yaml so that we either get Ogen to generate a map[string]any, or get it to generate something effectively equivalent (allows arbitrary key-value pairs of anything).
Beta Was this translation helpful? Give feedback.
All reactions