Forum Discussion
HKosova
Alumni
5 years agoYou are almost there. Nested objects are defined like this:
content:
application/json:
schema:
type: object
properties:
field1:
type: object
properties:
field1_sub1:
type: string
example: '3233'
Check out these links for more examples:
How to have a property reference a model in OpenAPI (i.e. nest the models)?