I struggle with specifying the following json in swagger OpenApi 3.0:
{
"cataloge.category_color" : [
["blue", 12, "http://examle.com/2"],
["yellow", 2, "http://examle.com/1"],
]
}
I'd like to specify a set of allowed key names for example: cataloge.category_color, cataloge.category_size, cataloge.category_manufacturer
.
My first problem is how to enable dynamic key names that match my nameset?
I tried the additionalProperties
approach but I don't see how I can define the value part as I want.
The second problem I have is how to specify the values for the arrays inside?
I know that I could easily use named hashes for the inner arrays, but thats not what I like to do here.