{
  "openapi": "3.0.0",
  "info": {
    "title": "PSX",
    "version": "1"
  },
  "servers": [
    {
      "url": "\/"
    }
  ],
  "paths": {
    "\/pets": {
      "get": {
        "tags": [
          "pets"
        ],
        "description": "List all pets",
        "operationId": "listPets",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Pets"
                }
              }
            }
          },
          "500": {
            "description": "GET 500 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "pets"
        ],
        "description": "Create a pet",
        "operationId": "createPets",
        "requestBody": {
          "description": "POST Request",
          "content": {
            "application\/json": {
              "schema": {
                "$ref": "#\/components\/schemas\/Pet"
              }
            }
          }
        },
        "responses": {
          "500": {
            "description": "POST 500 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Error"
                }
              }
            }
          }
        }
      }
    },
    "\/pets\/{petId}": {
      "get": {
        "tags": [
          "pets"
        ],
        "description": "Info for a specific pet",
        "operationId": "showPetById",
        "parameters": [
          {
            "name": "petId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GET 200 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Pets"
                }
              }
            }
          },
          "500": {
            "description": "GET 500 Response",
            "content": {
              "application\/json": {
                "schema": {
                  "$ref": "#\/components\/schemas\/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "title": "Error",
        "type": "object",
        "properties": {
          "code": {
            "format": "int32",
            "type": "integer"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "Pet": {
        "title": "Pet",
        "type": "object",
        "properties": {
          "id": {
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "tag": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "Pets": {
        "title": "Pets",
        "type": "object",
        "properties": {
          "pets": {
            "type": "array",
            "items": {
              "$ref": "#\/components\/schemas\/Pet"
            }
          }
        }
      },
      "PetsGetQuery": {
        "type": "object",
        "properties": {
          "limit": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": []
      },
      "PetsPetIdGetQuery": {
        "type": "object",
        "properties": {
          "petId": {
            "type": "string"
          }
        },
        "required": []
      }
    }
  }
}