Forum Discussion

divyapratihast's avatar
Regular Visitor
2 years ago

HashMap in Open API 3.0.3

Is there any other way to define the key and value of the HashMap instead of using additionalProperties keyword?

I want to define the schema and give example for both key and value. But while using additionalProperties we can give schema for value only, key is by default a string but how to give example for it.

No RepliesBe the first to reply