File: //opt/go/pkg/mod/github.com/go-openapi/
[email protected]/fixtures/expected/issue-2113.json
{
"swagger": "2.0",
"info": {
"title": "nested $ref fixture",
"version": "1"
},
"paths": {
"/dummy": {
"get": {
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/dummy"
}
}
}
}
},
"/example": {
"get": {
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/example"
}
}
}
}
}
},
"definitions": {
"dummy": {
"required": [
"dummyPayload"
],
"properties": {
"dummyPayload": {
"type": "string"
}
}
},
"example": {
"required": [
"payload"
],
"properties": {
"payload": {
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema"
}
}
}