Swagger - nested $ref not working -


i not able nest $ref files in swagger 2.0.

i trying define api where-in have provided first $ref statement:

definitions:   collection-response:     type: "object"     properties:        response-status:          $ref: './schema/response-status.schema' 

the response-status.schema separate file in schema folder. response-status.schema defined below:

{   "type": "object",   "properties": {     "http-code": {       "type": "integer",       "description": "http-code being returned",     },     "error-block": {       "$ref": "error-block.schema"     }   } } 

now swagger-ui not able take second nested $ref, in case file error-block.schema

please help. wrong way of doing things? do in case have such nested references?


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -