We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is no way to specify a Map of key/value pairs to be displayed in the UI.
If the key is an enum, then all of the enum's values could be included as optional object properties.
If the key is a "string", then maybe the word "string" with a "..." on the following line (or maybe just "MapKey").
The value object should be expanded as per the usual rules for a model's property type.
Thus type="Map[SomeEnum,SomeObject]" could be expanded as: ... "SomeEnumVal1": { "someObjectProperty": "someObjectPropertyType" }, "SomeEnumVal2": { "someObjectProperty": "someObjectPropertyType" }, ...
And type="Map[KeyObject,Array[SomeObject]]" could be expanded as: "MapKey[KeyObject]": [ { "someObjectProperty": "someObjectPropertyType" } ] ...
The text was updated successfully, but these errors were encountered:
This discussion is moved to the swagger-spec repository as it first needs to be resolved in the swagger specification - OAI/OpenAPI-Specification#38.
Sorry, something went wrong.
No branches or pull requests
There is no way to specify a Map of key/value pairs to be displayed in the UI.
If the key is an enum, then all of the enum's values could be included as optional object properties.
If the key is a "string", then maybe the word "string" with a "..." on the following line (or maybe just "MapKey").
The value object should be expanded as per the usual rules for a model's property type.
Thus type="Map[SomeEnum,SomeObject]" could be expanded as:
...
"SomeEnumVal1": { "someObjectProperty": "someObjectPropertyType" },
"SomeEnumVal2": { "someObjectProperty": "someObjectPropertyType" },
...
And type="Map[KeyObject,Array[SomeObject]]" could be expanded as:
"MapKey[KeyObject]": [ { "someObjectProperty": "someObjectPropertyType" } ]
...
The text was updated successfully, but these errors were encountered: