Forum Discussion
RonRatovsky
Staff
7 years agoYou can use additionalProperties to describe arbitrary key names.
additionalProperties:
type: object
properties:
Count:
type: integer
Value:
type: integer
Or alternatively:
additionalProperties: $ref: '#/definitions/MyCommonModel'
Where MyCommonModel will be the definition of the value object used here.