-
Hello, I am trying to define a model with a property which will be with dynamic name (unknown at design time), technically the property I want to define can take any valid identfier. In OpenAPI I can represent this using the Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hmmm, so it is possible to add additional undefined properties by using For example:
Which would allow properties with valid keys and any type. |
Beta Was this translation helpful? Give feedback.
-
Is there any way to specify anything about the keys? I'd like to put something like
It's unfortunately a Map of <IdString, int32> When I emit to openapi, I get:
and then docs generators don't have much to go on and render something like:
|
Beta Was this translation helpful? Give feedback.
Hmmm, so it is possible to add additional undefined properties by using
Record<T>
but that would allow any number of properties with unknown keys.For example:
Which would allow properties with valid keys and any type.