github.com/Axway/agent-sdk@v1.1.101/pkg/apic/testdata/petstore-openapi3.json (about)

     1  {
     2    "openapi": "3.0.2",
     3    "info": {
     4      "title": "Swagger Petstore - OpenAPI 3.0",
     5      "description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification.  You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml) ",
     6      "termsOfService": "http://swagger.io/terms/",
     7      "contact": {
     8        "email": "apiteam@swagger.io"
     9      },
    10      "license": {
    11        "name": "Apache 2.0",
    12        "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    13      },
    14      "version": "1.0.4"
    15    },
    16    "externalDocs": {
    17      "description": "Find out more about Swagger",
    18      "url": "http://swagger.io"
    19    },
    20    "servers": [
    21      {
    22        "url": "http://petstore.swagger.io:8080/api/v3"
    23      },
    24      {
    25        "url": "http://petstore.swagger.io/api/v3"
    26      },
    27      {
    28        "url": "https://petstore.swagger.io/api/v3"
    29      }
    30    ],
    31    "tags": [
    32      {
    33        "name": "pet",
    34        "description": "Everything about your Pets",
    35        "externalDocs": {
    36          "description": "Find out more",
    37          "url": "http://swagger.io"
    38        }
    39      },
    40      {
    41        "name": "store",
    42        "description": "Operations about user"
    43      },
    44      {
    45        "name": "user",
    46        "description": "Access to Petstore orders",
    47        "externalDocs": {
    48          "description": "Find out more about our store",
    49          "url": "http://swagger.io"
    50        }
    51      }
    52    ],
    53    "paths": {
    54      "/pet": {
    55        "put": {
    56          "tags": [
    57            "pet"
    58          ],
    59          "summary": "Update an existing pet",
    60          "description": "Update an existing pet by Id",
    61          "operationId": "updatePet",
    62          "requestBody": {
    63            "description": "Update an existent pet in the store",
    64            "content": {
    65              "application/json": {
    66                "schema": {
    67                  "$ref": "#/components/schemas/Pet"
    68                }
    69              },
    70              "application/xml": {
    71                "schema": {
    72                  "$ref": "#/components/schemas/Pet"
    73                }
    74              },
    75              "application/x-www-form-urlencoded": {
    76                "schema": {
    77                  "$ref": "#/components/schemas/Pet"
    78                }
    79              }
    80            },
    81            "required": true
    82          },
    83          "responses": {
    84            "200": {
    85              "description": "Successful operation",
    86              "content": {
    87                "application/xml": {
    88                  "schema": {
    89                    "$ref": "#/components/schemas/Pet"
    90                  }
    91                },
    92                "application/json": {
    93                  "schema": {
    94                    "$ref": "#/components/schemas/Pet"
    95                  }
    96                }
    97              }
    98            },
    99            "400": {
   100              "description": "Invalid ID supplied"
   101            },
   102            "404": {
   103              "description": "Pet not found"
   104            },
   105            "405": {
   106              "description": "Validation exception"
   107            }
   108          },
   109          "security": [
   110            {
   111              "petstore_auth": [
   112                "write:pets",
   113                "read:pets"
   114              ]
   115            }
   116          ]
   117        },
   118        "post": {
   119          "tags": [
   120            "pet"
   121          ],
   122          "summary": "Add a new pet to the store",
   123          "description": "Add a new pet to the store",
   124          "operationId": "addPet",
   125          "requestBody": {
   126            "description": "Create a new pet in the store",
   127            "content": {
   128              "application/json": {
   129                "schema": {
   130                  "$ref": "#/components/schemas/Pet"
   131                }
   132              },
   133              "application/xml": {
   134                "schema": {
   135                  "$ref": "#/components/schemas/Pet"
   136                }
   137              },
   138              "application/x-www-form-urlencoded": {
   139                "schema": {
   140                  "$ref": "#/components/schemas/Pet"
   141                }
   142              }
   143            },
   144            "required": true
   145          },
   146          "responses": {
   147            "200": {
   148              "description": "Successful operation",
   149              "content": {
   150                "application/xml": {
   151                  "schema": {
   152                    "$ref": "#/components/schemas/Pet"
   153                  }
   154                },
   155                "application/json": {
   156                  "schema": {
   157                    "$ref": "#/components/schemas/Pet"
   158                  }
   159                }
   160              }
   161            },
   162            "405": {
   163              "description": "Invalid input"
   164            }
   165          },
   166          "security": [
   167            {
   168              "petstore_auth": [
   169                "write:pets",
   170                "read:pets"
   171              ]
   172            }
   173          ]
   174        }
   175      },
   176      "/pet/findByStatus": {
   177        "get": {
   178          "tags": [
   179            "pet"
   180          ],
   181          "summary": "Finds Pets by status",
   182          "description": "Multiple status values can be provided with comma separated strings",
   183          "operationId": "findPetsByStatus",
   184          "parameters": [
   185            {
   186              "name": "status",
   187              "in": "query",
   188              "description": "Status values that need to be considered for filter",
   189              "required": false,
   190              "explode": true,
   191              "schema": {
   192                "type": "string",
   193                "default": "available",
   194                "enum": [
   195                  "available",
   196                  "pending",
   197                  "sold"
   198                ]
   199              }
   200            }
   201          ],
   202          "responses": {
   203            "200": {
   204              "description": "successful operation",
   205              "content": {
   206                "application/xml": {
   207                  "schema": {
   208                    "type": "array",
   209                    "items": {
   210                      "$ref": "#/components/schemas/Pet"
   211                    }
   212                  }
   213                },
   214                "application/json": {
   215                  "schema": {
   216                    "type": "array",
   217                    "items": {
   218                      "$ref": "#/components/schemas/Pet"
   219                    }
   220                  }
   221                }
   222              }
   223            },
   224            "400": {
   225              "description": "Invalid status value"
   226            }
   227          },
   228          "security": [
   229            {
   230              "petstore_auth": [
   231                "write:pets",
   232                "read:pets"
   233              ]
   234            }
   235          ]
   236        }
   237      },
   238      "/pet/findByTags": {
   239        "get": {
   240          "tags": [
   241            "pet"
   242          ],
   243          "summary": "Finds Pets by tags",
   244          "description": "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
   245          "operationId": "findPetsByTags",
   246          "parameters": [
   247            {
   248              "name": "tags",
   249              "in": "query",
   250              "description": "Tags to filter by",
   251              "required": false,
   252              "explode": true,
   253              "schema": {
   254                "type": "array",
   255                "items": {
   256                  "type": "string"
   257                }
   258              }
   259            }
   260          ],
   261          "responses": {
   262            "200": {
   263              "description": "successful operation",
   264              "content": {
   265                "application/xml": {
   266                  "schema": {
   267                    "type": "array",
   268                    "items": {
   269                      "$ref": "#/components/schemas/Pet"
   270                    }
   271                  }
   272                },
   273                "application/json": {
   274                  "schema": {
   275                    "type": "array",
   276                    "items": {
   277                      "$ref": "#/components/schemas/Pet"
   278                    }
   279                  }
   280                }
   281              }
   282            },
   283            "400": {
   284              "description": "Invalid tag value"
   285            }
   286          },
   287          "security": [
   288            {
   289              "petstore_auth": [
   290                "write:pets",
   291                "read:pets"
   292              ]
   293            }
   294          ]
   295        }
   296      },
   297      "/pet/{petId}": {
   298        "get": {
   299          "tags": [
   300            "pet"
   301          ],
   302          "summary": "Find pet by ID",
   303          "description": "Returns a single pet",
   304          "operationId": "getPetById",
   305          "parameters": [
   306            {
   307              "name": "petId",
   308              "in": "path",
   309              "description": "ID of pet to return",
   310              "required": true,
   311              "schema": {
   312                "type": "integer",
   313                "format": "int64"
   314              }
   315            }
   316          ],
   317          "responses": {
   318            "200": {
   319              "description": "successful operation",
   320              "content": {
   321                "application/xml": {
   322                  "schema": {
   323                    "$ref": "#/components/schemas/Pet"
   324                  }
   325                },
   326                "application/json": {
   327                  "schema": {
   328                    "$ref": "#/components/schemas/Pet"
   329                  }
   330                }
   331              }
   332            },
   333            "400": {
   334              "description": "Invalid ID supplied"
   335            },
   336            "404": {
   337              "description": "Pet not found"
   338            }
   339          },
   340          "security": [
   341            {
   342              "api_key": []
   343            },
   344            {
   345              "petstore_auth": [
   346                "write:pets",
   347                "read:pets"
   348              ]
   349            }
   350          ]
   351        },
   352        "post": {
   353          "tags": [
   354            "pet"
   355          ],
   356          "summary": "Updates a pet in the store with form data",
   357          "description": "",
   358          "operationId": "updatePetWithForm",
   359          "parameters": [
   360            {
   361              "name": "petId",
   362              "in": "path",
   363              "description": "ID of pet that needs to be updated",
   364              "required": true,
   365              "schema": {
   366                "type": "integer",
   367                "format": "int64"
   368              }
   369            },
   370            {
   371              "name": "name",
   372              "in": "query",
   373              "description": "Name of pet that needs to be updated",
   374              "schema": {
   375                "type": "string"
   376              }
   377            },
   378            {
   379              "name": "status",
   380              "in": "query",
   381              "description": "Status of pet that needs to be updated",
   382              "schema": {
   383                "type": "string"
   384              }
   385            }
   386          ],
   387          "responses": {
   388            "405": {
   389              "description": "Invalid input"
   390            }
   391          },
   392          "security": [
   393            {
   394              "petstore_auth": [
   395                "write:pets",
   396                "read:pets"
   397              ]
   398            }
   399          ]
   400        },
   401        "delete": {
   402          "tags": [
   403            "pet"
   404          ],
   405          "summary": "Deletes a pet",
   406          "description": "",
   407          "operationId": "deletePet",
   408          "parameters": [
   409            {
   410              "name": "api_key",
   411              "in": "header",
   412              "description": "",
   413              "required": false,
   414              "schema": {
   415                "type": "string"
   416              }
   417            },
   418            {
   419              "name": "petId",
   420              "in": "path",
   421              "description": "Pet id to delete",
   422              "required": true,
   423              "schema": {
   424                "type": "integer",
   425                "format": "int64"
   426              }
   427            }
   428          ],
   429          "responses": {
   430            "400": {
   431              "description": "Invalid pet value"
   432            }
   433          },
   434          "security": [
   435            {
   436              "petstore_auth": [
   437                "write:pets",
   438                "read:pets"
   439              ]
   440            }
   441          ]
   442        }
   443      },
   444      "/pet/{petId}/uploadImage": {
   445        "post": {
   446          "tags": [
   447            "pet"
   448          ],
   449          "summary": "uploads an image",
   450          "description": "",
   451          "operationId": "uploadFile",
   452          "parameters": [
   453            {
   454              "name": "petId",
   455              "in": "path",
   456              "description": "ID of pet to update",
   457              "required": true,
   458              "schema": {
   459                "type": "integer",
   460                "format": "int64"
   461              }
   462            },
   463            {
   464              "name": "additionalMetadata",
   465              "in": "query",
   466              "description": "Additional Metadata",
   467              "required": false,
   468              "schema": {
   469                "type": "string"
   470              }
   471            }
   472          ],
   473          "requestBody": {
   474            "content": {
   475              "application/octet-stream": {
   476                "schema": {
   477                  "type": "string",
   478                  "format": "binary"
   479                }
   480              }
   481            }
   482          },
   483          "responses": {
   484            "200": {
   485              "description": "successful operation",
   486              "content": {
   487                "application/json": {
   488                  "schema": {
   489                    "$ref": "#/components/schemas/ApiResponse"
   490                  }
   491                }
   492              }
   493            }
   494          },
   495          "security": [
   496            {
   497              "petstore_auth": [
   498                "write:pets",
   499                "read:pets"
   500              ]
   501            }
   502          ]
   503        }
   504      },
   505      "/store/inventory": {
   506        "get": {
   507          "tags": [
   508            "store"
   509          ],
   510          "summary": "Returns pet inventories by status",
   511          "description": "Returns a map of status codes to quantities",
   512          "operationId": "getInventory",
   513          "responses": {
   514            "200": {
   515              "description": "successful operation",
   516              "content": {
   517                "application/json": {
   518                  "schema": {
   519                    "type": "object",
   520                    "additionalProperties": {
   521                      "type": "integer",
   522                      "format": "int32"
   523                    }
   524                  }
   525                }
   526              }
   527            }
   528          },
   529          "security": [
   530            {
   531              "api_key": []
   532            }
   533          ]
   534        }
   535      },
   536      "/store/order": {
   537        "post": {
   538          "tags": [
   539            "store"
   540          ],
   541          "summary": "Place an order for a pet",
   542          "description": "Place a new order in the store",
   543          "operationId": "placeOrder",
   544          "requestBody": {
   545            "content": {
   546              "application/json": {
   547                "schema": {
   548                  "$ref": "#/components/schemas/Order"
   549                }
   550              },
   551              "application/xml": {
   552                "schema": {
   553                  "$ref": "#/components/schemas/Order"
   554                }
   555              },
   556              "application/x-www-form-urlencoded": {
   557                "schema": {
   558                  "$ref": "#/components/schemas/Order"
   559                }
   560              }
   561            }
   562          },
   563          "responses": {
   564            "200": {
   565              "description": "successful operation",
   566              "content": {
   567                "application/json": {
   568                  "schema": {
   569                    "$ref": "#/components/schemas/Order"
   570                  }
   571                }
   572              }
   573            },
   574            "405": {
   575              "description": "Invalid input"
   576            }
   577          }
   578        }
   579      },
   580      "/store/order/{orderId}": {
   581        "get": {
   582          "tags": [
   583            "store"
   584          ],
   585          "summary": "Find purchase order by ID",
   586          "description": "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions",
   587          "operationId": "getOrderById",
   588          "parameters": [
   589            {
   590              "name": "orderId",
   591              "in": "path",
   592              "description": "ID of order that needs to be fetched",
   593              "required": true,
   594              "schema": {
   595                "type": "integer",
   596                "format": "int64"
   597              }
   598            }
   599          ],
   600          "responses": {
   601            "200": {
   602              "description": "successful operation",
   603              "content": {
   604                "application/xml": {
   605                  "schema": {
   606                    "$ref": "#/components/schemas/Order"
   607                  }
   608                },
   609                "application/json": {
   610                  "schema": {
   611                    "$ref": "#/components/schemas/Order"
   612                  }
   613                }
   614              }
   615            },
   616            "400": {
   617              "description": "Invalid ID supplied"
   618            },
   619            "404": {
   620              "description": "Order not found"
   621            }
   622          }
   623        },
   624        "delete": {
   625          "tags": [
   626            "store"
   627          ],
   628          "summary": "Delete purchase order by ID",
   629          "description": "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
   630          "operationId": "deleteOrder",
   631          "parameters": [
   632            {
   633              "name": "orderId",
   634              "in": "path",
   635              "description": "ID of the order that needs to be deleted",
   636              "required": true,
   637              "schema": {
   638                "type": "integer",
   639                "format": "int64"
   640              }
   641            }
   642          ],
   643          "responses": {
   644            "400": {
   645              "description": "Invalid ID supplied"
   646            },
   647            "404": {
   648              "description": "Order not found"
   649            }
   650          }
   651        }
   652      },
   653      "/user": {
   654        "post": {
   655          "tags": [
   656            "user"
   657          ],
   658          "summary": "Create user",
   659          "description": "This can only be done by the logged in user.",
   660          "operationId": "createUser",
   661          "requestBody": {
   662            "description": "Created user object",
   663            "content": {
   664              "application/json": {
   665                "schema": {
   666                  "$ref": "#/components/schemas/User"
   667                }
   668              },
   669              "application/xml": {
   670                "schema": {
   671                  "$ref": "#/components/schemas/User"
   672                }
   673              },
   674              "application/x-www-form-urlencoded": {
   675                "schema": {
   676                  "$ref": "#/components/schemas/User"
   677                }
   678              }
   679            }
   680          },
   681          "responses": {
   682            "default": {
   683              "description": "successful operation",
   684              "content": {
   685                "application/json": {
   686                  "schema": {
   687                    "$ref": "#/components/schemas/User"
   688                  }
   689                },
   690                "application/xml": {
   691                  "schema": {
   692                    "$ref": "#/components/schemas/User"
   693                  }
   694                }
   695              }
   696            }
   697          }
   698        }
   699      },
   700      "/user/createWithList": {
   701        "post": {
   702          "tags": [
   703            "user"
   704          ],
   705          "summary": "Creates list of users with given input array",
   706          "description": "Creates list of users with given input array",
   707          "operationId": "createUsersWithListInput",
   708          "requestBody": {
   709            "content": {
   710              "application/json": {
   711                "schema": {
   712                  "type": "array",
   713                  "items": {
   714                    "$ref": "#/components/schemas/User"
   715                  }
   716                }
   717              }
   718            }
   719          },
   720          "responses": {
   721            "200": {
   722              "description": "Successful operation",
   723              "content": {
   724                "application/xml": {
   725                  "schema": {
   726                    "$ref": "#/components/schemas/User"
   727                  }
   728                },
   729                "application/json": {
   730                  "schema": {
   731                    "$ref": "#/components/schemas/User"
   732                  }
   733                }
   734              }
   735            },
   736            "default": {
   737              "description": "successful operation"
   738            }
   739          }
   740        }
   741      },
   742      "/user/login": {
   743        "get": {
   744          "tags": [
   745            "user"
   746          ],
   747          "summary": "Logs user into the system",
   748          "description": "",
   749          "operationId": "loginUser",
   750          "parameters": [
   751            {
   752              "name": "username",
   753              "in": "query",
   754              "description": "The user name for login",
   755              "required": false,
   756              "schema": {
   757                "type": "string"
   758              }
   759            },
   760            {
   761              "name": "password",
   762              "in": "query",
   763              "description": "The password for login in clear text",
   764              "required": false,
   765              "schema": {
   766                "type": "string"
   767              }
   768            }
   769          ],
   770          "responses": {
   771            "200": {
   772              "description": "successful operation",
   773              "headers": {
   774                "X-Rate-Limit": {
   775                  "description": "calls per hour allowed by the user",
   776                  "schema": {
   777                    "type": "integer",
   778                    "format": "int32"
   779                  }
   780                },
   781                "X-Expires-After": {
   782                  "description": "date in UTC when toekn expires",
   783                  "schema": {
   784                    "type": "string",
   785                    "format": "date-time"
   786                  }
   787                }
   788              },
   789              "content": {
   790                "application/xml": {
   791                  "schema": {
   792                    "type": "string"
   793                  }
   794                },
   795                "application/json": {
   796                  "schema": {
   797                    "type": "string"
   798                  }
   799                }
   800              }
   801            },
   802            "400": {
   803              "description": "Invalid username/password supplied"
   804            }
   805          }
   806        }
   807      },
   808      "/user/logout": {
   809        "get": {
   810          "tags": [
   811            "user"
   812          ],
   813          "summary": "Logs out current logged in user session",
   814          "description": "",
   815          "operationId": "logoutUser",
   816          "parameters": [],
   817          "responses": {
   818            "default": {
   819              "description": "successful operation"
   820            }
   821          }
   822        }
   823      },
   824      "/user/{username}": {
   825        "get": {
   826          "tags": [
   827            "user"
   828          ],
   829          "summary": "Get user by user name",
   830          "description": "",
   831          "operationId": "getUserByName",
   832          "parameters": [
   833            {
   834              "name": "username",
   835              "in": "path",
   836              "description": "The name that needs to be fetched. Use user1 for testing. ",
   837              "required": true,
   838              "schema": {
   839                "type": "string"
   840              }
   841            }
   842          ],
   843          "responses": {
   844            "200": {
   845              "description": "successful operation",
   846              "content": {
   847                "application/xml": {
   848                  "schema": {
   849                    "$ref": "#/components/schemas/User"
   850                  }
   851                },
   852                "application/json": {
   853                  "schema": {
   854                    "$ref": "#/components/schemas/User"
   855                  }
   856                }
   857              }
   858            },
   859            "400": {
   860              "description": "Invalid username supplied"
   861            },
   862            "404": {
   863              "description": "User not found"
   864            }
   865          }
   866        },
   867        "put": {
   868          "tags": [
   869            "user"
   870          ],
   871          "summary": "Update user",
   872          "description": "This can only be done by the logged in user.",
   873          "operationId": "updateUser",
   874          "parameters": [
   875            {
   876              "name": "username",
   877              "in": "path",
   878              "description": "name that need to be deleted",
   879              "required": true,
   880              "schema": {
   881                "type": "string"
   882              }
   883            }
   884          ],
   885          "requestBody": {
   886            "description": "Update an existent user in the store",
   887            "content": {
   888              "application/json": {
   889                "schema": {
   890                  "$ref": "#/components/schemas/User"
   891                }
   892              },
   893              "application/xml": {
   894                "schema": {
   895                  "$ref": "#/components/schemas/User"
   896                }
   897              },
   898              "application/x-www-form-urlencoded": {
   899                "schema": {
   900                  "$ref": "#/components/schemas/User"
   901                }
   902              }
   903            }
   904          },
   905          "responses": {
   906            "default": {
   907              "description": "successful operation"
   908            }
   909          }
   910        },
   911        "delete": {
   912          "tags": [
   913            "user"
   914          ],
   915          "summary": "Delete user",
   916          "description": "This can only be done by the logged in user.",
   917          "operationId": "deleteUser",
   918          "parameters": [
   919            {
   920              "name": "username",
   921              "in": "path",
   922              "description": "The name that needs to be deleted",
   923              "required": true,
   924              "schema": {
   925                "type": "string"
   926              }
   927            }
   928          ],
   929          "responses": {
   930            "400": {
   931              "description": "Invalid username supplied"
   932            },
   933            "404": {
   934              "description": "User not found"
   935            }
   936          }
   937        }
   938      }
   939    },
   940    "components": {
   941      "schemas": {
   942        "Order": {
   943          "type": "object",
   944          "properties": {
   945            "id": {
   946              "type": "integer",
   947              "format": "int64",
   948              "example": 10
   949            },
   950            "petId": {
   951              "type": "integer",
   952              "format": "int64",
   953              "example": 198772
   954            },
   955            "quantity": {
   956              "type": "integer",
   957              "format": "int32",
   958              "example": 7
   959            },
   960            "shipDate": {
   961              "type": "string",
   962              "format": "date-time"
   963            },
   964            "status": {
   965              "type": "string",
   966              "description": "Order Status",
   967              "example": "approved",
   968              "enum": [
   969                "placed",
   970                "approved",
   971                "delivered"
   972              ]
   973            },
   974            "complete": {
   975              "type": "boolean"
   976            }
   977          },
   978          "xml": {
   979            "name": "order"
   980          }
   981        },
   982        "Customer": {
   983          "type": "object",
   984          "properties": {
   985            "id": {
   986              "type": "integer",
   987              "format": "int64",
   988              "example": 100000
   989            },
   990            "username": {
   991              "type": "string",
   992              "example": "fehguy"
   993            },
   994            "address": {
   995              "type": "array",
   996              "xml": {
   997                "name": "addresses",
   998                "wrapped": true
   999              },
  1000              "items": {
  1001                "$ref": "#/components/schemas/Address"
  1002              }
  1003            }
  1004          },
  1005          "xml": {
  1006            "name": "customer"
  1007          }
  1008        },
  1009        "Address": {
  1010          "type": "object",
  1011          "properties": {
  1012            "street": {
  1013              "type": "string",
  1014              "example": "437 Lytton"
  1015            },
  1016            "city": {
  1017              "type": "string",
  1018              "example": "Palo Alto"
  1019            },
  1020            "state": {
  1021              "type": "string",
  1022              "example": "CA"
  1023            },
  1024            "zip": {
  1025              "type": "string",
  1026              "example": "94301"
  1027            }
  1028          },
  1029          "xml": {
  1030            "name": "address"
  1031          }
  1032        },
  1033        "Category": {
  1034          "type": "object",
  1035          "properties": {
  1036            "id": {
  1037              "type": "integer",
  1038              "format": "int64",
  1039              "example": 1
  1040            },
  1041            "name": {
  1042              "type": "string",
  1043              "example": "Dogs"
  1044            }
  1045          },
  1046          "xml": {
  1047            "name": "category"
  1048          }
  1049        },
  1050        "User": {
  1051          "type": "object",
  1052          "properties": {
  1053            "id": {
  1054              "type": "integer",
  1055              "format": "int64",
  1056              "example": 10
  1057            },
  1058            "username": {
  1059              "type": "string",
  1060              "example": "theUser"
  1061            },
  1062            "firstName": {
  1063              "type": "string",
  1064              "example": "John"
  1065            },
  1066            "lastName": {
  1067              "type": "string",
  1068              "example": "James"
  1069            },
  1070            "email": {
  1071              "type": "string",
  1072              "example": "john@email.com"
  1073            },
  1074            "password": {
  1075              "type": "string",
  1076              "example": "12345"
  1077            },
  1078            "phone": {
  1079              "type": "string",
  1080              "example": "12345"
  1081            },
  1082            "userStatus": {
  1083              "type": "integer",
  1084              "description": "User Status",
  1085              "format": "int32",
  1086              "example": 1
  1087            }
  1088          },
  1089          "xml": {
  1090            "name": "user"
  1091          }
  1092        },
  1093        "Tag": {
  1094          "type": "object",
  1095          "properties": {
  1096            "id": {
  1097              "type": "integer",
  1098              "format": "int64"
  1099            },
  1100            "name": {
  1101              "type": "string"
  1102            }
  1103          },
  1104          "xml": {
  1105            "name": "tag"
  1106          }
  1107        },
  1108        "Pet": {
  1109          "required": [
  1110            "name",
  1111            "photoUrls"
  1112          ],
  1113          "type": "object",
  1114          "properties": {
  1115            "id": {
  1116              "type": "integer",
  1117              "format": "int64",
  1118              "example": 10
  1119            },
  1120            "name": {
  1121              "type": "string",
  1122              "example": "doggie"
  1123            },
  1124            "category": {
  1125              "$ref": "#/components/schemas/Category"
  1126            },
  1127            "photoUrls": {
  1128              "type": "array",
  1129              "xml": {
  1130                "wrapped": true
  1131              },
  1132              "items": {
  1133                "type": "string",
  1134                "xml": {
  1135                  "name": "photoUrl"
  1136                }
  1137              }
  1138            },
  1139            "tags": {
  1140              "type": "array",
  1141              "xml": {
  1142                "wrapped": true
  1143              },
  1144              "items": {
  1145                "$ref": "#/components/schemas/Tag"
  1146              }
  1147            },
  1148            "status": {
  1149              "type": "string",
  1150              "description": "pet status in the store",
  1151              "enum": [
  1152                "available",
  1153                "pending",
  1154                "sold"
  1155              ]
  1156            }
  1157          },
  1158          "xml": {
  1159            "name": "pet"
  1160          }
  1161        },
  1162        "ApiResponse": {
  1163          "type": "object",
  1164          "properties": {
  1165            "code": {
  1166              "type": "integer",
  1167              "format": "int32"
  1168            },
  1169            "type": {
  1170              "type": "string"
  1171            },
  1172            "message": {
  1173              "type": "string"
  1174            }
  1175          },
  1176          "xml": {
  1177            "name": "##default"
  1178          }
  1179        }
  1180      },
  1181      "requestBodies": {
  1182        "Pet": {
  1183          "description": "Pet object that needs to be added to the store",
  1184          "content": {
  1185            "application/json": {
  1186              "schema": {
  1187                "$ref": "#/components/schemas/Pet"
  1188              }
  1189            },
  1190            "application/xml": {
  1191              "schema": {
  1192                "$ref": "#/components/schemas/Pet"
  1193              }
  1194            }
  1195          }
  1196        },
  1197        "UserArray": {
  1198          "description": "List of user object",
  1199          "content": {
  1200            "application/json": {
  1201              "schema": {
  1202                "type": "array",
  1203                "items": {
  1204                  "$ref": "#/components/schemas/User"
  1205                }
  1206              }
  1207            }
  1208          }
  1209        }
  1210      },
  1211      "securitySchemes": {
  1212        "petstore_auth": {
  1213          "type": "oauth2",
  1214          "flows": {
  1215            "implicit": {
  1216              "authorizationUrl": "https://petstore3.swagger.io/oauth/authorize",
  1217              "scopes": {
  1218                "write:pets": "modify pets in your account",
  1219                "read:pets": "read your pets"
  1220              }
  1221            }
  1222          }
  1223        },
  1224        "api_key": {
  1225          "type": "apiKey",
  1226          "name": "api_key",
  1227          "in": "header"
  1228        }
  1229      }
  1230    }
  1231  }