In the "Response Error Codes" section, how to refer the error definitions using $ref?
In the Swagger specs, there are JSON references $ref definitions, which we need to display in the "Response Error Codes" section along with the HTTP Code & description.
E.g.
Swagger:
"400": {
"description": "BadRequest",
"schema": {
"$ref": "#/definitions/GeneralError"
The Response Error Codes should display the definition of the “GeneralError” details from the spec.