Forum Discussion
RonRatovsky
Staff
7 years agoHello,
The OpenAPI specification does not allow you to add constaints to arbitrarily defined keys. To describe 'answers' you can go with:
answers:
type: object
additionalProperties:
type: array
items:
type: integer
The definition about says that 'answers' is an object that can have any key, and the value of that key must be an array of integers.