Forum Discussion
HKosova
5 years agoSmartBear Alumni (Retired)
Can you also post the "address" schema?
- gossip_boi5 years agoNew Contributor
attached
- HKosova5 years agoSmartBear Alumni (Retired)
Your schemas look correct. Make sure there are no extra nesting levels in the schemas. Check this example for the reference:
openapi: 3.0.0 info: title: Array of objects version: 1.0.0 paths: /something: post: requestBody: content: application/json: schema: $ref: '#/components/schemas/addresses' responses: 200: description: OK components: schemas: addresses: type: object properties: addresses: type: array items: $ref: '#/components/schemas/address' address: type: object description: A user's address properties: country: type: string country_subject: type: string
Related Content
- 3 years ago
Recent Discussions
- 11 days ago
- 17 days ago