Ask a Question

HashMap in Open API 3.0.3

divyapratihast
Regular Visitor

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.

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: