Version 1.1.4
Given the document:
{
"swagger": "2.0",
"paths": {
"/foos": {
"get": {
"produces": [
"application/json"
],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/Foo"
}
}
}
}
}
},
"definitions": {
"Foo": {
"type": "object",
"properties": {
"bar": {
"$ref": "#/definitions/Bar"
}
}
},
"Bar": {
"type": "object",
"properties": {
"baz": {}
}
}
}
}
When serializing the schema referenced by the path "/foos"
Expected:
{
"type": "object",
"properties": {
"bar": {
"type": "object",
"properties": {
"baz": {}
}
}
}
}
Actual:
{
"type": "object",
"properties": {
"bar": {
"$ref": "#/definitions/Bar"
}
}
}
Version 1.1.4
Given the document:
When serializing the schema referenced by the path "/foos"
Expected:
Actual: