Forum Discussion
- inauroOccasional Contributor
We are on Teams plan
- HKosovaSmartBear Alumni (Retired)
Hi inauro,
The schema keyword expects a schema definition, but the linked file is not a schema. Here's how you can define a schema for your response:
responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DeviceInfo' # <------ components: schemas: DeviceInfo: # <------ type: object properties: tenantId: type: string example: gf-d30caee4-5217-4731-9183-f1f2242f03ae assetInfo: type: object properties: ... deviceInfo: type: object properties: ...
- inauroOccasional Contributor
I tried with Open API Schema as well but same result. Schema not showing in the response. Can you check and let me know what needs to be corrected?
responses:'200':description: Successcontent:application/json:schema:Asset Open API Schema SnippetThanks!
Related Content
- 2 years ago
Recent Discussions
- 24 days ago
- 2 months ago