Discussions
How do I get example responses to display?
about 4 years ago by Rachelle(edited)
I have examples included in the OpenApi.json but the example does not display in the readme.com. The example do display in both swaggerUI and redoc.
The example is included in the component.schema object and looks like the following...
{
"components": {
"schemas": {
"Video": {
"required": [
"title"
],
"type": "object",
"properties": {
"title": {
"maxLength": 255,
"type": "string"
},
"summary": {
"maxLength": 2000,
"type": "string",
"nullable": true
}
},
"example": "video example object"
}
}
}
}