Forum Discussion
- HKosovaSmartBear Alumni (Retired)
Hi Bernadete, check out the examples here:
How to have a property reference a model (i.e. nest the models)?
Basically, you define a separate schema for the nested object and then have a property $ref that schema, like so:
properties: user: # OAS 3 $ref: '#/components/schemas/User' # OAS 2 # $ref: '#/definitions/User'
Related Content
- 2 years ago
- 3 years ago
- 2 years ago
- 6 years ago