Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Added a recursive ref lookup example to show response schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Nov 6, 2018
1 parent 2b65637 commit ebb7461
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions example/swagger-files/response-schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,41 @@
}
}
}
},
"/anything/recursive": {
"get": {
"summary": "Recursive $ref lookup",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Node"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Node": {
"type": "object",
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Node"
}
}
}
},
"Object": {
"type": "object",
"properties": {
Expand Down

0 comments on commit ebb7461

Please sign in to comment.