Forum Discussion
inauro
Occasional Contributor
We are on Teams plan
HKosova
3 years agoSmartBear 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:
...
- inauro3 years agoOccasional 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!