{
  "swagger" : "2.0",
  "info" : {},
  "basePath" : "/v1",
  "tags" : [ {
    "name" : "pets",
    "description" : "some pets"
  }],
  "paths" : {
    "/pets" : {
      "get" : {
        "tags" : [ "pets" ],
        "summary" : "Get your pets",
        "description" : "Returns pets of different types",
        "operationId" : "getPets",
        "consumes" : [ "application/x-www-form-urlencoded" ],
        "produces" : [ "application/json" ],
        "parameters" : [ ],
        "responses" : {
          "200" : {
            "description" : "successful operation",
            "schema" : {
              "$ref" : "#/definitions/Animal"
            }
          },
          "409" : {
            "description" : "User already has an account or an account request."
          },
          "500" : {
            "description" : "Error creating the account request"
          }
        }
      }
    }
  },

  "definitions" : {
    "Dog" : {
      "allOf" : [ {
        "$ref" : "#/definitions/Animal"
      }, {
        "type" : "object",
        "properties" : {
          "breed" : {
            "type" : "string"
          }
        }
      } ]
    },
    "Cat" : {
      "allOf" : [ {
        "$ref" : "#/definitions/Animal"
      }, {
        "type" : "object",
        "properties" : {
          "declawed" : {
            "type" : "boolean"
          }
        }
      } ]
    },
    "Animal" : {
      "type" : "object",
      "discriminator": "className",
      "required": [
        "className"
      ],
      "properties" : {
        "className" : {
          "type" : "string"
        }
      }
    }

  }
}