1

I am using hapi-swagger library 14.0.0. As per hapi-swagger library documentation used options.deReference = true. Still, I am not able to reference object.

Can anybody help me to solve the issue?

Expected behavior

{
    "200": {
        "description": "a pet to be returned",
        "schema": {
            "$ref": "#/definitions/Pet"
        }
    }
}

Getting

{
    "200": {
        "description": "a pet to be returned",
        "schema": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        }
    }
}
Tasos K.
  • 7,979
  • 7
  • 39
  • 63
Jit Sarkar
  • 11
  • 2

0 Answers0