Does anyone know how to create a schema where one object is inside another object?
I read a doc, but I couldn't find a solution.
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:
# OAS 3
# OAS 2
# $ref: '#/definitions/User'