-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
In the example spec, after extending Pet in Cat object, Pet properties are not resolved. Instead shows a file reference:
{
"swagger":"2.0",
"info":{
},
"host":"localhost:9000",
"schemes":[
"http"
],
"basePath":"/2.0",
"paths":{
"/":{
"get":{
"responses":{
"200":{
"description":"Pets",
"schema":{
"$ref":"#/definitions/Pet"
}
}
},
"parameters":[
]
}
}
},
"definitions":{
"Cat":{
"allOf": [
{
"$ref": "#/definitions/Pet"
},
{
"type": "object",
"properties":{
"size":{
"type": "number"
}
}
}
]
},
"Pet":{
"type": "object",
"properties":{
"color":{
"$ref":"#/definitions/Color"
}
}
},
"Color":{
"type": "string"
}
}
}It works if Cat is removed from definitions. Is something wrong with my definition? Thanks
Metadata
Metadata
Assignees
Labels
No labels
