swagger: "2.0"
info: <
  title: "Swagger Petstore"
  version: "1.0.0"
  license: <
    name: "MIT"
  >
>
host: "petstore.swagger.io"
base_path: "/v1"
schemes: "http"
consumes: "application/json"
produces: "application/json"
paths: <
  path: <
    name: "/pets"
    value: <
      get: <
        tags: "pets"
        summary: "List all pets"
        operation_id: "listPets"
        parameters: <
          parameter: <
            non_body_parameter: <
              query_parameter_sub_schema: <
                in: "query"
                description: "How many items to return at one time (max 100)"
                name: "limit"
                type: "integer"
                format: "int32"
              >
            >
          >
        >
        responses: <
          response_code: <
            name: "200"
            value: <
              response: <
                description: "An paged array of pets"
                schema: <
                  schema: <
                    type: <
                      value: "array"
                    >
                    items: <
                      schema: <
                        required: "id"
                        required: "name"
                        properties: <
                          additional_properties: <
                            name: "id"
                            value: <
                              format: "int64"
                              type: <
                                value: "integer"
                              >
                            >
                          >
                          additional_properties: <
                            name: "name"
                            value: <
                              type: <
                                value: "string"
                              >
                            >
                          >
                          additional_properties: <
                            name: "tag"
                            value: <
                              type: <
                                value: "string"
                              >
                            >
                          >
                        >
                      >
                    >
                  >
                >
                headers: <
                  additional_properties: <
                    name: "x-next"
                    value: <
                      type: "string"
                      description: "A link to the next page of responses"
                    >
                  >
                >
              >
            >
          >
          response_code: <
            name: "default"
            value: <
              response: <
                description: "unexpected error"
                schema: <
                  schema: <
                    required: "code"
                    required: "message"
                    properties: <
                      additional_properties: <
                        name: "code"
                        value: <
                          format: "int32"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "message"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
        >
      >
      post: <
        tags: "pets"
        summary: "Create a pet"
        operation_id: "createPets"
        responses: <
          response_code: <
            name: "201"
            value: <
              response: <
                description: "Null response"
              >
            >
          >
          response_code: <
            name: "default"
            value: <
              response: <
                description: "unexpected error"
                schema: <
                  schema: <
                    required: "code"
                    required: "message"
                    properties: <
                      additional_properties: <
                        name: "code"
                        value: <
                          format: "int32"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "message"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
        >
      >
    >
  >
  path: <
    name: "/pets/{petId}"
    value: <
      get: <
        tags: "pets"
        summary: "Info for a specific pet"
        operation_id: "showPetById"
        parameters: <
          parameter: <
            non_body_parameter: <
              path_parameter_sub_schema: <
                required: true
                in: "path"
                description: "The id of the pet to retrieve"
                name: "petId"
                type: "string"
              >
            >
          >
        >
        responses: <
          response_code: <
            name: "200"
            value: <
              response: <
                description: "Expected response to a valid request"
                schema: <
                  schema: <
                    type: <
                      value: "array"
                    >
                    items: <
                      schema: <
                        required: "id"
                        required: "name"
                        properties: <
                          additional_properties: <
                            name: "id"
                            value: <
                              format: "int64"
                              type: <
                                value: "integer"
                              >
                            >
                          >
                          additional_properties: <
                            name: "name"
                            value: <
                              type: <
                                value: "string"
                              >
                            >
                          >
                          additional_properties: <
                            name: "tag"
                            value: <
                              type: <
                                value: "string"
                              >
                            >
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
          response_code: <
            name: "default"
            value: <
              response: <
                description: "unexpected error"
                schema: <
                  schema: <
                    required: "code"
                    required: "message"
                    properties: <
                      additional_properties: <
                        name: "code"
                        value: <
                          format: "int32"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "message"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
        >
      >
    >
  >
>
definitions: <
  additional_properties: <
    name: "Pet"
    value: <
      required: "id"
      required: "name"
      properties: <
        additional_properties: <
          name: "id"
          value: <
            format: "int64"
            type: <
              value: "integer"
            >
          >
        >
        additional_properties: <
          name: "name"
          value: <
            type: <
              value: "string"
            >
          >
        >
        additional_properties: <
          name: "tag"
          value: <
            type: <
              value: "string"
            >
          >
        >
      >
    >
  >
  additional_properties: <
    name: "Pets"
    value: <
      type: <
        value: "array"
      >
      items: <
        schema: <
          required: "id"
          required: "name"
          properties: <
            additional_properties: <
              name: "id"
              value: <
                format: "int64"
                type: <
                  value: "integer"
                >
              >
            >
            additional_properties: <
              name: "name"
              value: <
                type: <
                  value: "string"
                >
              >
            >
            additional_properties: <
              name: "tag"
              value: <
                type: <
                  value: "string"
                >
              >
            >
          >
        >
      >
    >
  >
  additional_properties: <
    name: "Error"
    value: <
      required: "code"
      required: "message"
      properties: <
        additional_properties: <
          name: "code"
          value: <
            format: "int32"
            type: <
              value: "integer"
            >
          >
        >
        additional_properties: <
          name: "message"
          value: <
            type: <
              value: "string"
            >
          >
        >
      >
    >
  >
>
