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
Post a Comment