From 36a9ca2397a448e92a4b8d71628d93d464e5ad5a Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Thu, 8 Jan 2026 15:30:39 +0200 Subject: [PATCH 1/8] cover cafe api; add generateNamedSchemas and removeSchemas decorators --- NOTES.md | 49 + applications/__tests__/e2e-bundle.test.js | 40 +- applications/__tests__/e2e-lint.test.js | 24 +- ...cly.yaml => generate-x-types.redocly.yaml} | 1 + applications/remove-x-types.redocly.yaml | 8 + applications/resources/cafe.x-type.yaml | 818 +++++++++++++ applications/resources/cafe.yaml | 1061 +++++++++++++++++ .../{x-redocly.yaml => x-type.redocly.yaml} | 1 + applications/x-types-adapter.js | 7 +- applications/x-types-decorators.js | 37 + applications/x-types-plugin.js | 4 + package.json | 6 +- redocly.yaml | 2 +- 13 files changed, 2021 insertions(+), 37 deletions(-) rename applications/{generate-x-types-redocly.yaml => generate-x-types.redocly.yaml} (87%) create mode 100644 applications/remove-x-types.redocly.yaml create mode 100644 applications/resources/cafe.x-type.yaml create mode 100644 applications/resources/cafe.yaml rename applications/{x-redocly.yaml => x-type.redocly.yaml} (86%) diff --git a/NOTES.md b/NOTES.md index 94cda99..ebaec18 100644 --- a/NOTES.md +++ b/NOTES.md @@ -22,6 +22,55 @@ However, it means that `id` is optional in responses. If we put `id` in the `required` section, it will require it in the requests also? (NOT SURE) Also, it's possible to make `readOnly` and `writeOnly` true at the same time, which makes no sense. +Also, it's possible to make `readOnly` or `writeOnly` false, which makes no impact but creates more options to confuse people. + +One more issue with `readOnly` and `writeOnly` when we want to reuse schemas. +Let's imagine we have a component named `OrderStatus`, but in a specific place we want it to be read-only. +If we compose it with `allOf`, it's not obvious if it takes effect since `allOf` don't merge subschemas, only validates against all of them: + +```yaml +schema: + orderStatus: + allOf: + - $ref: '#/components/schemas/OrderStatus' + - readOnly: true +``` + +Actually, in Redoc, it does render as read-only, but it's not guaranteed that all tools will interpret it the same way. +To really make it read-only, we have to make an ugly workaround (because `allOf` is not intended for this purpose) like this: + +```yaml +schemas: + Order: + ... + orderStatus: + allOf: + - $ref: '#/components/schemas/OrderStatus' + readOnly: true +``` + +Since X-Type keeps type description separate from OpenAPI modifiers, it's as easy as using `$omit` alongside `$ref`: + +```yaml +requestBody: + content: + application/json: + x-type: + $ref: '#/components/x-types/Order' + $omit: + - orderStatus +``` + + --- diff --git a/applications/__tests__/e2e-bundle.test.js b/applications/__tests__/e2e-bundle.test.js index 72f9686..86d3270 100644 --- a/applications/__tests__/e2e-bundle.test.js +++ b/applications/__tests__/e2e-bundle.test.js @@ -4,105 +4,105 @@ import {runCommand} from './e2e-utils' describe('bundle', () => { test('bundle and translate x-type to schema (for regular $ref objects)', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('do not add schemas if there is no x-type', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-without-x-types.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-without-x-types.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('resolve different type of $refs on different levels and ignore wrong $refs (with --force) when bundling', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-with-refs.yaml --force --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-with-refs.yaml --force --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('do not bundle an openapi with type never', () => { const {stderr} = runCommand( - 'redocly bundle applications/resources/openapi-never.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-never.yaml --config=applications/x-type.redocly.yaml' ) expect(stderr).toMatchSnapshot() }) test('resolve and translate $ands', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-and.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-and.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('translate x-type to schema inside parameters', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-with-x-types-inside-parameters.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-with-x-types-inside-parameters.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('translate x-types inside ORs', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-or.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-or.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('translate string and number formats', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-type-formats.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-type-formats.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('distributivity in x-types', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-with-nested-ors-in-ands.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-with-nested-ors-in-ands.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('replace existing schemas', () => { const {stdout: notPreserved} = runCommand( - 'redocly bundle applications/resources/openapi-with-schema.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-with-schema.yaml --config=applications/x-type.redocly.yaml' ) expect(notPreserved).toMatchSnapshot() }) test('descriptions in x-types', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-with-descriptions.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-with-descriptions.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('generate x-types from JSON Schemas (petstore)', () => { const {stdout: toXTypes} = runCommand( - 'redocly bundle applications/resources/pets.yaml --config=applications/generate-x-types-redocly.yaml' + 'redocly bundle applications/resources/pets.yaml --config=applications/generate-x-types.redocly.yaml' ) expect(toXTypes).toMatchFileSnapshot('file-snapshots/pets-to-x-types.yaml') }) test('generate x-types from JSON Schemas (readOnly and writeOnly)', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-from-readonly-writeonly-to-omit.yaml --config=applications/generate-x-types-redocly.yaml' + 'redocly bundle applications/resources/openapi-from-readonly-writeonly-to-omit.yaml --config=applications/generate-x-types.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('openapi with circular refs to writeOnly', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-writeonly-circular.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-writeonly-circular.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('openapi with omitting fields', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-omit.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-omit.yaml --config=applications/x-type.redocly.yaml' ) // FIXME: the $omit field merges directly into the resolved object. this may cause issues if $ref is not an object expect(stdout).toMatchSnapshot() @@ -110,35 +110,35 @@ describe('bundle', () => { test('openapi with $-prefixed fields', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-dollar-prefixed-fields.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-dollar-prefixed-fields.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('openapi with $and and $description', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-and-with-descriptions.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-and-with-descriptions.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('openapi with discriminators converted to schemas', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-with-discriminators.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-with-discriminators.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('openapi with discriminators converted to x-types', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-with-discriminators.yaml --config=applications/generate-x-types-redocly.yaml' + 'redocly bundle applications/resources/openapi-with-discriminators.yaml --config=applications/generate-x-types.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) test('openapi with circular refs converted to schemas', () => { const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-with-circular-refs.yaml --config=applications/x-redocly.yaml' + 'redocly bundle applications/resources/openapi-with-circular-refs.yaml --config=applications/x-type.redocly.yaml' ) expect(stdout).toMatchSnapshot() }) diff --git a/applications/__tests__/e2e-lint.test.js b/applications/__tests__/e2e-lint.test.js index 389c2a7..ae4a617 100644 --- a/applications/__tests__/e2e-lint.test.js +++ b/applications/__tests__/e2e-lint.test.js @@ -4,84 +4,84 @@ import {runCommand, stripCWD} from './e2e-utils' describe('lint', () => { test('general openapi case (using preprocessors to transform)', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi.yaml --config=applications/x-type.redocly.yaml' ) expect(stderr).toMatchSnapshot() }) test('openapi with mixed types', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-mixed-types.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-mixed-types.yaml --config=applications/x-type.redocly.yaml' ) expect(stripCWD(stderr)).toMatchSnapshot() }) test('openapi that contains wrong and correct $ands', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-and.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-and.yaml --config=applications/x-type.redocly.yaml' ) expect(stripCWD(stderr)).toMatchSnapshot() }) test('openapi with x-types inside parameters', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-with-x-types-inside-parameters.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-with-x-types-inside-parameters.yaml --config=applications/x-type.redocly.yaml' ) expect(stderr).toMatchSnapshot() }) test('openapi with ORs (including nested and referenced)', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-or.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-or.yaml --config=applications/x-type.redocly.yaml' ) expect(stderr).toMatchSnapshot() }) test('distribytivity in x-types', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-with-nested-ors-in-ands.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-with-nested-ors-in-ands.yaml --config=applications/x-type.redocly.yaml' ) expect(stderr).toMatchSnapshot() }) test('x-type described with x-type itself', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/x-types-described-with-x-type.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/x-types-described-with-x-type.yaml --config=applications/x-type.redocly.yaml' ) expect(stripCWD(stderr)).toMatchSnapshot() }) test('openapi with external $refs', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-with-external-refs.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-with-external-refs.yaml --config=applications/x-type.redocly.yaml' ) expect(stripCWD(stderr)).toMatchSnapshot() }) test('openapi with omitting fields', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-omit.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-omit.yaml --config=applications/x-type.redocly.yaml' ) expect(stripCWD(stderr)).toMatchSnapshot() }) test('openapi with $and and $description', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-and-with-descriptions.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-and-with-descriptions.yaml --config=applications/x-type.redocly.yaml' ) expect(stripCWD(stderr)).toMatchSnapshot() }) test('openapi with circular refs', () => { const {stderr} = runCommand( - 'redocly lint applications/resources/openapi-with-circular-refs.yaml --config=applications/x-redocly.yaml' + 'redocly lint applications/resources/openapi-with-circular-refs.yaml --config=applications/x-type.redocly.yaml' ) expect(stripCWD(stderr)).toMatchSnapshot() }) test('openapi with redundant key in $descriptions', () => { const {stdout: stderr} = runCommand( - 'redocly lint applications/resources/openapi-with-redundant-description.yaml --config=applications/x-redocly.yaml 2>&1' + 'redocly lint applications/resources/openapi-with-redundant-description.yaml --config=applications/x-type.redocly.yaml 2>&1' ) expect(stripCWD(stderr)).toMatchSnapshot() }) diff --git a/applications/generate-x-types-redocly.yaml b/applications/generate-x-types.redocly.yaml similarity index 87% rename from applications/generate-x-types-redocly.yaml rename to applications/generate-x-types.redocly.yaml index 5a092c8..5cf936d 100644 --- a/applications/generate-x-types-redocly.yaml +++ b/applications/generate-x-types.redocly.yaml @@ -10,3 +10,4 @@ preprocessors: decorators: x-types/generate-x-types: {} + x-types/remove-schemas: on diff --git a/applications/remove-x-types.redocly.yaml b/applications/remove-x-types.redocly.yaml new file mode 100644 index 0000000..b4e0dc6 --- /dev/null +++ b/applications/remove-x-types.redocly.yaml @@ -0,0 +1,8 @@ +extends: + - x-types/all + +plugins: + - x-types-plugin.js + +decorators: + x-types/remove-x-types: {} diff --git a/applications/resources/cafe.x-type.yaml b/applications/resources/cafe.x-type.yaml new file mode 100644 index 0000000..074de31 --- /dev/null +++ b/applications/resources/cafe.x-type.yaml @@ -0,0 +1,818 @@ +openapi: 3.2.0 +info: + title: Redocly Cafe + description: | + REST API for managing cafe operations. + version: 1.0.0 + contact: + email: team@redocly.com + url: https://redocly.com/contact-us/ + license: + name: MIT + url: https://opensource.org/licenses/MIT + termsOfService: https://redocly.com/subscription-agreement +servers: + - url: https://cafe.redocly.com/v1 + description: Live server. +tags: + - name: Products + description: Operations related to products. + - name: Orders + description: Order management operations. + - name: Auth + description: Authentication operations. + - name: Stats + description: Statistics operations. +paths: + /menu: + get: + tags: + - Products + summary: List menu items + description: Retrieve a collection of menu items with optional filtering and pagination. + operationId: listMenuItems + security: [] + parameters: + - $ref: '#/components/parameters/After' + - $ref: '#/components/parameters/Before' + - $ref: '#/components/parameters/Sort' + - $ref: '#/components/parameters/Filter' + - $ref: '#/components/parameters/Search' + - $ref: '#/components/parameters/Limit' + responses: + '200': + description: Successful operation. + content: + application/json: + x-type: + $ref: '#/components/x-types/MenuItemList' + '400': + $ref: '#/components/responses/BadRequest' + '500': + $ref: '#/components/responses/InternalServerError' + post: + tags: + - Products + summary: Create menu item + description: Create a new menu item. + operationId: createMenuItem + security: + - OAuth2: + - menu:write + requestBody: + required: true + content: + multipart/form-data: + x-type: + $ref: '#/components/x-types/MenuItem' + $omit: + - createdAt + - updatedAt + - id + - object + responses: + '201': + description: Menu item created successfully. + content: + application/json: + x-type: + $ref: '#/components/x-types/MenuItem' + $omit: + - photo + - photoTextDescription + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '409': + $ref: '#/components/responses/Conflict' + '500': + $ref: '#/components/responses/InternalServerError' + /menu/{menuItemId}: + parameters: + - $ref: '#/components/parameters/MenuItemId' + delete: + tags: + - Products + summary: Delete menu item + description: Delete an existing menu item. + operationId: deleteMenuItem + security: + - OAuth2: + - menu:write + responses: + '204': + description: Menu item deleted successfully. + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + /menu-item-images/{menuItemId}: + parameters: + - $ref: '#/components/parameters/MenuItemId' + get: + operationId: getMenuItemPhoto + summary: Get menu item photo + description: Retrieve the product photo image for a specific menu item. + security: [] + tags: + - Products + parameters: + - $ref: '#/components/parameters/PhotoSize' + responses: + '200': + description: Menu item photo retrieved successfully. + content: + image/png: + x-type: string::binary + text/plain: + x-type: string + '404': + $ref: '#/components/responses/NotFound' + /orders: + get: + tags: + - Orders + summary: List orders + description: Retrieve a collection of orders with optional filtering and pagination. + operationId: listOrders + security: + - OAuth2: + - orders:read + parameters: + - $ref: '#/components/parameters/Filter' + - $ref: '#/components/parameters/Sort' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/After' + - $ref: '#/components/parameters/Before' + - $ref: '#/components/parameters/Search' + responses: + '200': + description: Successful operation. + content: + application/json: + x-type: + $ref: '#/components/x-types/OrderList' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '500': + $ref: '#/components/responses/InternalServerError' + post: + tags: + - Orders + summary: Create order + description: | + Create a new order. + Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed. + Orders cannot be deleted, only canceled. + operationId: createOrder + security: + - OAuth2: + - orders:write + requestBody: + required: true + content: + application/json: + x-type: + $ref: '#/components/x-types/Order' + $omit: + - id + - object + - status + - totalPrice + - createdAt + - updatedAt + responses: + '201': + description: Order placed successfully. + content: + application/json: + x-type: + $ref: '#/components/x-types/Order' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '500': + $ref: '#/components/responses/InternalServerError' + /orders/{orderId}: + get: + tags: + - Orders + summary: Get order by ID + description: Retrieve a single order by its ID. + operationId: getOrderById + security: [] + parameters: + - $ref: '#/components/parameters/OrderId' + responses: + '200': + description: Successful operation. + content: + application/json: + x-type: + $ref: '#/components/x-types/Order' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + patch: + tags: + - Orders + summary: Update order + description: | + Update an existing order status. + Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed. + operationId: updateOrder + security: + - OAuth2: + - orders:write + parameters: + - $ref: '#/components/parameters/OrderId' + requestBody: + content: + application/json: + x-type: + status: + $ref: '#/components/x-types/OrderStatus' + responses: + '200': + description: Order updated successfully. + content: + application/json: + x-type: + $ref: '#/components/x-types/Order' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + delete: + tags: + - Orders + summary: Cancel order + description: | + Cancel the order. + Orders cannot be deleted, only canceled. + operationId: cancelOrder + security: + - OAuth2: + - orders:write + parameters: + - $ref: '#/components/parameters/OrderId' + responses: + '204': + description: Order status updated successfully. + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + /order-items: + get: + tags: + - Orders + summary: List order items + description: | + Returns an array of order items for a specific order. + Use the `filter` parameter to filter by order ID. + operationId: listOrderItems + security: + - OAuth2: + - orders:read + parameters: + - name: filter + description: Filters the collection items. This field requires a special format. + in: query + required: true + example: orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 + x-type: string + responses: + '200': + description: Successful operation. + content: + application/json: + x-type: + $array: + $ref: '#/components/x-types/OrderItem' + $omit: + - menuItemId + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + /revenue: + get: + tags: + - Stats + summary: Get revenue statistics + description: | + Retrieve revenue statistics for a configurable date range. + Returns revenue, order counts, average order amount, and other useful statistics. + operationId: getRevenue + security: + - ApiKey: [] + parameters: + - name: startDate + in: query + required: false + description: Start date for the revenue calculation period (ISO 8601 datetime format). Defaults to 30 days ago if not provided. + example: '2024-01-01' + x-type: string::date + - name: endDate + in: query + required: false + description: End date for the revenue calculation period (ISO 8601 datetime format). Defaults to current time if not provided. + example: '2024-01-31' + x-type: string::date + responses: + '200': + description: Revenue statistics retrieved successfully. + content: + application/json: + x-type: + $ref: '#/components/x-types/RevenueStatistics' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '500': + $ref: '#/components/responses/InternalServerError' + /oauth2/register: + post: + tags: + - Auth + summary: Create OAuth2 client + description: | + Register a new OAuth2 client for dynamic client registration. + This endpoint implements the Dynamic Client Registration Protocol (RFC 7591), + using camelCase field names instead of the RFC's snake_case convention + (e.g., `redirectUris` instead of `redirect_uris`, `grantTypes` instead of `grant_types`). + + The `name` field is required. Other fields are optional. If not provided: + - `redirectUris` defaults to an empty array. Note: When using the `authorization_code` grant type, + `redirectUris` must be provided (per RFC 7591 Section 2). + - `scopes` defaults to all available scopes (menu:read, menu:write, orders:read, orders:write) + - `grantTypes` defaults to both supported grant types (authorization_code, client_credentials) + + Returns the registered client information per RFC 7591, including: + - `clientId` and `clientSecret` (must be stored securely) + - `clientIdIssuedAt` and `clientSecretExpiresAt` timestamps + - All registered client metadata (name, redirectUris, scopes, grantTypes) + operationId: registerOAuth2Client + security: [] + requestBody: + required: true + content: + application/json: + x-type: + $ref: '#/components/x-types/RegisterClientObject' + responses: + '201': + description: OAuth2 client registered successfully. + content: + application/json: + x-type: + $ref: '#/components/x-types/OAuth2Client' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '500': + $ref: '#/components/responses/InternalServerError' +webhooks: + order-notification: + post: + tags: + - Orders + operationId: orderNotificationWebhook + security: [] + summary: Order notification webhook + description: Webhook triggered when a new order is placed. + requestBody: + required: true + content: + application/json: + x-type: + $ref: '#/components/x-types/OrderNotification' + responses: + '200': + description: Webhook received successfully. + '400': + $ref: '#/components/responses/BadRequest' +components: + securitySchemes: + OAuth2: + type: oauth2 + description: OAuth2 authentication for API access. + flows: + authorizationCode: + authorizationUrl: https://cafe.redocly.com/v1/oauth2/authorize + tokenUrl: https://cafe.redocly.com/v1/oauth2/token + scopes: + menu:read: Read access to menu items and images + menu:write: Write access to menu items (create, delete) + orders:read: Read access to orders + orders:write: Write access to orders (create, update, delete) + clientCredentials: + tokenUrl: https://cafe.redocly.com/v1/oauth2/token + scopes: + menu:read: Read access to menu items and images + menu:write: Write access to menu items (create, delete) + orders:read: Read access to orders + orders:write: Write access to orders (create, update, delete) + ApiKey: + type: apiKey + name: X-API-Key + in: header + description: API key for internal operations. + parameters: + After: + name: after + in: query + required: false + description: Use the `endCursor` as a value for the `after` parameter to get the next page. + example: a25fgaksjf23la== + x-type: string + Before: + name: before + in: query + required: false + description: Use the `startCursor` as a value for the `before` parameter to get the next page. + example: bfg23aksjf23zb1== + x-type: string + Sort: + name: sort + description: |- + To sort by id in descending order use `-id`. + To sort by id in ascending order use `id`. + in: query + required: false + example: '-name' + x-type: string + Filter: + name: filter + description: Filters the collection items. This field requires a special format. + in: query + required: false + example: orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 + x-type: string + Search: + name: search + in: query + description: Search. + required: false + example: text-to-search + x-type: string + Limit: + name: limit + description: |- + Use to return a number of results per page. + If there is more data, use in combination with `after` to page through the data. + in: query + required: false + example: 10 + x-type: number::integer::min(1)::max(100) + MenuItemId: + name: menuItemId + in: path + description: ID of the menu item to retrieve. + required: true + example: prd_01h1s5z6vf2mm1mz3hevnn9va7 + x-type: string::pattern(^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$) + PhotoSize: + name: photoSize + in: query + description: Photo size to retrieve. + required: false + x-type: + - thumbnail + - medium + - large + OrderId: + name: orderId + in: path + description: ID of the order to retrieve. + required: true + example: ord_01h1s5z6vf2mm1mz3hevnn9va7 + x-type: string::pattern(^ord_[0-9abcdefghjkmnpqrstvwxyz]{26}$) + responses: + BadRequest: + description: Bad request - invalid input parameters. + content: + application/problem+json: + x-type: + $ref: '#/components/x-types/Error' + InternalServerError: + description: Internal server error. + content: + application/problem+json: + x-type: + $ref: '#/components/x-types/Error' + Unauthorized: + description: Unauthorized - authentication required. + content: + application/problem+json: + x-type: + $ref: '#/components/x-types/Error' + Forbidden: + description: Forbidden - insufficient permissions. + content: + application/problem+json: + x-type: + $ref: '#/components/x-types/Error' + Conflict: + description: Conflict - entity already exists. + content: + application/problem+json: + x-type: + $ref: '#/components/x-types/Error' + NotFound: + description: Resource not found. + content: + application/problem+json: + x-type: + $ref: '#/components/x-types/Error' + x-types: + Page: + endCursor: + - string + - null + startCursor: + - string + - null + hasNextPage: boolean + hasPrevPage: boolean + limit: number::integer::min(1)::max(100) + total: number::integer::min(0) + $descriptions: + endCursor: |- + Use with the `after` query parameter to load the next page of data. + When `null`, there is no data. + The cursor is opaque and internal structure is subject to change. + startCursor: |- + Use with the `before` query parameter to load the previous page of data. + When `null`, there is no data. + The cursor is opaque and internal structure is subject to change. + hasNextPage: Indicates if there is a next page with items. + hasPrevPage: Indicates if there is a previous page with items. + limit: Value showing how many items are in the page limit. + total: Count of items across all pages. + MenuItem: + createdAt: string::date-time + updatedAt: string::date-time + id: string::pattern(^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$) + object: menuItem + name: string::pattern(^[a-z]+(-[a-z]+)*$)::min(1)::max(50) + price: number::integer::min(0) + photo: + - string::binary + - null + - undefined + photoTextDescription: + - string + - null + - undefined + category: + - beverage + - dessert + $discriminator: + propertyName: category + mapping: + beverage: '#/components/schemas/Beverage' + dessert: '#/components/schemas/Dessert' + $descriptions: + createdAt: Created date. + updatedAt: Updated date. + id: Menu item ID. Unique identifier prefixed with `prd_`. + object: Entity name. + name: Menu item name. Must be lowercase letters, optionally hyphenated. + price: Price in cents. + photo: Photo of the menu item. Must be a PNG image and less than 1MB. + category: Menu item category. + Beverage: + $and: + - $ref: '#/components/x-types/MenuItem' + - size: number::x-min(0) + sizeType: + - ml + - oz + - undefined + containsCaffeine: boolean + $descriptions: + size: Size of the beverage. + containsCaffeine: Indicates if the beverage contains caffeine. + Dessert: + $and: + - $ref: '#/components/x-types/MenuItem' + - calories: number::x-min(0) + $descriptions: + calories: Amount of calories. + MenuItemList: + object: list + page: + $ref: '#/components/x-types/Page' + items: + $array: + $ref: '#/components/x-types/MenuItem' + $descriptions: + object: Entity name. + Error: + type: string::uri-reference + title: string + status: number::int32::min(100)::x-max(600) + instance: + - string::uri-reference + - undefined + details: + - $record: any + - undefined + $descriptions: + type: URI reference that identifies the problem type. + title: Short summary of the problem type. + status: HTTP status code generated by the origin server for this occurrence of the problem. + instance: | + URI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code. + details: Additional error details. + OrderStatus: + - placed + - preparing + - completed + - canceled + Order: + id: string + object: string + customerName: string::pattern(^[A-Za-z]+(?:[\s'-][A-Za-z]+)*$)::min(1)::max(100) + status: + $ref: '#/components/x-types/OrderStatus' + totalPrice: number::integer::min(0) + createdAt: string::date-time + updatedAt: string::date-time + orderItems: + $array: + menuItemId: string + quantity: number::integer::min(1) + discount: + - number::integer::min(0) + - undefined + comment: + - string::max(500) + - undefined + $descriptions: + menuItemId: ID of the menu item to add to the order. + quantity: Quantity of the menu item. + discount: Discount amount in cents (absolute value). + comment: Optional comment for the order item (e.g., "No sugar"). + $descriptions: + id: Order ID. Unique identifier prefixed with `ord_`. + object: Entity name. + customerName: | + Name of the customer who placed the order. + Must start and end with a letter, and can contain letters, spaces, hyphens, and apostrophes (e.g., "John Doe", "Mary-Jane", "O'Brien"). + totalPrice: Total order price in cents. + createdAt: Created date. + updatedAt: Updated date. + orderItems: List of items to include in the order. + OrderList: + object: list + page: + $ref: '#/components/x-types/Page' + items: + $array: + $ref: '#/components/x-types/Order' + $descriptions: + object: Entity name. + OrderItem: + menuItemId: string + menuItem: + - $ref: '#/components/x-types/MenuItem' + - undefined + quantity: number::integer::min(1) + discount: + - number::integer::min(0) + - undefined + comment: + - string::max(500) + - undefined + $descriptions: + menuItemId: ID of the menu item to add to the order. + menuItem: Menu item that is part of the order. + quantity: Quantity of the menu item. + discount: Discount amount in cents (absolute value). + comment: Optional comment for the order item (e.g., "No sugar"). + RevenueStatistics: + revenue: number::min(0) + averageOrderAmount: number::min(0) + totalOrders: number::integer::min(0) + placedOrders: number::integer::min(0) + preparingOrders: number::integer::min(0) + completedOrders: number::integer::min(0) + canceledOrders: number::integer::min(0) + startDate: string::date + endDate: string::date + $descriptions: + revenue: Total revenue in cents from completed orders. + averageOrderAmount: Average order amount in cents (calculated from completed orders only). + totalOrders: Total number of orders (all statuses) in the date range. + placedOrders: Number of placed orders. + preparingOrders: Number of preparing orders. + completedOrders: Number of completed orders. + canceledOrders: Number of canceled orders. + startDate: Start date of the revenue calculation period. + endDate: End date of the revenue calculation period. + RegisterClientObject: + name: string + redirectUris: + - $array: string::uri + - undefined + scopes: + - $array: + - menu:read + - menu:write + - orders:read + - orders:write + - undefined + grantTypes: + - $array: + - authorization_code + - client_credentials + - undefined + $descriptions: + name: Client name. + redirectUris: List of redirect URIs (optional, defaults to empty array). + scopes: List of scopes. + grantTypes: List of grant types. + OAuth2Client: + clientId: string + clientSecret: string + clientIdIssuedAt: number::int64 + clientSecretExpiresAt: number::int64 + name: + - string + - undefined + redirectUris: + - $array: string::uri + - undefined + registrationClientUri: string::uri + registrationAccessToken: string + scopes: + - $array: + - menu:read + - menu:write + - orders:read + - orders:write + - undefined + grantTypes: + - $array: + - authorization_code + - client_credentials + - undefined + $descriptions: + clientId: Client identifier issued by the authorization server. + clientSecret: Client secret issued by the authorization server. + clientIdIssuedAt: Time when the client_id is issued, represented as seconds since epoch (RFC 7591). + clientSecretExpiresAt: Time at which the client_secret expires, represented as seconds since epoch. 0 indicates the secret does not expire (RFC 7591). + name: Client name (registered metadata). + redirectUris: List of redirect URIs (registered metadata). + registrationClientUri: URL of the client configuration endpoint for managing this client registration (RFC 7592). + registrationAccessToken: Access token to be used at the client configuration endpoint for managing this client registration (RFC 7592). + scopes: List of scopes (registered metadata). + grantTypes: List of grant types (registered metadata). + OrderNotification: + orderId: string + orderStatus: + $ref: '#/components/x-types/OrderStatus' + timestamp: string::date-time + $descriptions: + orderId: Unique order identifier. + timestamp: When the event occurred. diff --git a/applications/resources/cafe.yaml b/applications/resources/cafe.yaml new file mode 100644 index 0000000..f04e7a3 --- /dev/null +++ b/applications/resources/cafe.yaml @@ -0,0 +1,1061 @@ +openapi: 3.2.0 +info: + title: Redocly Cafe + description: | + REST API for managing cafe operations. + version: 1.0.0 + contact: + email: team@redocly.com + url: https://redocly.com/contact-us/ + license: + name: MIT + url: https://opensource.org/licenses/MIT + termsOfService: https://redocly.com/subscription-agreement +servers: + - url: https://cafe.redocly.com/v1 + description: Live server. +tags: + - name: Products + description: Operations related to products. + - name: Orders + description: Order management operations. + - name: Auth + description: Authentication operations. + - name: Stats + description: Statistics operations. +paths: + /menu: + get: + tags: + - Products + summary: List menu items + description: Retrieve a collection of menu items with optional filtering and pagination. + operationId: listMenuItems + security: [] + parameters: + - $ref: '#/components/parameters/After' + - $ref: '#/components/parameters/Before' + - $ref: '#/components/parameters/Sort' + - $ref: '#/components/parameters/Filter' + - $ref: '#/components/parameters/Search' + - $ref: '#/components/parameters/Limit' + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + $ref: '#/components/schemas/MenuItemList' + '400': + $ref: '#/components/responses/BadRequest' + '500': + $ref: '#/components/responses/InternalServerError' + post: + tags: + - Products + summary: Create menu item + description: Create a new menu item. + operationId: createMenuItem + security: + - OAuth2: + - menu:write + requestBody: + required: true + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/MenuItem' + responses: + '201': + description: Menu item created successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/MenuItem' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '409': + $ref: '#/components/responses/Conflict' + '500': + $ref: '#/components/responses/InternalServerError' + /menu/{menuItemId}: + parameters: + - $ref: '#/components/parameters/MenuItemId' + delete: + tags: + - Products + summary: Delete menu item + description: Delete an existing menu item. + operationId: deleteMenuItem + security: + - OAuth2: + - menu:write + responses: + '204': + description: Menu item deleted successfully. + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + /menu-item-images/{menuItemId}: + parameters: + - $ref: '#/components/parameters/MenuItemId' + get: + operationId: getMenuItemPhoto + summary: Get menu item photo + description: Retrieve the product photo image for a specific menu item. + security: [] + tags: + - Products + parameters: + - $ref: '#/components/parameters/PhotoSize' + responses: + '200': + description: Menu item photo retrieved successfully. + content: + image/png: + schema: + type: string + format: binary + text/plain: + schema: + description: Alternative image text. + type: string + '404': + $ref: '#/components/responses/NotFound' + /orders: + get: + tags: + - Orders + summary: List orders + description: Retrieve a collection of orders with optional filtering and pagination. + operationId: listOrders + security: + - OAuth2: + - orders:read + parameters: + - $ref: '#/components/parameters/Filter' + - $ref: '#/components/parameters/Sort' + - $ref: '#/components/parameters/Limit' + - $ref: '#/components/parameters/After' + - $ref: '#/components/parameters/Before' + - $ref: '#/components/parameters/Search' + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + $ref: '#/components/schemas/OrderList' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '500': + $ref: '#/components/responses/InternalServerError' + post: + tags: + - Orders + summary: Create order + description: | + Create a new order. + Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed. + Orders cannot be deleted, only canceled. + operationId: createOrder + security: + - OAuth2: + - orders:write + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/Order' + responses: + '201': + description: Order placed successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/Order' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '500': + $ref: '#/components/responses/InternalServerError' + /orders/{orderId}: + get: + tags: + - Orders + summary: Get order by ID + description: Retrieve a single order by its ID. + operationId: getOrderById + security: [] + parameters: + - $ref: '#/components/parameters/OrderId' + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + $ref: '#/components/schemas/Order' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + patch: + tags: + - Orders + summary: Update order + description: | + Update an existing order status. + Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed. + operationId: updateOrder + security: + - OAuth2: + - orders:write + parameters: + - $ref: '#/components/parameters/OrderId' + requestBody: + content: + application/json: + schema: + type: object + description: Partial order update using JSON Merge Patch - only include fields to update. + properties: + status: + $ref: '#/components/schemas/OrderStatus' + required: + - status + responses: + '200': + description: Order updated successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/Order' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + delete: + tags: + - Orders + summary: Cancel order + description: | + Cancel the order. + Orders cannot be deleted, only canceled. + operationId: cancelOrder + security: + - OAuth2: + - orders:write + parameters: + - $ref: '#/components/parameters/OrderId' + responses: + '204': + description: Order status updated successfully. + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + /order-items: + get: + tags: + - Orders + summary: List order items + description: | + Returns an array of order items for a specific order. + Use the `filter` parameter to filter by order ID. + operationId: listOrderItems + security: + - OAuth2: + - orders:read + parameters: + - name: filter + description: Filters the collection items. This field requires a special format. + in: query + required: true + schema: + type: string + example: orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 + responses: + '200': + description: Successful operation. + content: + application/json: + schema: + type: array + description: List of menu items that are part of the order. + items: + $ref: '#/components/schemas/OrderItem' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '404': + $ref: '#/components/responses/NotFound' + '500': + $ref: '#/components/responses/InternalServerError' + /revenue: + get: + tags: + - Stats + summary: Get revenue statistics + description: | + Retrieve revenue statistics for a configurable date range. + Returns revenue, order counts, average order amount, and other useful statistics. + operationId: getRevenue + security: + - ApiKey: [] + parameters: + - name: startDate + in: query + required: false + description: Start date for the revenue calculation period (ISO 8601 datetime format). Defaults to 30 days ago if not provided. + schema: + type: string + format: date + example: '2024-01-01' + - name: endDate + in: query + required: false + description: End date for the revenue calculation period (ISO 8601 datetime format). Defaults to current time if not provided. + schema: + type: string + format: date + example: '2024-01-31' + responses: + '200': + description: Revenue statistics retrieved successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/RevenueStatistics' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '500': + $ref: '#/components/responses/InternalServerError' + /oauth2/register: + post: + tags: + - Auth + summary: Create OAuth2 client + description: | + Register a new OAuth2 client for dynamic client registration. + This endpoint implements the Dynamic Client Registration Protocol (RFC 7591), + using camelCase field names instead of the RFC's snake_case convention + (e.g., `redirectUris` instead of `redirect_uris`, `grantTypes` instead of `grant_types`). + + The `name` field is required. Other fields are optional. If not provided: + - `redirectUris` defaults to an empty array. Note: When using the `authorization_code` grant type, + `redirectUris` must be provided (per RFC 7591 Section 2). + - `scopes` defaults to all available scopes (menu:read, menu:write, orders:read, orders:write) + - `grantTypes` defaults to both supported grant types (authorization_code, client_credentials) + + Returns the registered client information per RFC 7591, including: + - `clientId` and `clientSecret` (must be stored securely) + - `clientIdIssuedAt` and `clientSecretExpiresAt` timestamps + - All registered client metadata (name, redirectUris, scopes, grantTypes) + operationId: registerOAuth2Client + security: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/RegisterClientObject' + responses: + '201': + description: OAuth2 client registered successfully. + content: + application/json: + schema: + $ref: '#/components/schemas/OAuth2Client' + '400': + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' + '500': + $ref: '#/components/responses/InternalServerError' +webhooks: + order-notification: + post: + tags: + - Orders + operationId: orderNotificationWebhook + security: [] + summary: Order notification webhook + description: Webhook triggered when a new order is placed. + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/OrderNotification' + responses: + '200': + description: Webhook received successfully. + '400': + $ref: '#/components/responses/BadRequest' +components: + securitySchemes: + OAuth2: + type: oauth2 + description: OAuth2 authentication for API access. + flows: + authorizationCode: + authorizationUrl: https://cafe.redocly.com/v1/oauth2/authorize + tokenUrl: https://cafe.redocly.com/v1/oauth2/token + scopes: + menu:read: Read access to menu items and images + menu:write: Write access to menu items (create, delete) + orders:read: Read access to orders + orders:write: Write access to orders (create, update, delete) + clientCredentials: + tokenUrl: https://cafe.redocly.com/v1/oauth2/token + scopes: + menu:read: Read access to menu items and images + menu:write: Write access to menu items (create, delete) + orders:read: Read access to orders + orders:write: Write access to orders (create, update, delete) + ApiKey: + type: apiKey + name: X-API-Key + in: header + description: API key for internal operations. + parameters: + After: + name: after + in: query + required: false + description: Use the `endCursor` as a value for the `after` parameter to get the next page. + schema: + type: string + example: a25fgaksjf23la== + Before: + name: before + in: query + required: false + description: Use the `startCursor` as a value for the `before` parameter to get the next page. + schema: + type: string + example: bfg23aksjf23zb1== + Sort: + name: sort + description: |- + To sort by id in descending order use `-id`. + To sort by id in ascending order use `id`. + in: query + required: false + schema: + type: string + example: '-name' + Filter: + name: filter + description: Filters the collection items. This field requires a special format. + in: query + required: false + schema: + type: string + example: orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 + Search: + name: search + in: query + description: Search. + required: false + schema: + type: string + example: text-to-search + Limit: + name: limit + description: |- + Use to return a number of results per page. + If there is more data, use in combination with `after` to page through the data. + in: query + required: false + schema: + type: integer + minimum: 1 + maximum: 100 + default: 10 + example: 10 + MenuItemId: + name: menuItemId + in: path + description: ID of the menu item to retrieve. + required: true + schema: + type: string + pattern: ^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$ + example: prd_01h1s5z6vf2mm1mz3hevnn9va7 + PhotoSize: + name: photoSize + in: query + description: Photo size to retrieve. + required: false + schema: + type: string + enum: + - thumbnail + - medium + - large + default: medium + OrderId: + name: orderId + in: path + description: ID of the order to retrieve. + required: true + schema: + type: string + pattern: ^ord_[0-9abcdefghjkmnpqrstvwxyz]{26}$ + example: ord_01h1s5z6vf2mm1mz3hevnn9va7 + schemas: + Page: + type: object + properties: + endCursor: + type: + - string + - 'null' + description: |- + Use with the `after` query parameter to load the next page of data. + When `null`, there is no data. + The cursor is opaque and internal structure is subject to change. + startCursor: + type: + - string + - 'null' + description: |- + Use with the `before` query parameter to load the previous page of data. + When `null`, there is no data. + The cursor is opaque and internal structure is subject to change. + hasNextPage: + type: boolean + description: Indicates if there is a next page with items. + hasPrevPage: + type: boolean + description: Indicates if there is a previous page with items. + limit: + type: integer + minimum: 1 + maximum: 100 + default: 10 + description: Value showing how many items are in the page limit. + total: + type: integer + description: Count of items across all pages. + minimum: 0 + required: + - endCursor + - startCursor + - hasNextPage + - hasPrevPage + - limit + - total + MenuItem: + type: object + properties: + createdAt: + description: Created date. + type: string + format: date-time + readOnly: true + updatedAt: + description: Updated date. + type: string + format: date-time + readOnly: true + id: + description: Menu item ID. Unique identifier prefixed with `prd_`. + type: string + readOnly: true + pattern: ^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$ + example: prd_01h1s5z6vf2mm1mz3hevnn9va7 + object: + description: Entity name. + type: string + const: menuItem + readOnly: true + name: + description: Menu item name. Must be lowercase letters, optionally hyphenated. + type: string + pattern: ^[a-z]+(-[a-z]+)*$ + minLength: 1 + maxLength: 50 + examples: + - coffee + - tea + - cake + - ice-cream + price: + description: Price in cents. + type: integer + minimum: 0 + photo: + writeOnly: true + type: + - string + - 'null' + format: binary + description: Photo of the menu item. Must be a PNG image and less than 1MB. + photoTextDescription: + writeOnly: true + type: + - string + - 'null' + category: + description: Menu item category. + type: string + enum: + - beverage + - dessert + discriminator: + propertyName: category + mapping: + beverage: '#/components/schemas/Beverage' + dessert: '#/components/schemas/Dessert' + required: + - id + - name + - category + - price + - createdAt + - updatedAt + - object + Beverage: + allOf: + - $ref: '#/components/schemas/MenuItem' + - type: object + properties: + size: + type: number + description: Size of the beverage. + exclusiveMinimum: 0 + sizeType: + type: string + default: ml + enum: + - ml + - oz + containsCaffeine: + type: boolean + description: Indicates if the beverage contains caffeine. + required: + - size + - containsCaffeine + Dessert: + allOf: + - $ref: '#/components/schemas/MenuItem' + - type: object + properties: + calories: + type: number + exclusiveMinimum: 0 + description: Amount of calories. + required: + - calories + MenuItemList: + type: object + properties: + object: + type: string + const: list + description: Entity name. + page: + $ref: '#/components/schemas/Page' + items: + type: array + items: + $ref: '#/components/schemas/MenuItem' + required: + - object + - page + - items + Error: + type: object + properties: + type: + type: string + format: uri-reference + description: URI reference that identifies the problem type. + default: about:blank + title: + type: string + description: Short summary of the problem type. + status: + type: integer + format: int32 + description: HTTP status code generated by the origin server for this occurrence of the problem. + minimum: 100 + exclusiveMaximum: 600 + instance: + type: string + format: uri-reference + description: | + URI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code. + example: /some/uri-reference#specific-occurrence-context + details: + description: Additional error details. + type: object + additionalProperties: true + required: + - type + - title + - status + OrderStatus: + type: string + description: Order status. + enum: + - placed + - preparing + - completed + - canceled + Order: + type: object + title: Order + properties: + id: + description: Order ID. Unique identifier prefixed with `ord_`. + type: string + readOnly: true + object: + description: Entity name. + type: string + const: order + readOnly: true + customerName: + description: | + Name of the customer who placed the order. + Must start and end with a letter, and can contain letters, spaces, hyphens, and apostrophes (e.g., "John Doe", "Mary-Jane", "O'Brien"). + type: string + pattern: ^[A-Za-z]+(?:[\s'-][A-Za-z]+)*$ + minLength: 1 + maxLength: 100 + examples: + - John Doe + - Mary-Jane + - O'Brien + - Jean-Pierre + status: + allOf: + - $ref: '#/components/schemas/OrderStatus' + readOnly: true + totalPrice: + description: Total order price in cents. + type: integer + minimum: 0 + readOnly: true + createdAt: + description: Created date. + type: string + format: date-time + readOnly: true + updatedAt: + description: Updated date. + type: string + format: date-time + readOnly: true + orderItems: + type: array + description: List of items to include in the order. + minItems: 1 + items: + type: object + properties: + menuItemId: + type: string + description: ID of the menu item to add to the order. + quantity: + type: integer + minimum: 1 + description: Quantity of the menu item. + discount: + type: integer + minimum: 0 + description: Discount amount in cents (absolute value). + default: 0 + comment: + type: string + maxLength: 500 + description: Optional comment for the order item (e.g., "No sugar"). + required: + - menuItemId + - quantity + required: + - customerName + - orderItems + OrderList: + type: object + properties: + object: + type: string + const: list + description: Entity name. + page: + $ref: '#/components/schemas/Page' + items: + type: array + items: + $ref: '#/components/schemas/Order' + required: + - object + - page + - items + OrderItem: + type: object + properties: + menuItemId: + type: string + description: ID of the menu item to add to the order. + writeOnly: true + menuItem: + allOf: + - $ref: '#/components/schemas/MenuItem' + description: Menu item that is part of the order. + readOnly: true + quantity: + type: integer + minimum: 1 + description: Quantity of the menu item. + discount: + type: integer + minimum: 0 + description: Discount amount in cents (absolute value). + default: 0 + comment: + type: string + maxLength: 500 + description: Optional comment for the order item (e.g., "No sugar"). + required: + - menuItemId + - quantity + RevenueStatistics: + type: object + description: Revenue statistics for a given date range. + properties: + revenue: + type: number + format: float + description: Total revenue in cents from completed orders. + minimum: 0 + averageOrderAmount: + type: number + format: float + description: Average order amount in cents (calculated from completed orders only). + minimum: 0 + totalOrders: + type: integer + description: Total number of orders (all statuses) in the date range. + minimum: 0 + placedOrders: + type: integer + description: Number of placed orders. + minimum: 0 + preparingOrders: + type: integer + description: Number of preparing orders. + minimum: 0 + completedOrders: + type: integer + description: Number of completed orders. + minimum: 0 + canceledOrders: + type: integer + description: Number of canceled orders. + minimum: 0 + startDate: + type: string + format: date + description: Start date of the revenue calculation period. + endDate: + type: string + format: date + description: End date of the revenue calculation period. + required: + - revenue + - averageOrderAmount + - totalOrders + - placedOrders + - preparingOrders + - completedOrders + - canceledOrders + - startDate + - endDate + RegisterClientObject: + type: object + properties: + name: + type: string + description: Client name. + redirectUris: + type: array + items: + type: string + format: uri + description: List of redirect URIs (optional, defaults to empty array). + scopes: + type: array + items: + type: string + enum: + - menu:read + - menu:write + - orders:read + - orders:write + description: List of scopes. + grantTypes: + type: array + items: + type: string + enum: + - authorization_code + - client_credentials + description: List of grant types. + required: + - name + OAuth2Client: + type: object + description: | + OAuth2 client registration response. Per RFC 7591, includes the client identifier, + secret, timestamps, and all registered client metadata. + properties: + clientId: + type: string + description: Client identifier issued by the authorization server. + clientSecret: + type: string + description: Client secret issued by the authorization server. + clientIdIssuedAt: + type: integer + format: int64 + description: Time when the client_id is issued, represented as seconds since epoch (RFC 7591). + clientSecretExpiresAt: + type: integer + format: int64 + description: Time at which the client_secret expires, represented as seconds since epoch. 0 indicates the secret does not expire (RFC 7591). + name: + type: string + description: Client name (registered metadata). + redirectUris: + type: array + items: + type: string + format: uri + description: List of redirect URIs (registered metadata). + registrationClientUri: + type: string + format: uri + description: URL of the client configuration endpoint for managing this client registration (RFC 7592). + registrationAccessToken: + type: string + description: Access token to be used at the client configuration endpoint for managing this client registration (RFC 7592). + scopes: + type: array + items: + type: string + enum: + - menu:read + - menu:write + - orders:read + - orders:write + description: List of scopes (registered metadata). + grantTypes: + type: array + items: + type: string + enum: + - authorization_code + - client_credentials + description: List of grant types (registered metadata). + required: + - clientId + - clientSecret + - clientIdIssuedAt + - clientSecretExpiresAt + - registrationClientUri + - registrationAccessToken + OrderNotification: + type: object + required: + - orderId + - orderStatus + - timestamp + properties: + orderId: + type: string + description: Unique order identifier. + orderStatus: + $ref: '#/components/schemas/OrderStatus' + timestamp: + type: string + format: date-time + description: When the event occurred. + responses: + BadRequest: + description: Bad request - invalid input parameters. + content: + application/problem+json: + schema: + $ref: '#/components/schemas/Error' + InternalServerError: + description: Internal server error. + content: + application/problem+json: + schema: + $ref: '#/components/schemas/Error' + Unauthorized: + description: Unauthorized - authentication required. + content: + application/problem+json: + schema: + $ref: '#/components/schemas/Error' + Forbidden: + description: Forbidden - insufficient permissions. + content: + application/problem+json: + schema: + $ref: '#/components/schemas/Error' + Conflict: + description: Conflict - entity already exists. + content: + application/problem+json: + schema: + $ref: '#/components/schemas/Error' + NotFound: + description: Resource not found. + content: + application/problem+json: + schema: + $ref: '#/components/schemas/Error' diff --git a/applications/x-redocly.yaml b/applications/x-type.redocly.yaml similarity index 86% rename from applications/x-redocly.yaml rename to applications/x-type.redocly.yaml index 70dc399..371678f 100644 --- a/applications/x-redocly.yaml +++ b/applications/x-type.redocly.yaml @@ -11,4 +11,5 @@ plugins: - x-types-plugin.js preprocessors: + x-types/generate-named-schemas: on x-types/generate-schemas: on diff --git a/applications/x-types-adapter.js b/applications/x-types-adapter.js index 79c3c2a..063be63 100644 --- a/applications/x-types-adapter.js +++ b/applications/x-types-adapter.js @@ -11,6 +11,7 @@ const SUFFIXES = { [/^byte$/, () => ({format: 'byte'})], [/^password$/, () => ({format: 'password'})], [/^uri$/, () => ({format: 'uri'})], + [/^uri-reference$/, () => ({format: 'uri-reference'})], [/^url$/, () => ({format: 'url'})], [/^uuid$/, () => ({format: 'uuid'})], @@ -26,6 +27,8 @@ const SUFFIXES = { ], number: [ [/^integer$/, () => ({type: 'integer'})], + [/^int32$/, () => ({type: 'integer', format: 'int32'})], + [/^int64$/, () => ({type: 'integer', format: 'int64'})], [/^min\((?[0-9]+)\)$/, match => ({minimum: +match?.groups?.value})], [/^max\((?[0-9]+)\)$/, match => ({maximum: +match?.groups?.value})], [ @@ -75,7 +78,7 @@ export const translateXTypeToSchema = xType => { return {type: 'string', ...modifiers} } - throw new Error(`Unsupported string format: ${xType}.`) + console.error(`Unsupported string format: ${xType}.`) } if (xType === 'number') { @@ -96,7 +99,7 @@ export const translateXTypeToSchema = xType => { return {type: 'number', ...modifiers} } - throw new Error(`Unsupported number format: ${xType}.`) + console.error(`Unsupported number format: ${xType}.`) } if (xType === 'boolean') { diff --git a/applications/x-types-decorators.js b/applications/x-types-decorators.js index 611ccd0..638774e 100644 --- a/applications/x-types-decorators.js +++ b/applications/x-types-decorators.js @@ -3,6 +3,33 @@ import {translateXTypeToSchema} from './x-types-adapter.js' import {resolveAndMerge} from './x-types-resolver.js' import {translateJSONSchemaToXType} from './json-schema-adapter.js' +export const generateNamedSchemas = opts => { + const namedSchemas = {} + return { + Components: { + enter(components, ctx) { + const xTypes = components['x-types'] || {} + for (const key in xTypes) { + const xType = xTypes[key] + + const resolvedXType = resolveAndMerge(xType, { + ...ctx, + _circularRefsMaxDepth: opts?.depth, + }) + const schema = cleanupSchema(translateXTypeToSchema(resolvedXType)) + namedSchemas[key] = schema + } + }, + leave(components) { + components['schemas'] = { + ...components['schemas'], + ...namedSchemas, + } + }, + }, + } +} + export const generateSchemas = opts => { return { RequestBody: { @@ -158,3 +185,13 @@ export const removeXTypes = opts => { }, } } + +export const removeSchemas = opts => { + return { + Components: { + enter(components) { + delete components['schemas'] + }, + }, + } +} diff --git a/applications/x-types-plugin.js b/applications/x-types-plugin.js index 42d0b1e..04e5166 100644 --- a/applications/x-types-plugin.js +++ b/applications/x-types-plugin.js @@ -1,9 +1,11 @@ import {isRef} from '@redocly/openapi-core/lib/ref-utils.js' import { generateSchemas, + generateNamedSchemas, generateXTypes, generateNamedXTypes, removeXTypes, + removeSchemas, } from './x-types-decorators.js' import {noRefNeighbors, noUndefinedDescriptions} from './x-types-rules.js' import {isObject} from './x-types-utils.js' @@ -96,7 +98,9 @@ export default () => ({ decorators: { oas3: { 'remove-x-types': removeXTypes, + 'remove-schemas': removeSchemas, 'generate-schemas': generateSchemas, + 'generate-named-schemas': generateNamedSchemas, 'generate-x-types': generateXTypes, 'generate-named-x-types': generateNamedXTypes, }, diff --git a/package.json b/package.json index 5a30223..b00531e 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,10 @@ "test": "vitest run --coverage", "prettier:check": "npx prettier --check \"**/*.{js,html,yaml,css,md,json}\"", "prettier": "npx prettier --write \"**/*.{js,html,yaml,css,md,json}\"", - "pets:to-x-types": "redocly bundle applications/resources/pets.yaml --config ./applications/generate-x-types-redocly.yaml -o applications/__tests__/file-snapshots/pets-to-x-types.yaml", - "pets:back-to-schemas": "redocly bundle applications/__tests__/file-snapshots/pets-to-x-types.yaml --config ./applications/x-redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml" + "pets:to-x-types": "redocly bundle applications/resources/pets.yaml --config ./applications/generate-x-types.redocly.yaml -o applications/__tests__/file-snapshots/pets-to-x-types.yaml", + "pets:back-to-schemas": "redocly bundle applications/__tests__/file-snapshots/pets-to-x-types.yaml --config ./applications/x-type.redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml", + "cafe:to-x-types": "redocly bundle applications/resources/cafe.yaml --config ./applications/generate-x-types.redocly.yaml -o applications/resources/cafe.x-type.yaml", + "cafe:back-to-schemas": "redocly bundle applications/resources/cafe.x-type.yaml --config ./applications/x-type.redocly.yaml -o applications/resources/cafe.yaml && redocly bundle applications/resources/cafe.yaml --config ./applications/remove-x-types.redocly.yaml -o applications/resources/cafe.yaml" }, "repository": { "type": "git", diff --git a/redocly.yaml b/redocly.yaml index 8550f27..0ba8732 100644 --- a/redocly.yaml +++ b/redocly.yaml @@ -1 +1 @@ -$ref: applications/x-redocly.yaml +$ref: applications/x-type.redocly.yaml From ffe7b102baf15a3ef5bc215105a81e12501f1ddc Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Thu, 8 Jan 2026 17:02:02 +0200 Subject: [PATCH 2/8] update tests --- .../__snapshots__/e2e-bundle.test.js.snap | 393 +++++++++++++----- .../__snapshots__/e2e-lint.test.js.snap | 1 + .../file-snapshots/pets-to-x-types.yaml | 239 ----------- 3 files changed, 298 insertions(+), 335 deletions(-) diff --git a/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap b/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap index 49f7312..1507a8a 100644 --- a/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap +++ b/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap @@ -145,6 +145,33 @@ components: - 42.1 $literal:$record: $literal:number string: $record + schemas: + Foo: + type: number + Bar: + type: object + properties: + somekey: + anyOf: + - type: boolean + enum: + - true + - type: number + enum: + - 42.1 + $record: + type: string + enum: + - number + string: + type: string + enum: + - $record + required: + - somekey + - $record + - string + additionalProperties: false " `; @@ -249,6 +276,18 @@ components: ReferencedAgain: string $descriptions: ReferencedAgain: Referenced inside the ref. + schemas: + Referenced: + type: string + NestedReferenced: + type: object + properties: + ReferencedAgain: + description: Referenced inside the ref. + type: string + required: + - ReferencedAgain + additionalProperties: false " `; @@ -353,24 +392,6 @@ paths: $omit: - password components: - schemas: - User: - type: object - properties: - id: - type: integer - readOnly: true - name: - type: string - password: - type: string - writeOnly: true - createdAt: - $ref: '#/components/schemas/Date' - Date: - type: string - format: date-time - readOnly: true x-types: User: id: number::integer @@ -552,6 +573,52 @@ components: best_friend: - $ref: '#/components/x-types/Person' - undefined + schemas: + Person: + type: object + properties: + name: + type: string + age: + type: number + best_friend: + type: object + properties: + name: + type: string + age: + type: number + best_friend: + type: object + properties: + name: + type: string + age: + type: number + best_friend: + type: object + properties: + name: + type: string + age: + type: number + best_friend: {} + required: + - name + - age + additionalProperties: false + required: + - name + - age + additionalProperties: false + required: + - name + - age + additionalProperties: false + required: + - name + - age + additionalProperties: false " `; @@ -629,6 +696,111 @@ components: - friend: - $ref: '#/components/x-types/ReadonlyUser' - null + schemas: + User: + type: object + properties: + name: + type: string + password: + type: string + friend: + anyOf: + - type: object + properties: + name: + type: string + password: + type: string + friend: + anyOf: + - type: object + properties: + name: + type: string + password: + type: string + friend: + anyOf: + - type: object + properties: + name: + type: string + password: + type: string + friend: + anyOf: + - {} + - type: 'null' + required: + - name + - password + - friend + additionalProperties: false + - type: 'null' + required: + - name + - password + - friend + additionalProperties: false + - type: 'null' + required: + - name + - password + - friend + additionalProperties: false + - type: 'null' + required: + - name + - password + - friend + additionalProperties: false + ReadonlyUser: + type: object + properties: + name: + type: string + friend: + anyOf: + - type: object + properties: + name: + type: string + friend: + anyOf: + - type: object + properties: + name: + type: string + friend: + anyOf: + - type: object + properties: + name: + type: string + friend: + anyOf: + - {} + - type: 'null' + required: + - name + - friend + additionalProperties: false + - type: 'null' + required: + - name + - friend + additionalProperties: false + - type: 'null' + required: + - name + - friend + additionalProperties: false + - type: 'null' + required: + - name + - friend + additionalProperties: false " `; @@ -733,32 +905,71 @@ components: type: string vidh: type: number + required: + - bukh + - vidh + additionalProperties: false discriminator: propertyName: bukh mapping: glagol: '#/components/schemas/Glagol' dobro: '#/components/schemas/Dobro' Glagol: - allOf: - - $ref: '#/components/schemas/Az' - - type: object - properties: - specificToGlagol: - type: boolean + type: object + properties: + bukh: + type: string + vidh: + type: number + specificToGlagol: + type: boolean + required: + - bukh + - vidh + - specificToGlagol + additionalProperties: false + discriminator: + propertyName: bukh + mapping: + glagol: '#/components/schemas/Glagol' + dobro: '#/components/schemas/Dobro' Dobro: - allOf: - - $ref: '#/components/schemas/Az' + type: object + properties: + bukh: + type: string + vidh: + type: number + specificToDobro: + type: integer + discriminator: + type: string + enum: + - for test + required: + - bukh + - vidh + - specificToDobro + - discriminator + additionalProperties: false + discriminator: + propertyName: bukh + mapping: + glagol: '#/components/schemas/Glagol' + dobro: '#/components/schemas/Dobro' + Zelo: + anyOf: - type: object properties: - specificToDobro: - type: integer - discriminator: + ludh: + type: number + kako: type: string enum: - - for test - Zelo: - oneOf: - - $ref: '#/components/schemas/H' + - for_H + required: + - kako + additionalProperties: false - type: object properties: mhslite: @@ -773,8 +984,7 @@ components: - for test required: - kako - discriminator: - propertyName: kako + additionalProperties: false H: type: object properties: @@ -786,6 +996,7 @@ components: - for_H required: - kako + additionalProperties: false x-types: Az: bukh: string @@ -857,67 +1068,6 @@ paths: x-type: $ref: '#/components/x-types/Zelo' components: - schemas: - Az: - type: object - properties: - bukh: - type: string - vidh: - type: number - discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' - Glagol: - allOf: - - $ref: '#/components/schemas/Az' - - type: object - properties: - specificToGlagol: - type: boolean - Dobro: - allOf: - - $ref: '#/components/schemas/Az' - - type: object - properties: - specificToDobro: - type: integer - discriminator: - type: string - enum: - - for test - Zelo: - oneOf: - - $ref: '#/components/schemas/H' - - type: object - properties: - mhslite: - type: boolean - kako: - type: string - enum: - - for_mhslite - discriminator: - type: string - enum: - - for test - required: - - kako - discriminator: - propertyName: kako - H: - type: object - properties: - ludh: - type: number - kako: - type: string - enum: - - for_H - required: - - kako x-types: Az: bukh: string @@ -1029,6 +1179,21 @@ components: id: number::integer name: string password: string + schemas: + User: + type: object + properties: + id: + type: integer + name: + type: string + password: + type: string + required: + - id + - name + - password + additionalProperties: false " `; @@ -1115,6 +1280,18 @@ components: $and: - foo: boolean - bar: number + schemas: + CorrectAnd: + type: object + properties: + foo: + type: boolean + bar: + type: number + required: + - foo + - bar + additionalProperties: false " `; @@ -1227,6 +1404,19 @@ components: $array: - az - bukh + schemas: + Foo: + type: string + enum: + - az + - bukh + Bar: + type: array + items: + type: string + enum: + - az + - bukh " `; @@ -1330,6 +1520,7 @@ components: example: true schema: type: string + schemas: {} " `; @@ -1418,5 +1609,15 @@ components: Conditional: - vidh - undefined + schemas: + Or: + type: string + enum: + - az + - bukh + Conditional: + type: string + enum: + - vidh " `; diff --git a/applications/__tests__/__snapshots__/e2e-lint.test.js.snap b/applications/__tests__/__snapshots__/e2e-lint.test.js.snap index b951cfc..c25c25d 100644 --- a/applications/__tests__/__snapshots__/e2e-lint.test.js.snap +++ b/applications/__tests__/__snapshots__/e2e-lint.test.js.snap @@ -398,6 +398,7 @@ run \`redocly lint --generate-ignore-file\` to add all problems to the ignore fi exports[`lint > openapi with circular refs 1`] = ` "validating applications/resources/openapi-with-circular-refs.yaml... WARNING! Circular reference detected: #/components/x-types/Person +WARNING! Circular reference detected: #/components/x-types/Person [1] applications/resources/openapi-with-circular-refs.yaml:26:26 at #/paths/~1test/get/responses/200/content/application~1json/examples/Incorrect/value/age Example value must conform to the schema: \`age\` property type must be number. diff --git a/applications/__tests__/file-snapshots/pets-to-x-types.yaml b/applications/__tests__/file-snapshots/pets-to-x-types.yaml index feeb700..a9a7e0d 100644 --- a/applications/__tests__/file-snapshots/pets-to-x-types.yaml +++ b/applications/__tests__/file-snapshots/pets-to-x-types.yaml @@ -753,245 +753,6 @@ x-webhooks: '200': description: Return a 200 status to indicate that the data was received successfully components: - schemas: - ApiResponse: - type: object - properties: - code: - type: integer - format: int32 - type: - type: string - message: - type: string - Cat: - description: A representation of a cat - allOf: - - $ref: '#/components/schemas/Pet' - - type: object - properties: - huntingSkill: - type: string - description: The measured skill for hunting - default: lazy - example: adventurous - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - huntingSkill - Category: - type: object - properties: - id: - description: Category ID - allOf: - - $ref: '#/components/schemas/Id' - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - type: string - description: Dumb Property - xml: - name: Category - Dog: - description: A representation of a dog - allOf: - - $ref: '#/components/schemas/Pet' - - type: object - properties: - packSize: - type: integer - format: int32 - description: The size of the pack the dog is from - default: 1 - minimum: 1 - required: - - packSize - HoneyBee: - description: A representation of a honey bee - allOf: - - $ref: '#/components/schemas/Pet' - - type: object - properties: - honeyPerDay: - type: number - description: Average amount of honey produced per day in ounces - example: 3.14 - multipleOf: 0.01 - required: - - honeyPerDay - Id: - type: integer - format: int64 - readOnly: true - Order: - type: object - properties: - id: - description: Order ID - allOf: - - $ref: '#/components/schemas/Id' - petId: - description: Pet ID - allOf: - - $ref: '#/components/schemas/Id' - quantity: - type: integer - format: int32 - minimum: 1 - default: 1 - shipDate: - description: Estimated ship date - type: string - format: date-time - status: - type: string - description: Order Status - enum: - - placed - - approved - - delivered - complete: - description: Indicates whenever order was completed or not - type: boolean - default: false - readOnly: true - requestId: - description: Unique Request Id - type: string - writeOnly: true - xml: - name: Order - Pet: - type: object - required: - - name - - photoUrls - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - properties: - id: - externalDocs: - description: Find more info here - url: https://example.com - description: Pet ID - allOf: - - $ref: '#/components/schemas/Id' - category: - description: Categories this pet belongs to - allOf: - - $ref: '#/components/schemas/Category' - name: - description: The name given to a pet - type: string - example: Guru - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - maxItems: 20 - xml: - name: photoUrl - wrapped: true - items: - type: string - format: url - friend: - allOf: - - $ref: '#/components/schemas/Pet' - tags: - description: Tags attached to the pet - type: array - minItems: 1 - xml: - name: tag - wrapped: true - items: - $ref: '#/components/schemas/Tag' - status: - type: string - description: Pet status in the store - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - xml: - name: Pet - Tag: - type: object - properties: - id: - description: Tag ID - allOf: - - $ref: '#/components/schemas/Id' - name: - description: Tag name - type: string - minLength: 1 - xml: - name: Tag - User: - type: object - properties: - id: - $ref: '#/components/schemas/Id' - pet: - oneOf: - - $ref: '#/components/schemas/Pet' - - $ref: '#/components/schemas/Tag' - username: - description: User supplied username - type: string - minLength: 4 - example: John78 - firstName: - description: User first name - type: string - minLength: 1 - example: John - lastName: - description: User last name - type: string - minLength: 1 - example: Smith - email: - description: User email address - type: string - format: email - example: john.smith@example.com - password: - type: string - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - format: password - minLength: 8 - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - example: drowssaP123 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - example: +1-202-555-0192 - userStatus: - description: User status - type: integer - format: int32 - xml: - name: User requestBodies: Pet: content: From 648cba83b12880f64bbb392dc9374d0c24e790bb Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Mon, 19 Jan 2026 20:56:54 +0200 Subject: [PATCH 3/8] remove $discriminator and convert discriminators to OR/anyOf; handle merging more (primitive) types; improve $omit to handle ORs; fix extracting arrays and improve formats conversion in json-schema-adapter --- .../__snapshots__/e2e-bundle.test.js.snap | 251 +----------------- applications/__tests__/e2e-bundle.test.js | 7 - .../file-snapshots/pets-to-x-types.yaml | 53 ++-- applications/json-schema-adapter.js | 79 ++++-- applications/resources/cafe.x-type.yaml | 37 ++- .../openapi-with-discriminators.yaml | 48 +--- applications/x-types-adapter.js | 1 - applications/x-types-decorators.js | 51 ++++ applications/x-types-resolver.js | 22 +- applications/x-types-utils.js | 44 ++- extensions.md | 2 + 11 files changed, 232 insertions(+), 363 deletions(-) diff --git a/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap b/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap index 1507a8a..3b84feb 100644 --- a/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap +++ b/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap @@ -804,236 +804,9 @@ components: " `; -exports[`bundle > openapi with discriminators converted to schemas 1`] = ` -"openapi: 3.1.0 -info: - title: Test - version: 1.0.0 -paths: - /test: - get: - responses: - '200': - description: Test discriminators. - content: - application/inheritance+json: - x-type: - bukh: string - vidh: number - $discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' - schema: - type: object - properties: - bukh: - type: string - vidh: - type: number - required: - - bukh - - vidh - additionalProperties: false - discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' - examples: - Correct: - value: - bukh: glagol - vidh: 1 - specificToGlagol: false - Incorrect: - value: - bukh: dobro - application/polymorphism+json: - x-type: - - $ref: '#/components/x-types/H' - - mhslite: - - boolean - - undefined - kako: for_mhslite - discriminator: - - for test - - undefined - schema: - anyOf: - - type: object - properties: - ludh: - type: number - kako: - type: string - enum: - - for_H - required: - - kako - additionalProperties: false - - type: object - properties: - mhslite: - type: boolean - kako: - type: string - enum: - - for_mhslite - discriminator: - type: string - enum: - - for test - required: - - kako - additionalProperties: false - examples: - Correct: - value: - kako: for_H - ludh: 1 - Incorrect: - value: - kako: wrong -components: - schemas: - Az: - type: object - properties: - bukh: - type: string - vidh: - type: number - required: - - bukh - - vidh - additionalProperties: false - discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' - Glagol: - type: object - properties: - bukh: - type: string - vidh: - type: number - specificToGlagol: - type: boolean - required: - - bukh - - vidh - - specificToGlagol - additionalProperties: false - discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' - Dobro: - type: object - properties: - bukh: - type: string - vidh: - type: number - specificToDobro: - type: integer - discriminator: - type: string - enum: - - for test - required: - - bukh - - vidh - - specificToDobro - - discriminator - additionalProperties: false - discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' - Zelo: - anyOf: - - type: object - properties: - ludh: - type: number - kako: - type: string - enum: - - for_H - required: - - kako - additionalProperties: false - - type: object - properties: - mhslite: - type: boolean - kako: - type: string - enum: - - for_mhslite - discriminator: - type: string - enum: - - for test - required: - - kako - additionalProperties: false - H: - type: object - properties: - ludh: - type: number - kako: - type: string - enum: - - for_H - required: - - kako - additionalProperties: false - x-types: - Az: - bukh: string - vidh: number - $discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' - Glagol: - $and: - - $ref: '#/components/x-types/Az' - - specificToGlagol: boolean - Dobro: - $and: - - $ref: '#/components/x-types/Az' - - specificToDobro: number::integer - discriminator: for test - Zelo: - - $ref: '#/components/x-types/H' - - mhslite: - - boolean - - undefined - kako: for_mhslite - discriminator: - - for test - - undefined - H: - ludh: - - number - - undefined - kako: for_H -" -`; - exports[`bundle > openapi with discriminators converted to x-types 1`] = ` -"openapi: 3.1.0 +"# Already a x-type $ref: #/components/x-types/Base_Az +openapi: 3.1.0 info: title: Test version: 1.0.0 @@ -1069,23 +842,23 @@ paths: $ref: '#/components/x-types/Zelo' components: x-types: - Az: - bukh: string - vidh: number - $discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' Glagol: $and: - - $ref: '#/components/x-types/Az' + - $ref: '#/components/x-types/Base_Az' - specificToGlagol: boolean + - bukh: glagol + Az: + - $ref: '#/components/x-types/Glagol' + - $ref: '#/components/x-types/Dobro' + Base_Az: + bukh: string + vidh: number Dobro: $and: - - $ref: '#/components/x-types/Az' + - $ref: '#/components/x-types/Base_Az' - specificToDobro: number::integer discriminator: for test + - bukh: dobro Zelo: - $ref: '#/components/x-types/H' - mhslite: diff --git a/applications/__tests__/e2e-bundle.test.js b/applications/__tests__/e2e-bundle.test.js index 86d3270..de2609b 100644 --- a/applications/__tests__/e2e-bundle.test.js +++ b/applications/__tests__/e2e-bundle.test.js @@ -122,13 +122,6 @@ describe('bundle', () => { expect(stdout).toMatchSnapshot() }) - test('openapi with discriminators converted to schemas', () => { - const {stdout} = runCommand( - 'redocly bundle applications/resources/openapi-with-discriminators.yaml --config=applications/x-type.redocly.yaml' - ) - expect(stdout).toMatchSnapshot() - }) - test('openapi with discriminators converted to x-types', () => { const {stdout} = runCommand( 'redocly bundle applications/resources/openapi-with-discriminators.yaml --config=applications/generate-x-types.redocly.yaml' diff --git a/applications/__tests__/file-snapshots/pets-to-x-types.yaml b/applications/__tests__/file-snapshots/pets-to-x-types.yaml index a9a7e0d..1167367 100644 --- a/applications/__tests__/file-snapshots/pets-to-x-types.yaml +++ b/applications/__tests__/file-snapshots/pets-to-x-types.yaml @@ -83,7 +83,7 @@ paths: in: cookie description: Some cookie required: true - x-type: number::integer + x-type: number::int64 post: tags: - pet @@ -173,7 +173,7 @@ paths: description: ID of pet to return required: true deprecated: true - x-type: number::integer + x-type: number::int64 responses: '200': description: successful operation @@ -198,7 +198,7 @@ paths: in: path description: ID of pet that needs to be updated required: true - x-type: number::integer + x-type: number::int64 responses: '405': description: Invalid input @@ -231,7 +231,7 @@ paths: in: path description: Pet id to delete required: true - x-type: number::integer + x-type: number::int64 responses: '400': description: Invalid pet value @@ -251,7 +251,7 @@ paths: in: path description: ID of pet to update required: true - x-type: number::integer + x-type: number::int64 responses: '200': description: successful operation @@ -342,7 +342,7 @@ paths: content: application/json: x-type: - $record: number::integer + $record: number::int32 security: - api_key: [] /store/order: @@ -391,7 +391,7 @@ paths: in: path description: ID of pet that needs to be fetched required: true - x-type: number::integer::min(1)::max(5) + x-type: number::int64::min(1)::max(5) responses: '200': description: successful operation @@ -798,12 +798,12 @@ components: complete: false x-types: ApiResponse: - code: number::integer + code: number::int32 type: string message: string Cat: $and: - - $ref: '#/components/x-types/Pet' + - $ref: '#/components/x-types/Base_Pet' - huntingSkill: - clueless - lazy @@ -811,8 +811,9 @@ components: - aggressive $descriptions: huntingSkill: The measured skill for hunting + - petType: cat Category: - id: number::integer + id: number::int64 name: string::min(1) sub: prop1: string @@ -824,21 +825,23 @@ components: sub: Test Sub Category Dog: $and: - - $ref: '#/components/x-types/Pet' - - packSize: number::integer::min(1) + - $ref: '#/components/x-types/Base_Pet' + - packSize: number::int32::min(1) $descriptions: packSize: The size of the pack the dog is from + - petType: dog HoneyBee: $and: - - $ref: '#/components/x-types/Pet' + - $ref: '#/components/x-types/Base_Pet' - honeyPerDay: number $descriptions: honeyPerDay: Average amount of honey produced per day in ounces - Id: number::integer + - petType: bee + Id: number::int64 Order: - id: number::integer - petId: number::integer - quantity: number::integer::min(1) + id: number::int64 + petId: number::int64 + quantity: number::int32::min(1) shipDate: string::date-time status: - placed @@ -854,6 +857,10 @@ components: complete: Indicates whenever order was completed or not requestId: Unique Request Id Pet: + - $ref: '#/components/x-types/Cat' + - $ref: '#/components/x-types/Dog' + - $ref: '#/components/x-types/HoneyBee' + Base_Pet: id: - $ref: '#/components/x-types/Id' - undefined @@ -878,12 +885,6 @@ components: petType: - string - undefined - $discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' $descriptions: id: Pet ID category: Categories this pet belongs to @@ -893,13 +894,13 @@ components: status: Pet status in the store petType: Type of a pet Tag: - id: number::integer + id: number::int64 name: string::min(1) $descriptions: id: Tag ID name: Tag name User: - id: number::integer + id: number::int64 pet: - $ref: '#/components/x-types/Pet' - $ref: '#/components/x-types/Tag' @@ -909,7 +910,7 @@ components: email: string::email password: string::password::pattern(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/)::min(8) phone: string::pattern(/^\+(?:[0-9]-?){6,14}[0-9]$/) - userStatus: number::integer + userStatus: number::int32 $descriptions: username: User supplied username firstName: User first name diff --git a/applications/json-schema-adapter.js b/applications/json-schema-adapter.js index 7c899fe..17e6d21 100644 --- a/applications/json-schema-adapter.js +++ b/applications/json-schema-adapter.js @@ -2,6 +2,14 @@ import {isRef} from '@redocly/openapi-core' import {isPlainObject, isEmptyObject} from '@redocly/openapi-core/lib/utils.js' +import {RESERVED_KEYWORDS} from './x-types-utils.js' + +const escapeReserved = value => { + if (RESERVED_KEYWORDS.includes(value)) { + return `$literal:${value}` + } + return value +} export function translateJSONSchemaToXType(schema, ctx) { if (schema.type === 'null') { @@ -16,14 +24,21 @@ export function translateJSONSchemaToXType(schema, ctx) { ) { if (schema.enum) { if (schema.enum.length === 1) { - return schema.enum[0] + return escapeReserved(schema.enum[0]) } - return schema.enum + return escapeReserved(schema.enum) + } + if (schema.const) { + return escapeReserved(schema.const) } let t = schema.type if (schema.type === 'integer') { - t = 'number::integer' + if (schema.format !== undefined) { + t = `number::${schema.format}` + } else { + t = 'number::integer' + } } if ( schema.format && @@ -32,14 +47,26 @@ export function translateJSONSchemaToXType(schema, ctx) { ) { t += `::${schema.format}` } - if (schema.pattern) { + if (schema.pattern !== undefined) { t += `::pattern(${schema.pattern})` } - if (schema.minimum || schema.minLength) { - t += `::min(${schema.minimum || schema.minLength})` + if (schema.minimum !== undefined) { + t += `::min(${schema.minimum})` } - if (schema.maximum || schema.maxLength) { - t += `::max(${schema.maximum || schema.maxLength})` + if (schema.maximum !== undefined) { + t += `::max(${schema.maximum})` + } + if (schema.exclusiveMinimum !== undefined) { + t += `::x-min(${schema.exclusiveMinimum})` + } + if (schema.exclusiveMaximum !== undefined) { + t += `::x-max(${schema.exclusiveMaximum})` + } + if (schema.minLength !== undefined) { + t += `::min(${schema.minLength})` + } + if (schema.maxLength !== undefined) { + t += `::max(${schema.maxLength})` } return t @@ -102,7 +129,7 @@ export function translateJSONSchemaToXType(schema, ctx) { $omit, } } else if (schema.$ref.startsWith('#/components/x-types/')) { - console.log('Already a x-type $ref:', schema.$ref) + console.log('# Already a x-type $ref:', schema.$ref) return schema } @@ -162,6 +189,13 @@ export function translateJSONSchemaToXType(schema, ctx) { } function extractObjectLikeNode(schema, ctx) { + // Handle arrays + if (isPlainObject(schema.items)) { + const $array = translateJSONSchemaToXType(schema.items, ctx) + return {$array} + } + + // Handle objects const properties = {} const $descriptions = {} for (const [name, property] of Object.entries(schema.properties || {})) { @@ -190,25 +224,30 @@ function extractObjectLikeNode(schema, ctx) { ) } - let items - if (isPlainObject(schema.items)) { - items = translateJSONSchemaToXType(schema.items, ctx) + if (!isEmptyObject($descriptions)) { + properties.$descriptions = $descriptions } - // Add the discriminator as it is + // Handle discriminator 🐒 if (isPlainObject(schema.discriminator)) { - properties['$discriminator'] = schema.discriminator + const {propertyName, mapping} = schema.discriminator + if (!schema.oneOf && !schema.anyOf && isPlainObject(mapping)) { + // handle implicit discriminator usage with allOf + const $or = Object.values(mapping).map($ref => + translateJSONSchemaToXType({$ref}, ctx) + ) + + $or._mapping = mapping + $or._propertyName = propertyName + $or._baseObject = properties + $or._componentName = ctx.key + return $or + } } - if (!isEmptyObject($descriptions)) { - properties.$descriptions = $descriptions - } if (!isEmptyObject(properties)) { return properties } - if (items) { - return {$array: items} - } throw new Error('Invalid object-like schema') } diff --git a/applications/resources/cafe.x-type.yaml b/applications/resources/cafe.x-type.yaml index 074de31..ffcb359 100644 --- a/applications/resources/cafe.x-type.yaml +++ b/applications/resources/cafe.x-type.yaml @@ -589,6 +589,9 @@ components: limit: Value showing how many items are in the page limit. total: Count of items across all pages. MenuItem: + - $ref: '#/components/x-types/Beverage' + - $ref: '#/components/x-types/Dessert' + Base_MenuItem: createdAt: string::date-time updatedAt: string::date-time id: string::pattern(^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$) @@ -606,11 +609,6 @@ components: category: - beverage - dessert - $discriminator: - propertyName: category - mapping: - beverage: '#/components/schemas/Beverage' - dessert: '#/components/schemas/Dessert' $descriptions: createdAt: Created date. updatedAt: Updated date. @@ -622,7 +620,7 @@ components: category: Menu item category. Beverage: $and: - - $ref: '#/components/x-types/MenuItem' + - $ref: '#/components/x-types/Base_MenuItem' - size: number::x-min(0) sizeType: - ml @@ -632,12 +630,14 @@ components: $descriptions: size: Size of the beverage. containsCaffeine: Indicates if the beverage contains caffeine. + - category: beverage Dessert: $and: - - $ref: '#/components/x-types/MenuItem' + - $ref: '#/components/x-types/Base_MenuItem' - calories: number::x-min(0) $descriptions: calories: Amount of calories. + - category: dessert MenuItemList: object: list page: @@ -670,14 +670,25 @@ components: - completed - canceled Order: - id: string - object: string + id: + - string + - undefined + object: + - order + - undefined customerName: string::pattern(^[A-Za-z]+(?:[\s'-][A-Za-z]+)*$)::min(1)::max(100) status: - $ref: '#/components/x-types/OrderStatus' - totalPrice: number::integer::min(0) - createdAt: string::date-time - updatedAt: string::date-time + - $ref: '#/components/x-types/OrderStatus' + - undefined + totalPrice: + - number::integer::min(0) + - undefined + createdAt: + - string::date-time + - undefined + updatedAt: + - string::date-time + - undefined orderItems: $array: menuItemId: string diff --git a/applications/resources/openapi-with-discriminators.yaml b/applications/resources/openapi-with-discriminators.yaml index e19f31f..c39f350 100644 --- a/applications/resources/openapi-with-discriminators.yaml +++ b/applications/resources/openapi-with-discriminators.yaml @@ -39,7 +39,14 @@ paths: kako: wrong components: schemas: - Az: + Glagol: + allOf: + - $ref: '#/components/schemas/Az' + - type: object + properties: + specificToGlagol: + type: boolean + Az: # moved between Glagol and Dobro to cover cases when the discriminated sub-schemas could be above or below the discriminator itself type: object properties: bukh: @@ -51,13 +58,6 @@ components: mapping: glagol: '#/components/schemas/Glagol' dobro: '#/components/schemas/Dobro' - Glagol: - allOf: - - $ref: '#/components/schemas/Az' - - type: object - properties: - specificToGlagol: - type: boolean Dobro: allOf: - $ref: '#/components/schemas/Az' @@ -99,35 +99,3 @@ components: - for_H required: - kako - x-types: - Az: - bukh: string - vidh: number - $discriminator: - propertyName: bukh - mapping: - glagol: '#/components/schemas/Glagol' - dobro: '#/components/schemas/Dobro' - Glagol: - $and: - - $ref: '#/components/x-types/Az' - - specificToGlagol: boolean - Dobro: - $and: - - $ref: '#/components/x-types/Az' - - specificToDobro: number::integer - discriminator: for test - Zelo: - - $ref: '#/components/x-types/H' - - mhslite: - - boolean - - undefined - kako: for_mhslite - discriminator: - - for test - - undefined - H: - ludh: - - number - - undefined - kako: for_H diff --git a/applications/x-types-adapter.js b/applications/x-types-adapter.js index 063be63..d707f3c 100644 --- a/applications/x-types-adapter.js +++ b/applications/x-types-adapter.js @@ -218,7 +218,6 @@ export const translateXTypeToSchema = xType => { required, additionalProperties, ...(isNotEmptyObject(patternProperties) && {patternProperties}), - ...($discriminator && {discriminator: $discriminator}), } } diff --git a/applications/x-types-decorators.js b/applications/x-types-decorators.js index 638774e..a80a5ce 100644 --- a/applications/x-types-decorators.js +++ b/applications/x-types-decorators.js @@ -2,6 +2,7 @@ import {cleanupSchema} from './x-types-utils.js' import {translateXTypeToSchema} from './x-types-adapter.js' import {resolveAndMerge} from './x-types-resolver.js' import {translateJSONSchemaToXType} from './json-schema-adapter.js' +import {isRef} from '@redocly/openapi-core' export const generateNamedSchemas = opts => { const namedSchemas = {} @@ -89,15 +90,65 @@ export const generateSchemas = opts => { // TODO: WIP export const generateNamedXTypes = opts => { const namedXTypes = {} + let rootComponents return { Components: { leave(components, ctx) { components['x-types'] = namedXTypes }, + enter(components, ctx) { + rootComponents = components + }, NamedSchemas: { Schema: { enter(schema, ctx) { namedXTypes[ctx.key] = translateJSONSchemaToXType(schema, ctx) + const mapping = namedXTypes[ctx.key]._mapping + const propertyName = namedXTypes[ctx.key]._propertyName + + if (!mapping || !propertyName) { + return // Skip if there's no discriminator mapping or propertyName + } + + namedXTypes['Base_' + ctx.key] = namedXTypes[ctx.key]._baseObject + for (const [discriminatorValue, $ref] of Object.entries(mapping)) { + const componentName = $ref.split('/').at(-1) + + const schemaComponent = rootComponents.schemas[componentName] + if (Array.isArray(schemaComponent?.allOf)) { + for (const item of schemaComponent.allOf) { + if ( + isRef(item) && + item.$ref === '#/components/schemas/' + ctx.key + ) { + item.$ref = '#/components/x-types/Base_' + ctx.key + } + } + // Inject discriminator property into the schema component + schemaComponent.allOf.push({ + type: 'object', + properties: { + [propertyName]: {type: 'string', const: discriminatorValue}, + }, + }) + } + + const xTypeComponent = namedXTypes[componentName] + if (Array.isArray(xTypeComponent?.$and)) { + for (const item of xTypeComponent.$and) { + if ( + isRef(item) && + item.$ref === '#/components/x-types/' + ctx.key + ) { + item.$ref = '#/components/x-types/Base_' + ctx.key + } + } + // Inject discriminator property into the x-type component + xTypeComponent.$and.push({ + [propertyName]: discriminatorValue, + }) + } + } }, }, }, diff --git a/applications/x-types-resolver.js b/applications/x-types-resolver.js index 1db3c23..796b079 100644 --- a/applications/x-types-resolver.js +++ b/applications/x-types-resolver.js @@ -2,18 +2,20 @@ import {isRef} from '@redocly/openapi-core/lib/ref-utils.js' import {isObject, mergeAll} from './x-types-utils.js' const omit = (maybeObj, keys) => { - if (!isObject(maybeObj)) { - console.error( - `Cannot omit keys (${keys.join(', ')}) from non-object: ${JSON.stringify(maybeObj)}.` - ) - return maybeObj + if (isObject(maybeObj)) { + const obj = {...maybeObj} + for (const key of keys) { + delete obj[key] + } + return obj + } else if (Array.isArray(maybeObj)) { + return maybeObj.map(item => omit(item, keys)) } - const obj = {...maybeObj} - for (const key of keys) { - delete obj[key] - } - return obj + console.error( + `Cannot omit keys (${keys.join(', ')}) from non-object: ${JSON.stringify(maybeObj)}.` + ) + return maybeObj } export const resolveAndMerge = (xType, ctx, parents = []) => { diff --git a/applications/x-types-utils.js b/applications/x-types-utils.js index 5328e76..a74b935 100644 --- a/applications/x-types-utils.js +++ b/applications/x-types-utils.js @@ -1,3 +1,11 @@ +export const RESERVED_KEYWORDS = [ + 'string', + 'number', + 'boolean', + 'any', + 'undefined', +] + export const isObject = obj => obj && typeof obj === 'object' && !Array.isArray(obj) @@ -34,11 +42,39 @@ const deepMergeTwo = (first, second) => { if (second === 'any') { return first } + if (first === second) { return first } + if (first === 'undefined' || second === 'undefined') { + return 'undefined' + } + + if (Array.isArray(first) && (isObject(second) || isPrimitive(second))) { + return first.map(item => deepMergeTwo(item, second)) + } + if (Array.isArray(second) && (isObject(first) || isPrimitive(first))) { + return second.map(item => deepMergeTwo(first, item)) + } + if (isPrimitive(first) || isPrimitive(second)) { + // Handle strings + if ( + first === 'string' && + typeof second === 'string' && + !RESERVED_KEYWORDS.includes(second) + ) { + return second + } + if ( + second === 'string' && + typeof first === 'string' && + !RESERVED_KEYWORDS.includes(first) + ) { + return first + } + console.error( `ERROR! Merging primitives is not allowed: '${first}' & '${second}'.` ) @@ -60,13 +96,7 @@ const deepMergeTwo = (first, second) => { return mergeAll(...second.$and, first) } - if (Array.isArray(first) && isObject(second)) { - return first.map(item => deepMergeTwo(item, second)) - } - if (isObject(first) && Array.isArray(second)) { - return second.map(item => deepMergeTwo(item, first)) - } - + // TODO: investigate if it's still needed if (Array.isArray(first) && Array.isArray(second)) { return product(first, second).map(([a, b]) => deepMergeTwo(a, b)) } diff --git a/extensions.md b/extensions.md index 443eddc..4c63c1e 100644 --- a/extensions.md +++ b/extensions.md @@ -67,12 +67,14 @@ It must be an object at the same level as the fields it describes, mapping field Descriptions are propagated to the OpenAPI schema as the `description` fields of the corresponding properties. + From 9641cf5230ce6a5fab7691722f56ae8453ace705 Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Mon, 19 Jan 2026 21:12:43 +0200 Subject: [PATCH 4/8] temporarily remove cafe --- applications/resources/cafe.x-type.yaml | 829 ------------------ applications/resources/cafe.yaml | 1061 ----------------------- 2 files changed, 1890 deletions(-) delete mode 100644 applications/resources/cafe.x-type.yaml delete mode 100644 applications/resources/cafe.yaml diff --git a/applications/resources/cafe.x-type.yaml b/applications/resources/cafe.x-type.yaml deleted file mode 100644 index ffcb359..0000000 --- a/applications/resources/cafe.x-type.yaml +++ /dev/null @@ -1,829 +0,0 @@ -openapi: 3.2.0 -info: - title: Redocly Cafe - description: | - REST API for managing cafe operations. - version: 1.0.0 - contact: - email: team@redocly.com - url: https://redocly.com/contact-us/ - license: - name: MIT - url: https://opensource.org/licenses/MIT - termsOfService: https://redocly.com/subscription-agreement -servers: - - url: https://cafe.redocly.com/v1 - description: Live server. -tags: - - name: Products - description: Operations related to products. - - name: Orders - description: Order management operations. - - name: Auth - description: Authentication operations. - - name: Stats - description: Statistics operations. -paths: - /menu: - get: - tags: - - Products - summary: List menu items - description: Retrieve a collection of menu items with optional filtering and pagination. - operationId: listMenuItems - security: [] - parameters: - - $ref: '#/components/parameters/After' - - $ref: '#/components/parameters/Before' - - $ref: '#/components/parameters/Sort' - - $ref: '#/components/parameters/Filter' - - $ref: '#/components/parameters/Search' - - $ref: '#/components/parameters/Limit' - responses: - '200': - description: Successful operation. - content: - application/json: - x-type: - $ref: '#/components/x-types/MenuItemList' - '400': - $ref: '#/components/responses/BadRequest' - '500': - $ref: '#/components/responses/InternalServerError' - post: - tags: - - Products - summary: Create menu item - description: Create a new menu item. - operationId: createMenuItem - security: - - OAuth2: - - menu:write - requestBody: - required: true - content: - multipart/form-data: - x-type: - $ref: '#/components/x-types/MenuItem' - $omit: - - createdAt - - updatedAt - - id - - object - responses: - '201': - description: Menu item created successfully. - content: - application/json: - x-type: - $ref: '#/components/x-types/MenuItem' - $omit: - - photo - - photoTextDescription - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '409': - $ref: '#/components/responses/Conflict' - '500': - $ref: '#/components/responses/InternalServerError' - /menu/{menuItemId}: - parameters: - - $ref: '#/components/parameters/MenuItemId' - delete: - tags: - - Products - summary: Delete menu item - description: Delete an existing menu item. - operationId: deleteMenuItem - security: - - OAuth2: - - menu:write - responses: - '204': - description: Menu item deleted successfully. - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - /menu-item-images/{menuItemId}: - parameters: - - $ref: '#/components/parameters/MenuItemId' - get: - operationId: getMenuItemPhoto - summary: Get menu item photo - description: Retrieve the product photo image for a specific menu item. - security: [] - tags: - - Products - parameters: - - $ref: '#/components/parameters/PhotoSize' - responses: - '200': - description: Menu item photo retrieved successfully. - content: - image/png: - x-type: string::binary - text/plain: - x-type: string - '404': - $ref: '#/components/responses/NotFound' - /orders: - get: - tags: - - Orders - summary: List orders - description: Retrieve a collection of orders with optional filtering and pagination. - operationId: listOrders - security: - - OAuth2: - - orders:read - parameters: - - $ref: '#/components/parameters/Filter' - - $ref: '#/components/parameters/Sort' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/After' - - $ref: '#/components/parameters/Before' - - $ref: '#/components/parameters/Search' - responses: - '200': - description: Successful operation. - content: - application/json: - x-type: - $ref: '#/components/x-types/OrderList' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '500': - $ref: '#/components/responses/InternalServerError' - post: - tags: - - Orders - summary: Create order - description: | - Create a new order. - Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed. - Orders cannot be deleted, only canceled. - operationId: createOrder - security: - - OAuth2: - - orders:write - requestBody: - required: true - content: - application/json: - x-type: - $ref: '#/components/x-types/Order' - $omit: - - id - - object - - status - - totalPrice - - createdAt - - updatedAt - responses: - '201': - description: Order placed successfully. - content: - application/json: - x-type: - $ref: '#/components/x-types/Order' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '500': - $ref: '#/components/responses/InternalServerError' - /orders/{orderId}: - get: - tags: - - Orders - summary: Get order by ID - description: Retrieve a single order by its ID. - operationId: getOrderById - security: [] - parameters: - - $ref: '#/components/parameters/OrderId' - responses: - '200': - description: Successful operation. - content: - application/json: - x-type: - $ref: '#/components/x-types/Order' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - patch: - tags: - - Orders - summary: Update order - description: | - Update an existing order status. - Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed. - operationId: updateOrder - security: - - OAuth2: - - orders:write - parameters: - - $ref: '#/components/parameters/OrderId' - requestBody: - content: - application/json: - x-type: - status: - $ref: '#/components/x-types/OrderStatus' - responses: - '200': - description: Order updated successfully. - content: - application/json: - x-type: - $ref: '#/components/x-types/Order' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - delete: - tags: - - Orders - summary: Cancel order - description: | - Cancel the order. - Orders cannot be deleted, only canceled. - operationId: cancelOrder - security: - - OAuth2: - - orders:write - parameters: - - $ref: '#/components/parameters/OrderId' - responses: - '204': - description: Order status updated successfully. - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - /order-items: - get: - tags: - - Orders - summary: List order items - description: | - Returns an array of order items for a specific order. - Use the `filter` parameter to filter by order ID. - operationId: listOrderItems - security: - - OAuth2: - - orders:read - parameters: - - name: filter - description: Filters the collection items. This field requires a special format. - in: query - required: true - example: orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 - x-type: string - responses: - '200': - description: Successful operation. - content: - application/json: - x-type: - $array: - $ref: '#/components/x-types/OrderItem' - $omit: - - menuItemId - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - /revenue: - get: - tags: - - Stats - summary: Get revenue statistics - description: | - Retrieve revenue statistics for a configurable date range. - Returns revenue, order counts, average order amount, and other useful statistics. - operationId: getRevenue - security: - - ApiKey: [] - parameters: - - name: startDate - in: query - required: false - description: Start date for the revenue calculation period (ISO 8601 datetime format). Defaults to 30 days ago if not provided. - example: '2024-01-01' - x-type: string::date - - name: endDate - in: query - required: false - description: End date for the revenue calculation period (ISO 8601 datetime format). Defaults to current time if not provided. - example: '2024-01-31' - x-type: string::date - responses: - '200': - description: Revenue statistics retrieved successfully. - content: - application/json: - x-type: - $ref: '#/components/x-types/RevenueStatistics' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '500': - $ref: '#/components/responses/InternalServerError' - /oauth2/register: - post: - tags: - - Auth - summary: Create OAuth2 client - description: | - Register a new OAuth2 client for dynamic client registration. - This endpoint implements the Dynamic Client Registration Protocol (RFC 7591), - using camelCase field names instead of the RFC's snake_case convention - (e.g., `redirectUris` instead of `redirect_uris`, `grantTypes` instead of `grant_types`). - - The `name` field is required. Other fields are optional. If not provided: - - `redirectUris` defaults to an empty array. Note: When using the `authorization_code` grant type, - `redirectUris` must be provided (per RFC 7591 Section 2). - - `scopes` defaults to all available scopes (menu:read, menu:write, orders:read, orders:write) - - `grantTypes` defaults to both supported grant types (authorization_code, client_credentials) - - Returns the registered client information per RFC 7591, including: - - `clientId` and `clientSecret` (must be stored securely) - - `clientIdIssuedAt` and `clientSecretExpiresAt` timestamps - - All registered client metadata (name, redirectUris, scopes, grantTypes) - operationId: registerOAuth2Client - security: [] - requestBody: - required: true - content: - application/json: - x-type: - $ref: '#/components/x-types/RegisterClientObject' - responses: - '201': - description: OAuth2 client registered successfully. - content: - application/json: - x-type: - $ref: '#/components/x-types/OAuth2Client' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '500': - $ref: '#/components/responses/InternalServerError' -webhooks: - order-notification: - post: - tags: - - Orders - operationId: orderNotificationWebhook - security: [] - summary: Order notification webhook - description: Webhook triggered when a new order is placed. - requestBody: - required: true - content: - application/json: - x-type: - $ref: '#/components/x-types/OrderNotification' - responses: - '200': - description: Webhook received successfully. - '400': - $ref: '#/components/responses/BadRequest' -components: - securitySchemes: - OAuth2: - type: oauth2 - description: OAuth2 authentication for API access. - flows: - authorizationCode: - authorizationUrl: https://cafe.redocly.com/v1/oauth2/authorize - tokenUrl: https://cafe.redocly.com/v1/oauth2/token - scopes: - menu:read: Read access to menu items and images - menu:write: Write access to menu items (create, delete) - orders:read: Read access to orders - orders:write: Write access to orders (create, update, delete) - clientCredentials: - tokenUrl: https://cafe.redocly.com/v1/oauth2/token - scopes: - menu:read: Read access to menu items and images - menu:write: Write access to menu items (create, delete) - orders:read: Read access to orders - orders:write: Write access to orders (create, update, delete) - ApiKey: - type: apiKey - name: X-API-Key - in: header - description: API key for internal operations. - parameters: - After: - name: after - in: query - required: false - description: Use the `endCursor` as a value for the `after` parameter to get the next page. - example: a25fgaksjf23la== - x-type: string - Before: - name: before - in: query - required: false - description: Use the `startCursor` as a value for the `before` parameter to get the next page. - example: bfg23aksjf23zb1== - x-type: string - Sort: - name: sort - description: |- - To sort by id in descending order use `-id`. - To sort by id in ascending order use `id`. - in: query - required: false - example: '-name' - x-type: string - Filter: - name: filter - description: Filters the collection items. This field requires a special format. - in: query - required: false - example: orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 - x-type: string - Search: - name: search - in: query - description: Search. - required: false - example: text-to-search - x-type: string - Limit: - name: limit - description: |- - Use to return a number of results per page. - If there is more data, use in combination with `after` to page through the data. - in: query - required: false - example: 10 - x-type: number::integer::min(1)::max(100) - MenuItemId: - name: menuItemId - in: path - description: ID of the menu item to retrieve. - required: true - example: prd_01h1s5z6vf2mm1mz3hevnn9va7 - x-type: string::pattern(^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$) - PhotoSize: - name: photoSize - in: query - description: Photo size to retrieve. - required: false - x-type: - - thumbnail - - medium - - large - OrderId: - name: orderId - in: path - description: ID of the order to retrieve. - required: true - example: ord_01h1s5z6vf2mm1mz3hevnn9va7 - x-type: string::pattern(^ord_[0-9abcdefghjkmnpqrstvwxyz]{26}$) - responses: - BadRequest: - description: Bad request - invalid input parameters. - content: - application/problem+json: - x-type: - $ref: '#/components/x-types/Error' - InternalServerError: - description: Internal server error. - content: - application/problem+json: - x-type: - $ref: '#/components/x-types/Error' - Unauthorized: - description: Unauthorized - authentication required. - content: - application/problem+json: - x-type: - $ref: '#/components/x-types/Error' - Forbidden: - description: Forbidden - insufficient permissions. - content: - application/problem+json: - x-type: - $ref: '#/components/x-types/Error' - Conflict: - description: Conflict - entity already exists. - content: - application/problem+json: - x-type: - $ref: '#/components/x-types/Error' - NotFound: - description: Resource not found. - content: - application/problem+json: - x-type: - $ref: '#/components/x-types/Error' - x-types: - Page: - endCursor: - - string - - null - startCursor: - - string - - null - hasNextPage: boolean - hasPrevPage: boolean - limit: number::integer::min(1)::max(100) - total: number::integer::min(0) - $descriptions: - endCursor: |- - Use with the `after` query parameter to load the next page of data. - When `null`, there is no data. - The cursor is opaque and internal structure is subject to change. - startCursor: |- - Use with the `before` query parameter to load the previous page of data. - When `null`, there is no data. - The cursor is opaque and internal structure is subject to change. - hasNextPage: Indicates if there is a next page with items. - hasPrevPage: Indicates if there is a previous page with items. - limit: Value showing how many items are in the page limit. - total: Count of items across all pages. - MenuItem: - - $ref: '#/components/x-types/Beverage' - - $ref: '#/components/x-types/Dessert' - Base_MenuItem: - createdAt: string::date-time - updatedAt: string::date-time - id: string::pattern(^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$) - object: menuItem - name: string::pattern(^[a-z]+(-[a-z]+)*$)::min(1)::max(50) - price: number::integer::min(0) - photo: - - string::binary - - null - - undefined - photoTextDescription: - - string - - null - - undefined - category: - - beverage - - dessert - $descriptions: - createdAt: Created date. - updatedAt: Updated date. - id: Menu item ID. Unique identifier prefixed with `prd_`. - object: Entity name. - name: Menu item name. Must be lowercase letters, optionally hyphenated. - price: Price in cents. - photo: Photo of the menu item. Must be a PNG image and less than 1MB. - category: Menu item category. - Beverage: - $and: - - $ref: '#/components/x-types/Base_MenuItem' - - size: number::x-min(0) - sizeType: - - ml - - oz - - undefined - containsCaffeine: boolean - $descriptions: - size: Size of the beverage. - containsCaffeine: Indicates if the beverage contains caffeine. - - category: beverage - Dessert: - $and: - - $ref: '#/components/x-types/Base_MenuItem' - - calories: number::x-min(0) - $descriptions: - calories: Amount of calories. - - category: dessert - MenuItemList: - object: list - page: - $ref: '#/components/x-types/Page' - items: - $array: - $ref: '#/components/x-types/MenuItem' - $descriptions: - object: Entity name. - Error: - type: string::uri-reference - title: string - status: number::int32::min(100)::x-max(600) - instance: - - string::uri-reference - - undefined - details: - - $record: any - - undefined - $descriptions: - type: URI reference that identifies the problem type. - title: Short summary of the problem type. - status: HTTP status code generated by the origin server for this occurrence of the problem. - instance: | - URI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code. - details: Additional error details. - OrderStatus: - - placed - - preparing - - completed - - canceled - Order: - id: - - string - - undefined - object: - - order - - undefined - customerName: string::pattern(^[A-Za-z]+(?:[\s'-][A-Za-z]+)*$)::min(1)::max(100) - status: - - $ref: '#/components/x-types/OrderStatus' - - undefined - totalPrice: - - number::integer::min(0) - - undefined - createdAt: - - string::date-time - - undefined - updatedAt: - - string::date-time - - undefined - orderItems: - $array: - menuItemId: string - quantity: number::integer::min(1) - discount: - - number::integer::min(0) - - undefined - comment: - - string::max(500) - - undefined - $descriptions: - menuItemId: ID of the menu item to add to the order. - quantity: Quantity of the menu item. - discount: Discount amount in cents (absolute value). - comment: Optional comment for the order item (e.g., "No sugar"). - $descriptions: - id: Order ID. Unique identifier prefixed with `ord_`. - object: Entity name. - customerName: | - Name of the customer who placed the order. - Must start and end with a letter, and can contain letters, spaces, hyphens, and apostrophes (e.g., "John Doe", "Mary-Jane", "O'Brien"). - totalPrice: Total order price in cents. - createdAt: Created date. - updatedAt: Updated date. - orderItems: List of items to include in the order. - OrderList: - object: list - page: - $ref: '#/components/x-types/Page' - items: - $array: - $ref: '#/components/x-types/Order' - $descriptions: - object: Entity name. - OrderItem: - menuItemId: string - menuItem: - - $ref: '#/components/x-types/MenuItem' - - undefined - quantity: number::integer::min(1) - discount: - - number::integer::min(0) - - undefined - comment: - - string::max(500) - - undefined - $descriptions: - menuItemId: ID of the menu item to add to the order. - menuItem: Menu item that is part of the order. - quantity: Quantity of the menu item. - discount: Discount amount in cents (absolute value). - comment: Optional comment for the order item (e.g., "No sugar"). - RevenueStatistics: - revenue: number::min(0) - averageOrderAmount: number::min(0) - totalOrders: number::integer::min(0) - placedOrders: number::integer::min(0) - preparingOrders: number::integer::min(0) - completedOrders: number::integer::min(0) - canceledOrders: number::integer::min(0) - startDate: string::date - endDate: string::date - $descriptions: - revenue: Total revenue in cents from completed orders. - averageOrderAmount: Average order amount in cents (calculated from completed orders only). - totalOrders: Total number of orders (all statuses) in the date range. - placedOrders: Number of placed orders. - preparingOrders: Number of preparing orders. - completedOrders: Number of completed orders. - canceledOrders: Number of canceled orders. - startDate: Start date of the revenue calculation period. - endDate: End date of the revenue calculation period. - RegisterClientObject: - name: string - redirectUris: - - $array: string::uri - - undefined - scopes: - - $array: - - menu:read - - menu:write - - orders:read - - orders:write - - undefined - grantTypes: - - $array: - - authorization_code - - client_credentials - - undefined - $descriptions: - name: Client name. - redirectUris: List of redirect URIs (optional, defaults to empty array). - scopes: List of scopes. - grantTypes: List of grant types. - OAuth2Client: - clientId: string - clientSecret: string - clientIdIssuedAt: number::int64 - clientSecretExpiresAt: number::int64 - name: - - string - - undefined - redirectUris: - - $array: string::uri - - undefined - registrationClientUri: string::uri - registrationAccessToken: string - scopes: - - $array: - - menu:read - - menu:write - - orders:read - - orders:write - - undefined - grantTypes: - - $array: - - authorization_code - - client_credentials - - undefined - $descriptions: - clientId: Client identifier issued by the authorization server. - clientSecret: Client secret issued by the authorization server. - clientIdIssuedAt: Time when the client_id is issued, represented as seconds since epoch (RFC 7591). - clientSecretExpiresAt: Time at which the client_secret expires, represented as seconds since epoch. 0 indicates the secret does not expire (RFC 7591). - name: Client name (registered metadata). - redirectUris: List of redirect URIs (registered metadata). - registrationClientUri: URL of the client configuration endpoint for managing this client registration (RFC 7592). - registrationAccessToken: Access token to be used at the client configuration endpoint for managing this client registration (RFC 7592). - scopes: List of scopes (registered metadata). - grantTypes: List of grant types (registered metadata). - OrderNotification: - orderId: string - orderStatus: - $ref: '#/components/x-types/OrderStatus' - timestamp: string::date-time - $descriptions: - orderId: Unique order identifier. - timestamp: When the event occurred. diff --git a/applications/resources/cafe.yaml b/applications/resources/cafe.yaml deleted file mode 100644 index f04e7a3..0000000 --- a/applications/resources/cafe.yaml +++ /dev/null @@ -1,1061 +0,0 @@ -openapi: 3.2.0 -info: - title: Redocly Cafe - description: | - REST API for managing cafe operations. - version: 1.0.0 - contact: - email: team@redocly.com - url: https://redocly.com/contact-us/ - license: - name: MIT - url: https://opensource.org/licenses/MIT - termsOfService: https://redocly.com/subscription-agreement -servers: - - url: https://cafe.redocly.com/v1 - description: Live server. -tags: - - name: Products - description: Operations related to products. - - name: Orders - description: Order management operations. - - name: Auth - description: Authentication operations. - - name: Stats - description: Statistics operations. -paths: - /menu: - get: - tags: - - Products - summary: List menu items - description: Retrieve a collection of menu items with optional filtering and pagination. - operationId: listMenuItems - security: [] - parameters: - - $ref: '#/components/parameters/After' - - $ref: '#/components/parameters/Before' - - $ref: '#/components/parameters/Sort' - - $ref: '#/components/parameters/Filter' - - $ref: '#/components/parameters/Search' - - $ref: '#/components/parameters/Limit' - responses: - '200': - description: Successful operation. - content: - application/json: - schema: - $ref: '#/components/schemas/MenuItemList' - '400': - $ref: '#/components/responses/BadRequest' - '500': - $ref: '#/components/responses/InternalServerError' - post: - tags: - - Products - summary: Create menu item - description: Create a new menu item. - operationId: createMenuItem - security: - - OAuth2: - - menu:write - requestBody: - required: true - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/MenuItem' - responses: - '201': - description: Menu item created successfully. - content: - application/json: - schema: - $ref: '#/components/schemas/MenuItem' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '409': - $ref: '#/components/responses/Conflict' - '500': - $ref: '#/components/responses/InternalServerError' - /menu/{menuItemId}: - parameters: - - $ref: '#/components/parameters/MenuItemId' - delete: - tags: - - Products - summary: Delete menu item - description: Delete an existing menu item. - operationId: deleteMenuItem - security: - - OAuth2: - - menu:write - responses: - '204': - description: Menu item deleted successfully. - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - /menu-item-images/{menuItemId}: - parameters: - - $ref: '#/components/parameters/MenuItemId' - get: - operationId: getMenuItemPhoto - summary: Get menu item photo - description: Retrieve the product photo image for a specific menu item. - security: [] - tags: - - Products - parameters: - - $ref: '#/components/parameters/PhotoSize' - responses: - '200': - description: Menu item photo retrieved successfully. - content: - image/png: - schema: - type: string - format: binary - text/plain: - schema: - description: Alternative image text. - type: string - '404': - $ref: '#/components/responses/NotFound' - /orders: - get: - tags: - - Orders - summary: List orders - description: Retrieve a collection of orders with optional filtering and pagination. - operationId: listOrders - security: - - OAuth2: - - orders:read - parameters: - - $ref: '#/components/parameters/Filter' - - $ref: '#/components/parameters/Sort' - - $ref: '#/components/parameters/Limit' - - $ref: '#/components/parameters/After' - - $ref: '#/components/parameters/Before' - - $ref: '#/components/parameters/Search' - responses: - '200': - description: Successful operation. - content: - application/json: - schema: - $ref: '#/components/schemas/OrderList' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '500': - $ref: '#/components/responses/InternalServerError' - post: - tags: - - Orders - summary: Create order - description: | - Create a new order. - Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed. - Orders cannot be deleted, only canceled. - operationId: createOrder - security: - - OAuth2: - - orders:write - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/Order' - responses: - '201': - description: Order placed successfully. - content: - application/json: - schema: - $ref: '#/components/schemas/Order' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '500': - $ref: '#/components/responses/InternalServerError' - /orders/{orderId}: - get: - tags: - - Orders - summary: Get order by ID - description: Retrieve a single order by its ID. - operationId: getOrderById - security: [] - parameters: - - $ref: '#/components/parameters/OrderId' - responses: - '200': - description: Successful operation. - content: - application/json: - schema: - $ref: '#/components/schemas/Order' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - patch: - tags: - - Orders - summary: Update order - description: | - Update an existing order status. - Order items cannot be changed - if they need to be updated, the order should be canceled and a new one placed. - operationId: updateOrder - security: - - OAuth2: - - orders:write - parameters: - - $ref: '#/components/parameters/OrderId' - requestBody: - content: - application/json: - schema: - type: object - description: Partial order update using JSON Merge Patch - only include fields to update. - properties: - status: - $ref: '#/components/schemas/OrderStatus' - required: - - status - responses: - '200': - description: Order updated successfully. - content: - application/json: - schema: - $ref: '#/components/schemas/Order' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - delete: - tags: - - Orders - summary: Cancel order - description: | - Cancel the order. - Orders cannot be deleted, only canceled. - operationId: cancelOrder - security: - - OAuth2: - - orders:write - parameters: - - $ref: '#/components/parameters/OrderId' - responses: - '204': - description: Order status updated successfully. - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/Forbidden' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - /order-items: - get: - tags: - - Orders - summary: List order items - description: | - Returns an array of order items for a specific order. - Use the `filter` parameter to filter by order ID. - operationId: listOrderItems - security: - - OAuth2: - - orders:read - parameters: - - name: filter - description: Filters the collection items. This field requires a special format. - in: query - required: true - schema: - type: string - example: orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 - responses: - '200': - description: Successful operation. - content: - application/json: - schema: - type: array - description: List of menu items that are part of the order. - items: - $ref: '#/components/schemas/OrderItem' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '500': - $ref: '#/components/responses/InternalServerError' - /revenue: - get: - tags: - - Stats - summary: Get revenue statistics - description: | - Retrieve revenue statistics for a configurable date range. - Returns revenue, order counts, average order amount, and other useful statistics. - operationId: getRevenue - security: - - ApiKey: [] - parameters: - - name: startDate - in: query - required: false - description: Start date for the revenue calculation period (ISO 8601 datetime format). Defaults to 30 days ago if not provided. - schema: - type: string - format: date - example: '2024-01-01' - - name: endDate - in: query - required: false - description: End date for the revenue calculation period (ISO 8601 datetime format). Defaults to current time if not provided. - schema: - type: string - format: date - example: '2024-01-31' - responses: - '200': - description: Revenue statistics retrieved successfully. - content: - application/json: - schema: - $ref: '#/components/schemas/RevenueStatistics' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '500': - $ref: '#/components/responses/InternalServerError' - /oauth2/register: - post: - tags: - - Auth - summary: Create OAuth2 client - description: | - Register a new OAuth2 client for dynamic client registration. - This endpoint implements the Dynamic Client Registration Protocol (RFC 7591), - using camelCase field names instead of the RFC's snake_case convention - (e.g., `redirectUris` instead of `redirect_uris`, `grantTypes` instead of `grant_types`). - - The `name` field is required. Other fields are optional. If not provided: - - `redirectUris` defaults to an empty array. Note: When using the `authorization_code` grant type, - `redirectUris` must be provided (per RFC 7591 Section 2). - - `scopes` defaults to all available scopes (menu:read, menu:write, orders:read, orders:write) - - `grantTypes` defaults to both supported grant types (authorization_code, client_credentials) - - Returns the registered client information per RFC 7591, including: - - `clientId` and `clientSecret` (must be stored securely) - - `clientIdIssuedAt` and `clientSecretExpiresAt` timestamps - - All registered client metadata (name, redirectUris, scopes, grantTypes) - operationId: registerOAuth2Client - security: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/RegisterClientObject' - responses: - '201': - description: OAuth2 client registered successfully. - content: - application/json: - schema: - $ref: '#/components/schemas/OAuth2Client' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '500': - $ref: '#/components/responses/InternalServerError' -webhooks: - order-notification: - post: - tags: - - Orders - operationId: orderNotificationWebhook - security: [] - summary: Order notification webhook - description: Webhook triggered when a new order is placed. - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/OrderNotification' - responses: - '200': - description: Webhook received successfully. - '400': - $ref: '#/components/responses/BadRequest' -components: - securitySchemes: - OAuth2: - type: oauth2 - description: OAuth2 authentication for API access. - flows: - authorizationCode: - authorizationUrl: https://cafe.redocly.com/v1/oauth2/authorize - tokenUrl: https://cafe.redocly.com/v1/oauth2/token - scopes: - menu:read: Read access to menu items and images - menu:write: Write access to menu items (create, delete) - orders:read: Read access to orders - orders:write: Write access to orders (create, update, delete) - clientCredentials: - tokenUrl: https://cafe.redocly.com/v1/oauth2/token - scopes: - menu:read: Read access to menu items and images - menu:write: Write access to menu items (create, delete) - orders:read: Read access to orders - orders:write: Write access to orders (create, update, delete) - ApiKey: - type: apiKey - name: X-API-Key - in: header - description: API key for internal operations. - parameters: - After: - name: after - in: query - required: false - description: Use the `endCursor` as a value for the `after` parameter to get the next page. - schema: - type: string - example: a25fgaksjf23la== - Before: - name: before - in: query - required: false - description: Use the `startCursor` as a value for the `before` parameter to get the next page. - schema: - type: string - example: bfg23aksjf23zb1== - Sort: - name: sort - description: |- - To sort by id in descending order use `-id`. - To sort by id in ascending order use `id`. - in: query - required: false - schema: - type: string - example: '-name' - Filter: - name: filter - description: Filters the collection items. This field requires a special format. - in: query - required: false - schema: - type: string - example: orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 - Search: - name: search - in: query - description: Search. - required: false - schema: - type: string - example: text-to-search - Limit: - name: limit - description: |- - Use to return a number of results per page. - If there is more data, use in combination with `after` to page through the data. - in: query - required: false - schema: - type: integer - minimum: 1 - maximum: 100 - default: 10 - example: 10 - MenuItemId: - name: menuItemId - in: path - description: ID of the menu item to retrieve. - required: true - schema: - type: string - pattern: ^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$ - example: prd_01h1s5z6vf2mm1mz3hevnn9va7 - PhotoSize: - name: photoSize - in: query - description: Photo size to retrieve. - required: false - schema: - type: string - enum: - - thumbnail - - medium - - large - default: medium - OrderId: - name: orderId - in: path - description: ID of the order to retrieve. - required: true - schema: - type: string - pattern: ^ord_[0-9abcdefghjkmnpqrstvwxyz]{26}$ - example: ord_01h1s5z6vf2mm1mz3hevnn9va7 - schemas: - Page: - type: object - properties: - endCursor: - type: - - string - - 'null' - description: |- - Use with the `after` query parameter to load the next page of data. - When `null`, there is no data. - The cursor is opaque and internal structure is subject to change. - startCursor: - type: - - string - - 'null' - description: |- - Use with the `before` query parameter to load the previous page of data. - When `null`, there is no data. - The cursor is opaque and internal structure is subject to change. - hasNextPage: - type: boolean - description: Indicates if there is a next page with items. - hasPrevPage: - type: boolean - description: Indicates if there is a previous page with items. - limit: - type: integer - minimum: 1 - maximum: 100 - default: 10 - description: Value showing how many items are in the page limit. - total: - type: integer - description: Count of items across all pages. - minimum: 0 - required: - - endCursor - - startCursor - - hasNextPage - - hasPrevPage - - limit - - total - MenuItem: - type: object - properties: - createdAt: - description: Created date. - type: string - format: date-time - readOnly: true - updatedAt: - description: Updated date. - type: string - format: date-time - readOnly: true - id: - description: Menu item ID. Unique identifier prefixed with `prd_`. - type: string - readOnly: true - pattern: ^prd_[0-9abcdefghjkmnpqrstvwxyz]{26}$ - example: prd_01h1s5z6vf2mm1mz3hevnn9va7 - object: - description: Entity name. - type: string - const: menuItem - readOnly: true - name: - description: Menu item name. Must be lowercase letters, optionally hyphenated. - type: string - pattern: ^[a-z]+(-[a-z]+)*$ - minLength: 1 - maxLength: 50 - examples: - - coffee - - tea - - cake - - ice-cream - price: - description: Price in cents. - type: integer - minimum: 0 - photo: - writeOnly: true - type: - - string - - 'null' - format: binary - description: Photo of the menu item. Must be a PNG image and less than 1MB. - photoTextDescription: - writeOnly: true - type: - - string - - 'null' - category: - description: Menu item category. - type: string - enum: - - beverage - - dessert - discriminator: - propertyName: category - mapping: - beverage: '#/components/schemas/Beverage' - dessert: '#/components/schemas/Dessert' - required: - - id - - name - - category - - price - - createdAt - - updatedAt - - object - Beverage: - allOf: - - $ref: '#/components/schemas/MenuItem' - - type: object - properties: - size: - type: number - description: Size of the beverage. - exclusiveMinimum: 0 - sizeType: - type: string - default: ml - enum: - - ml - - oz - containsCaffeine: - type: boolean - description: Indicates if the beverage contains caffeine. - required: - - size - - containsCaffeine - Dessert: - allOf: - - $ref: '#/components/schemas/MenuItem' - - type: object - properties: - calories: - type: number - exclusiveMinimum: 0 - description: Amount of calories. - required: - - calories - MenuItemList: - type: object - properties: - object: - type: string - const: list - description: Entity name. - page: - $ref: '#/components/schemas/Page' - items: - type: array - items: - $ref: '#/components/schemas/MenuItem' - required: - - object - - page - - items - Error: - type: object - properties: - type: - type: string - format: uri-reference - description: URI reference that identifies the problem type. - default: about:blank - title: - type: string - description: Short summary of the problem type. - status: - type: integer - format: int32 - description: HTTP status code generated by the origin server for this occurrence of the problem. - minimum: 100 - exclusiveMaximum: 600 - instance: - type: string - format: uri-reference - description: | - URI reference that identifies the specific occurrence of the problem, e.g. by adding a fragment identifier or sub-path to the problem type. May be used to locate the root of this problem in the source code. - example: /some/uri-reference#specific-occurrence-context - details: - description: Additional error details. - type: object - additionalProperties: true - required: - - type - - title - - status - OrderStatus: - type: string - description: Order status. - enum: - - placed - - preparing - - completed - - canceled - Order: - type: object - title: Order - properties: - id: - description: Order ID. Unique identifier prefixed with `ord_`. - type: string - readOnly: true - object: - description: Entity name. - type: string - const: order - readOnly: true - customerName: - description: | - Name of the customer who placed the order. - Must start and end with a letter, and can contain letters, spaces, hyphens, and apostrophes (e.g., "John Doe", "Mary-Jane", "O'Brien"). - type: string - pattern: ^[A-Za-z]+(?:[\s'-][A-Za-z]+)*$ - minLength: 1 - maxLength: 100 - examples: - - John Doe - - Mary-Jane - - O'Brien - - Jean-Pierre - status: - allOf: - - $ref: '#/components/schemas/OrderStatus' - readOnly: true - totalPrice: - description: Total order price in cents. - type: integer - minimum: 0 - readOnly: true - createdAt: - description: Created date. - type: string - format: date-time - readOnly: true - updatedAt: - description: Updated date. - type: string - format: date-time - readOnly: true - orderItems: - type: array - description: List of items to include in the order. - minItems: 1 - items: - type: object - properties: - menuItemId: - type: string - description: ID of the menu item to add to the order. - quantity: - type: integer - minimum: 1 - description: Quantity of the menu item. - discount: - type: integer - minimum: 0 - description: Discount amount in cents (absolute value). - default: 0 - comment: - type: string - maxLength: 500 - description: Optional comment for the order item (e.g., "No sugar"). - required: - - menuItemId - - quantity - required: - - customerName - - orderItems - OrderList: - type: object - properties: - object: - type: string - const: list - description: Entity name. - page: - $ref: '#/components/schemas/Page' - items: - type: array - items: - $ref: '#/components/schemas/Order' - required: - - object - - page - - items - OrderItem: - type: object - properties: - menuItemId: - type: string - description: ID of the menu item to add to the order. - writeOnly: true - menuItem: - allOf: - - $ref: '#/components/schemas/MenuItem' - description: Menu item that is part of the order. - readOnly: true - quantity: - type: integer - minimum: 1 - description: Quantity of the menu item. - discount: - type: integer - minimum: 0 - description: Discount amount in cents (absolute value). - default: 0 - comment: - type: string - maxLength: 500 - description: Optional comment for the order item (e.g., "No sugar"). - required: - - menuItemId - - quantity - RevenueStatistics: - type: object - description: Revenue statistics for a given date range. - properties: - revenue: - type: number - format: float - description: Total revenue in cents from completed orders. - minimum: 0 - averageOrderAmount: - type: number - format: float - description: Average order amount in cents (calculated from completed orders only). - minimum: 0 - totalOrders: - type: integer - description: Total number of orders (all statuses) in the date range. - minimum: 0 - placedOrders: - type: integer - description: Number of placed orders. - minimum: 0 - preparingOrders: - type: integer - description: Number of preparing orders. - minimum: 0 - completedOrders: - type: integer - description: Number of completed orders. - minimum: 0 - canceledOrders: - type: integer - description: Number of canceled orders. - minimum: 0 - startDate: - type: string - format: date - description: Start date of the revenue calculation period. - endDate: - type: string - format: date - description: End date of the revenue calculation period. - required: - - revenue - - averageOrderAmount - - totalOrders - - placedOrders - - preparingOrders - - completedOrders - - canceledOrders - - startDate - - endDate - RegisterClientObject: - type: object - properties: - name: - type: string - description: Client name. - redirectUris: - type: array - items: - type: string - format: uri - description: List of redirect URIs (optional, defaults to empty array). - scopes: - type: array - items: - type: string - enum: - - menu:read - - menu:write - - orders:read - - orders:write - description: List of scopes. - grantTypes: - type: array - items: - type: string - enum: - - authorization_code - - client_credentials - description: List of grant types. - required: - - name - OAuth2Client: - type: object - description: | - OAuth2 client registration response. Per RFC 7591, includes the client identifier, - secret, timestamps, and all registered client metadata. - properties: - clientId: - type: string - description: Client identifier issued by the authorization server. - clientSecret: - type: string - description: Client secret issued by the authorization server. - clientIdIssuedAt: - type: integer - format: int64 - description: Time when the client_id is issued, represented as seconds since epoch (RFC 7591). - clientSecretExpiresAt: - type: integer - format: int64 - description: Time at which the client_secret expires, represented as seconds since epoch. 0 indicates the secret does not expire (RFC 7591). - name: - type: string - description: Client name (registered metadata). - redirectUris: - type: array - items: - type: string - format: uri - description: List of redirect URIs (registered metadata). - registrationClientUri: - type: string - format: uri - description: URL of the client configuration endpoint for managing this client registration (RFC 7592). - registrationAccessToken: - type: string - description: Access token to be used at the client configuration endpoint for managing this client registration (RFC 7592). - scopes: - type: array - items: - type: string - enum: - - menu:read - - menu:write - - orders:read - - orders:write - description: List of scopes (registered metadata). - grantTypes: - type: array - items: - type: string - enum: - - authorization_code - - client_credentials - description: List of grant types (registered metadata). - required: - - clientId - - clientSecret - - clientIdIssuedAt - - clientSecretExpiresAt - - registrationClientUri - - registrationAccessToken - OrderNotification: - type: object - required: - - orderId - - orderStatus - - timestamp - properties: - orderId: - type: string - description: Unique order identifier. - orderStatus: - $ref: '#/components/schemas/OrderStatus' - timestamp: - type: string - format: date-time - description: When the event occurred. - responses: - BadRequest: - description: Bad request - invalid input parameters. - content: - application/problem+json: - schema: - $ref: '#/components/schemas/Error' - InternalServerError: - description: Internal server error. - content: - application/problem+json: - schema: - $ref: '#/components/schemas/Error' - Unauthorized: - description: Unauthorized - authentication required. - content: - application/problem+json: - schema: - $ref: '#/components/schemas/Error' - Forbidden: - description: Forbidden - insufficient permissions. - content: - application/problem+json: - schema: - $ref: '#/components/schemas/Error' - Conflict: - description: Conflict - entity already exists. - content: - application/problem+json: - schema: - $ref: '#/components/schemas/Error' - NotFound: - description: Resource not found. - content: - application/problem+json: - schema: - $ref: '#/components/schemas/Error' From 024a3aadc8845a6f33bb2001a5f7128334f5bad8 Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Mon, 19 Jan 2026 21:58:46 +0200 Subject: [PATCH 5/8] resolve comments; add random tests --- .../__snapshots__/e2e-bundle.test.js.snap | 2 +- .../__tests__/json-schema-adapter.test.js | 80 +++++++++++++++++++ applications/json-schema-adapter.js | 5 +- applications/x-types-adapter.js | 3 +- 4 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 applications/__tests__/json-schema-adapter.test.js diff --git a/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap b/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap index 3b84feb..8bf7039 100644 --- a/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap +++ b/applications/__tests__/__snapshots__/e2e-bundle.test.js.snap @@ -805,7 +805,7 @@ components: `; exports[`bundle > openapi with discriminators converted to x-types 1`] = ` -"# Already a x-type $ref: #/components/x-types/Base_Az +"# Already an x-type $ref: #/components/x-types/Base_Az openapi: 3.1.0 info: title: Test diff --git a/applications/__tests__/json-schema-adapter.test.js b/applications/__tests__/json-schema-adapter.test.js new file mode 100644 index 0000000..6ae5266 --- /dev/null +++ b/applications/__tests__/json-schema-adapter.test.js @@ -0,0 +1,80 @@ +import {describe, expect, test} from 'vitest' +import {translateJSONSchemaToXType} from '../json-schema-adapter.js' + +describe('json-schema-adapter', () => { + test('primitives', () => { + expect(translateJSONSchemaToXType({type: 'null'}, {})).toEqual(null) + expect(translateJSONSchemaToXType({type: 'string'}, {})).toEqual('string') + expect(translateJSONSchemaToXType({type: 'integer'}, {})).toEqual( + 'number::integer' + ) + expect( + translateJSONSchemaToXType( + {type: 'string', format: 'email', minLength: 5}, + {} + ) + ).toEqual('string::email::min(5)') + expect( + translateJSONSchemaToXType( + {type: 'number', minimum: 0, exclusiveMaximum: 100}, + {} + ) + ).toEqual('number::min(0)::x-max(100)') + }) + + test('escapes reserved keywords in enum/const', () => { + expect( + translateJSONSchemaToXType({type: 'string', enum: ['string']}, {}) + ).toEqual('$literal:string') + expect( + translateJSONSchemaToXType( + {type: 'string', enum: ['string', 'foo', 'number']}, + {} + ) + ).toEqual(['$literal:string', 'foo', '$literal:number']) + expect( + translateJSONSchemaToXType({type: 'string', const: 'boolean'}, {}) + ).toEqual('$literal:boolean') + }) + + test('objects and arrays', () => { + expect(translateJSONSchemaToXType({type: 'object'}, {})).toEqual({ + $record: 'any', + }) + expect( + translateJSONSchemaToXType( + {type: 'object', properties: {id: {type: 'number'}}, required: ['id']}, + {} + ) + ).toEqual({id: 'number'}) + expect( + translateJSONSchemaToXType( + {type: 'object', properties: {$x: {type: 'string'}}, required: ['$x']}, + {} + ) + ).toEqual({'$literal:$x': 'string'}) + expect( + translateJSONSchemaToXType({type: 'array', items: {type: 'string'}}, {}) + ).toEqual({$array: 'string'}) + }) + + test('composition', () => { + expect( + translateJSONSchemaToXType( + { + allOf: [ + {type: 'object', properties: {foo: {type: 'string'}}}, + {type: 'object', properties: {bar: {type: 'number'}}}, + ], + }, + {} + ) + ).toEqual({$and: [{foo: 'string'}, {bar: 'number'}]}) + expect( + translateJSONSchemaToXType( + {oneOf: [{type: 'string'}, {type: 'number'}]}, + {} + ) + ).toEqual(['string', 'number']) + }) +}) diff --git a/applications/json-schema-adapter.js b/applications/json-schema-adapter.js index 17e6d21..ab483f3 100644 --- a/applications/json-schema-adapter.js +++ b/applications/json-schema-adapter.js @@ -5,6 +5,9 @@ import {isPlainObject, isEmptyObject} from '@redocly/openapi-core/lib/utils.js' import {RESERVED_KEYWORDS} from './x-types-utils.js' const escapeReserved = value => { + if (Array.isArray(value)) { + return value.map(escapeReserved) + } if (RESERVED_KEYWORDS.includes(value)) { return `$literal:${value}` } @@ -129,7 +132,7 @@ export function translateJSONSchemaToXType(schema, ctx) { $omit, } } else if (schema.$ref.startsWith('#/components/x-types/')) { - console.log('# Already a x-type $ref:', schema.$ref) + console.log('# Already an x-type $ref:', schema.$ref) return schema } diff --git a/applications/x-types-adapter.js b/applications/x-types-adapter.js index d707f3c..cadc837 100644 --- a/applications/x-types-adapter.js +++ b/applications/x-types-adapter.js @@ -13,7 +13,6 @@ const SUFFIXES = { [/^uri$/, () => ({format: 'uri'})], [/^uri-reference$/, () => ({format: 'uri-reference'})], [/^url$/, () => ({format: 'url'})], - [/^uuid$/, () => ({format: 'uuid'})], [/^pattern\((?.+)\)$/, match => ({pattern: match?.groups?.value})], [ @@ -175,7 +174,7 @@ export const translateXTypeToSchema = xType => { let properties = {} let patternProperties = {} let required = [] - const {$record, $descriptions, $discriminator, ...props} = xType + const {$record, $descriptions, ...props} = xType const additionalProperties = typeof $record === 'undefined' ? false : translateXTypeToSchema($record) From 808565da0f8c8aa08dafd37b356b04d240241d85 Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Mon, 19 Jan 2026 22:33:32 +0200 Subject: [PATCH 6/8] cleanup pets, update back-to-schemas --- .../file-snapshots/pets-back-to-schemas.yaml | 48967 ++++++++++++++-- applications/resources/pets.yaml | 251 - package.json | 2 +- 3 files changed, 45622 insertions(+), 3598 deletions(-) diff --git a/applications/__tests__/file-snapshots/pets-back-to-schemas.yaml b/applications/__tests__/file-snapshots/pets-back-to-schemas.yaml index d20a318..efe129a 100644 --- a/applications/__tests__/file-snapshots/pets-back-to-schemas.yaml +++ b/applications/__tests__/file-snapshots/pets-back-to-schemas.yaml @@ -78,16 +78,15 @@ paths: description: The language you prefer for messages. Supported values are en-AU, en-CA, en-GB, en-US example: en-US required: false - x-type: string schema: type: string - name: cookieParam in: cookie description: Some cookie required: true - x-type: number::integer schema: type: integer + format: int64 post: tags: - pet @@ -177,100 +176,22 @@ paths: description: ID of pet to return required: true deprecated: true - x-type: number::integer schema: type: integer + format: int64 responses: '200': description: successful operation content: application/json: - x-type: - id: - - $ref: '#/components/x-types/Id' - - undefined - category: - - $ref: '#/components/x-types/Category' - - undefined - name: string - photoUrls: - $array: string::url - friend: - - $ref: '#/components/x-types/Pet' - - undefined - tags: - - $array: - $ref: '#/components/x-types/Tag' - - undefined - status: - - - available - - pending - - sold - - undefined - petType: - - string - - undefined - $discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - $descriptions: - id: Pet ID - category: Categories this pet belongs to - name: The name given to a pet - photoUrls: The list of URL to a cute photos featuring pet - tags: Tags attached to the pet - status: Pet status in the store - petType: Type of a pet schema: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object + anyOf: + - type: object properties: id: description: Pet ID type: integer + format: int64 category: description: Categories this pet belongs to type: object @@ -278,6 +199,7 @@ paths: id: description: Category ID type: integer + format: int64 name: description: Category name type: string @@ -307,84 +229,1010 @@ paths: type: string format: url friend: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object + anyOf: + - type: object properties: id: - description: Category ID + description: Pet ID type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category + format: int64 + category: + description: Categories this pet belongs to type: object properties: - prop1: - description: Dumb Property + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: - - prop1 + - id + - name + - sub additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive required: - - id - name - - sub + - photoUrls + - huntingSkill additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - name: - description: Tag name + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false tags: description: Tags attached to the pet type: array @@ -394,6 +1242,7 @@ paths: id: description: Tag ID type: integer + format: int64 name: description: Tag name type: string @@ -412,1722 +1261,1168 @@ paths: petType: description: Type of a pet type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive required: - name - photoUrls + - huntingSkill additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - '400': - description: Invalid ID supplied - '404': - description: Pet not found - security: - - api_key: [] - post: - tags: - - pet - summary: Updates a pet in the store with form data - description: '' - operationId: updatePetWithForm - parameters: - - name: petId - in: path - description: ID of pet that needs to be updated - required: true - x-type: number::integer - schema: - type: integer - responses: - '405': - description: Invalid input - security: - - petstore_auth: - - write:pets - - read:pets - requestBody: - content: - application/x-www-form-urlencoded: - x-type: - name: string - status: string - $descriptions: - name: Updated name of the pet - status: Updated status of the pet - schema: - type: object - properties: - name: - description: Updated name of the pet - type: string - status: - description: Updated status of the pet - type: string - required: - - name - - status - additionalProperties: false - delete: - tags: - - pet - summary: Deletes a pet - description: '' - operationId: deletePet - parameters: - - name: api_key - in: header - required: false - example: Bearer - x-type: string - schema: - type: string - - name: petId - in: path - description: Pet id to delete - required: true - x-type: number::integer - schema: - type: integer - responses: - '400': - description: Invalid pet value - security: - - petstore_auth: - - write:pets - - read:pets - /pet/{petId}/uploadImage: - post: - tags: - - pet - summary: uploads an image - description: '' - operationId: uploadFile - parameters: - - name: petId - in: path - description: ID of pet to update - required: true - x-type: number::integer - schema: - type: integer - responses: - '200': - description: successful operation - content: - application/json: - x-type: - code: number::integer - type: string - message: string - schema: - type: object - properties: - code: - type: integer - type: - type: string - message: - type: string - required: - - code - - type - - message - additionalProperties: false - security: - - petstore_auth: - - write:pets - - read:pets - requestBody: - content: - application/octet-stream: - x-type: string::binary - schema: - type: string - format: binary - /pet/findByStatusPut: - get: - tags: - - pet - summary: Finds Pets by status - description: Multiple status values can be provided with comma separated strings - operationId: findPetsByStatus - parameters: - - name: status - in: query - description: Status values that need to be considered for filter - required: true - style: form - x-type: - $array: - - available - - pending - - sold - schema: - type: array - items: - type: string - enum: - - available - - pending - - sold - responses: - '200': - description: successful operation - content: - application/json: - x-type: - $array: - id: - - $ref: '#/components/x-types/Id' - - undefined - category: - - $ref: '#/components/x-types/Category' - - undefined - name: string - photoUrls: - $array: string::url - friend: - - $ref: '#/components/x-types/Pet' - - undefined - tags: - - $array: - $ref: '#/components/x-types/Tag' - - undefined - status: - - - available - - pending - - sold - - undefined - petType: - - string - - undefined - $discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - $descriptions: - id: Pet ID - category: Categories this pet belongs to - name: The name given to a pet - photoUrls: The list of URL to a cute photos featuring pet - tags: Tags attached to the pet - status: Pet status in the store - petType: Type of a pet - schema: - type: array - items: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet type: string - format: url - friend: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - minLength: 1 - sub: - description: Test Sub Category + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: type: object properties: - prop1: - description: Dumb Property + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name type: string + minLength: 1 required: - - prop1 + - id + - name additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: + status: + description: Pet status in the store type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to type: object properties: id: - description: Tag ID + description: Category ID type: integer + format: int64 name: - description: Tag name + description: Category name type: string minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: - id - name + - sub additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer name: - description: Tag name + description: The name given to a pet type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - '400': - description: Invalid status value - security: - - petstore_auth: - - write:pets - - read:pets - /GETCustomers/findByTags: - get: - tags: - - pet - summary: Finds Pets by tags - description: Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - operationId: findPetsByTags - deprecated: true - parameters: - - name: tags - in: query - description: Tags to filter by - required: true - style: form - x-type: - $array: string - schema: - type: array - items: - type: string - responses: - '200': - description: successful operation - content: - application/json: - x-type: - $array: - id: - - $ref: '#/components/x-types/Id' - - undefined - category: - - $ref: '#/components/x-types/Category' - - undefined - name: string - photoUrls: - $array: string::url - friend: - - $ref: '#/components/x-types/Pet' - - undefined - tags: - - $array: - $ref: '#/components/x-types/Tag' - - undefined - status: - - - available - - pending - - sold - - undefined - petType: - - string - - undefined - $discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - $descriptions: - id: Pet ID - category: Categories this pet belongs to - name: The name given to a pet - photoUrls: The list of URL to a cute photos featuring pet - tags: Tags attached to the pet - status: Pet status in the store - petType: Type of a pet - schema: - type: array - items: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - minLength: 1 - sub: - description: Test Sub Category + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: type: object properties: - prop1: - description: Dumb Property + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name type: string + minLength: 1 required: - - prop1 + - id + - name additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: + status: + description: Pet status in the store type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to type: object properties: id: - description: Tag ID + description: Category ID type: integer + format: int64 name: - description: Tag name + description: Category name type: string minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false name: - description: Tag name + description: The name given to a pet type: string - minLength: 1 + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number required: - - id - name + - photoUrls + - honeyPerDay additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to type: object properties: id: - description: Tag ID + description: Category ID type: integer + format: int64 name: - description: Tag name + description: Category name type: string minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: - id - name + - sub additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - '400': - description: Invalid tag value - security: - - petstore_auth: - - write:pets - - read:pets - /store/inventory: - get: - tags: - - store - summary: Returns pet inventories by status - description: Returns a map of status codes to quantities - operationId: getInventory - responses: - '200': - description: successful operation - content: - application/json: - x-type: - $record: number::integer - schema: - type: object - properties: {} - required: [] - additionalProperties: - type: integer - security: - - api_key: [] - /store/order: - post: - tags: - - store - summary: Place an order for a pet - description: '' - operationId: placeOrder - responses: - '200': - description: successful operation - content: - application/json: - x-type: - $omit: - - requestId - id: number::integer - petId: number::integer - quantity: number::integer::min(1) - shipDate: string::date-time - status: - - placed - - approved - - delivered - complete: boolean - requestId: string - $descriptions: - id: Order ID - petId: Pet ID - shipDate: Estimated ship date - status: Order Status - complete: Indicates whenever order was completed or not - requestId: Unique Request Id - schema: - type: object - properties: - id: - description: Order ID - type: integer - petId: - description: Pet ID - type: integer - quantity: - type: integer - minimum: 1 - shipDate: - description: Estimated ship date - type: string - format: date-time - status: - description: Order Status - type: string - enum: - - placed - - approved - - delivered - complete: - description: Indicates whenever order was completed or not - type: boolean - required: - - id - - petId - - quantity - - shipDate - - status - - complete - additionalProperties: false - '400': - description: Invalid Order - content: - application/json: - example: - status: 400 - message: Invalid Order - requestBody: - content: - application/json: - x-type: - $omit: - - id - - petId - - complete - id: number::integer - petId: number::integer - quantity: number::integer::min(1) - shipDate: string::date-time - status: - - placed - - approved - - delivered - complete: boolean - requestId: string - $descriptions: - id: Order ID - petId: Pet ID - shipDate: Estimated ship date - status: Order Status - complete: Indicates whenever order was completed or not - requestId: Unique Request Id - schema: - type: object - properties: - quantity: - type: integer - minimum: 1 - shipDate: - description: Estimated ship date - type: string - format: date-time - status: - description: Order Status - type: string - enum: - - placed - - approved - - delivered - requestId: - description: Unique Request Id - type: string - required: - - quantity - - shipDate - - status - - requestId - additionalProperties: false - description: order placed for purchasing the pet - required: true - /store/order/{orderId}: - get: - tags: - - store - summary: Find purchase order by ID - description: For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - operationId: getOrderById - parameters: - - name: orderId - in: path - description: ID of pet that needs to be fetched - required: true - x-type: number::integer::min(1)::max(5) - schema: - type: integer - minimum: 1 - maximum: 5 - responses: - '200': - description: successful operation - content: - application/json: - x-type: - $omit: - - requestId - id: number::integer - petId: number::integer - quantity: number::integer::min(1) - shipDate: string::date-time - status: - - placed - - approved - - delivered - complete: boolean - requestId: string - $descriptions: - id: Order ID - petId: Pet ID - shipDate: Estimated ship date - status: Order Status - complete: Indicates whenever order was completed or not - requestId: Unique Request Id - schema: - type: object - properties: - id: - description: Order ID - type: integer - petId: - description: Pet ID - type: integer - quantity: - type: integer - minimum: 1 - shipDate: - description: Estimated ship date - type: string - format: date-time - status: - description: Order Status - type: string - enum: - - placed - - approved - - delivered - complete: - description: Indicates whenever order was completed or not - type: boolean - required: - - id - - petId - - quantity - - shipDate - - status - - complete - additionalProperties: false - '400': - description: Invalid ID supplied - '404': - description: Order not found - delete: - tags: - - store - summary: Delete purchase order by ID - description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - operationId: deleteOrder - parameters: - - name: orderId - in: path - description: ID of the order that needs to be deleted - required: true - x-type: string::min(1) - schema: - type: string - minLength: 1 - responses: - '400': - description: Invalid ID supplied - '404': - description: Order not found - /store/subscribe: - post: - tags: - - store - summary: Subscribe to the Store events - description: Add subscription for a store events - requestBody: - content: - application/json: - x-type: - callbackUrl: string::uri - eventName: - - orderInProgress - - orderShipped - - orderDelivered - $descriptions: - callbackUrl: This URL will be called by the server when the desired event will occur - eventName: Event name for the subscription - schema: - type: object - properties: - callbackUrl: - description: This URL will be called by the server when the desired event will occur - type: string - format: uri - eventName: - description: Event name for the subscription - type: string - enum: - - orderInProgress - - orderShipped - - orderDelivered - required: - - callbackUrl - - eventName - additionalProperties: false - responses: - '201': - description: Subscription added - content: - application/json: - x-type: - subscriptionId: string - schema: - type: object - properties: - subscriptionId: - type: string - required: - - subscriptionId - additionalProperties: false - callbacks: - orderInProgress: - '{$request.body#/callbackUrl}?event={$request.body#/eventName}': - servers: - - url: //callback-url.path-level/v1 - description: Path level server 1 - - url: //callback-url.path-level/v2 - description: Path level server 2 - post: - summary: Order in Progress (Summary) - description: A callback triggered every time an Order is updated status to "inProgress" (Description) - externalDocs: - description: Find out more - url: https://more-details.com/demo - requestBody: - content: - application/json: - x-type: - orderId: string - timestamp: string::date-time - status: string - schema: - type: object - properties: - orderId: - type: string - timestamp: - type: string - format: date-time - status: + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - required: - - orderId - - timestamp - - status - additionalProperties: false - responses: - '200': - description: Callback successfully processed and no retries will be performed - content: - application/json: - x-type: - someProp: string - schema: - type: object - properties: - someProp: - type: string - required: - - someProp - additionalProperties: false - '299': - description: Response for cancelling subscription - '500': - description: Callback processing failed and retries will be performed - x-codeSamples: - - lang: C# - source: | - PetStore.v1.Pet pet = new PetStore.v1.Pet(); - pet.setApiKey("your api key"); - pet.petType = PetStore.v1.Pet.TYPE_DOG; - pet.name = "Rex"; - // set other fields - PetStoreResponse response = pet.create(); - if (response.statusCode == HttpStatusCode.Created) - { - // Successfully created - } - else - { - // Something wrong -- check response for errors - Console.WriteLine(response.getRawResponse()); - } - - lang: PHP - source: | - $form = new \PetStore\Entities\Pet(); - $form->setPetType("Dog"); - $form->setName("Rex"); - // set other fields - try { - $pet = $client->pets()->create($form); - } catch (UnprocessableEntityException $e) { - var_dump($e->getErrors()); - } - put: - description: Order in Progress (Only Description) - servers: - - url: //callback-url.operation-level/v1 - description: Operation level server 1 (Operation override) - - url: //callback-url.operation-level/v2 - description: Operation level server 2 (Operation override) - requestBody: - content: - application/json: - x-type: - orderId: string - timestamp: string::date-time - status: string - schema: - type: object - properties: - orderId: - type: string - timestamp: - type: string - format: date-time - status: - type: string - required: - - orderId - - timestamp - - status - additionalProperties: false - responses: - '200': - description: Callback successfully processed and no retries will be performed - content: - application/json: - x-type: - someProp: string - schema: - type: object - properties: - someProp: - type: string - required: - - someProp - additionalProperties: false - orderShipped: - '{$request.body#/callbackUrl}?event={$request.body#/eventName}': - post: - description: | - Very long description - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis - nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu - fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in - culpa qui officia deserunt mollit anim id est laborum. - requestBody: - content: - application/json: - x-type: - orderId: string - timestamp: string::date-time - estimatedDeliveryDate: string::date-time - schema: - type: object - properties: - orderId: - type: string - timestamp: - type: string - format: date-time - estimatedDeliveryDate: - type: string - format: date-time - required: - - orderId - - timestamp - - estimatedDeliveryDate - additionalProperties: false - responses: - '200': - description: Callback successfully processed and no retries will be performed - orderDelivered: - http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}: - post: - deprecated: true - summary: Order delivered - description: A callback triggered every time an Order is delivered to the recipient - requestBody: - content: - application/json: - x-type: - orderId: string - timestamp: string::date-time - schema: - type: object - properties: - orderId: - type: string - timestamp: - type: string - format: date-time - required: - - orderId - - timestamp - additionalProperties: false - responses: - '200': - description: Callback successfully processed and no retries will be performed - /user: - post: - tags: - - user - summary: Create user - description: This can only be done by the logged in user. - operationId: createUser - responses: - default: - description: successful operation - requestBody: - content: - application/json: - x-type: - $omit: - - id - id: number::integer - pet: - - $ref: '#/components/x-types/Pet' - - $ref: '#/components/x-types/Tag' - username: string::min(4) - firstName: string::min(1) - lastName: string::min(1) - email: string::email - password: string::password::pattern(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/)::min(8) - phone: string::pattern(/^\+(?:[0-9]-?){6,14}[0-9]$/) - userStatus: number::integer - $descriptions: - username: User supplied username - firstName: User first name - lastName: User last name - email: User email address - password: User password, MUST contain a mix of upper and lower case letters, as well as digits - phone: User phone number in international format - userStatus: User status - schema: - type: object - properties: - pet: - anyOf: - - type: object - properties: - id: # wrong, should be omitted in requests - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id # wrong, should be omitted - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id # wrong, should be omitted - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id # wrong, should be omitted - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id # wrong, should be omitted - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id # wrong, should be omitted - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id # wrong, should be omitted - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id # wrong, should be omitted - - name - additionalProperties: false - username: - description: User supplied username - type: string - minLength: 4 - firstName: - description: User first name - type: string - minLength: 1 - lastName: - description: User last name - type: string - minLength: 1 - email: - description: User email address - type: string - format: email - password: - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - type: string - format: password - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - minLength: 8 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - userStatus: - description: User status - type: integer - required: - - pet - - username - - firstName - - lastName - - email - - password - - phone - - userStatus - additionalProperties: false - description: Created user object - required: true - /user/{username}: - get: - tags: - - user - summary: Get user by user name - description: '' - operationId: getUserByName - parameters: - - name: username - in: path - description: 'The name that needs to be fetched. Use user1 for testing. ' - required: true - x-type: string - schema: - type: string - responses: - '200': - description: successful operation - content: - application/json: - x-type: - id: number::integer - pet: - - $ref: '#/components/x-types/Pet' - - $ref: '#/components/x-types/Tag' - username: string::min(4) - firstName: string::min(1) - lastName: string::min(1) - email: string::email - password: string::password::pattern(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/)::min(8) - phone: string::pattern(/^\+(?:[0-9]-?){6,14}[0-9]$/) - userStatus: number::integer - $descriptions: - username: User supplied username - firstName: User first name - lastName: User last name - email: User email address - password: User password, MUST contain a mix of upper and lower case letters, as well as digits - phone: User phone number in international format - userStatus: User status - schema: - type: object - properties: - id: - type: integer - pet: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - name: - description: Category name + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name type: string minLength: 1 sub: @@ -2155,84 +2450,594 @@ paths: type: string format: url friend: - type: object - properties: - id: - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object + anyOf: + - type: object properties: id: - description: Category ID + description: Pet ID type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category + format: int64 + category: + description: Categories this pet belongs to type: object properties: - prop1: - description: Dumb Property + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: - - prop1 + - id + - name + - sub additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive required: - - id - name - - sub + - photoUrls + - huntingSkill additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - name: - description: Tag name + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: + - id - name - - photoUrls + - sub additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false tags: description: Tags attached to the pet type: array @@ -2242,6 +3047,7 @@ paths: id: description: Tag ID type: integer + format: int64 name: description: Tag name type: string @@ -2260,253 +3066,591 @@ paths: petType: description: Type of a pet type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 required: - name - photoUrls + - packSize additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - name: - description: Tag name + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - - type: object - properties: - id: - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - username: - description: User supplied username - type: string - minLength: 4 - firstName: - description: User first name - type: string - minLength: 1 - lastName: - description: User last name - type: string - minLength: 1 - email: - description: User email address - type: string - format: email - password: - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - type: string - format: password - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - minLength: 8 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - userStatus: - description: User status - type: integer - required: - - id - - pet - - username - - firstName - - lastName - - email - - password - - phone - - userStatus - additionalProperties: false + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false '400': - description: Invalid username supplied + description: Invalid ID supplied '404': - description: User not found - put: + description: Pet not found + security: + - api_key: [] + post: tags: - - user - summary: Updated user - description: This can only be done by the logged in user. - operationId: updateUser + - pet + summary: Updates a pet in the store with form data + description: '' + operationId: updatePetWithForm parameters: - - name: username + - name: petId in: path - description: name that need to be deleted + description: ID of pet that needs to be updated required: true - x-type: string schema: - type: string + type: integer + format: int64 responses: - '400': - description: Invalid user supplied - '404': - description: User not found + '405': + description: Invalid input + security: + - petstore_auth: + - write:pets + - read:pets requestBody: content: - application/json: - x-type: - $omit: - - id - id: number::integer - pet: - - $ref: '#/components/x-types/Pet' - - $ref: '#/components/x-types/Tag' - username: string::min(4) - firstName: string::min(1) - lastName: string::min(1) - email: string::email - password: string::password::pattern(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/)::min(8) - phone: string::pattern(/^\+(?:[0-9]-?){6,14}[0-9]$/) - userStatus: number::integer - $descriptions: - username: User supplied username - firstName: User first name - lastName: User last name - email: User email address - password: User password, MUST contain a mix of upper and lower case letters, as well as digits - phone: User phone number in international format - userStatus: User status + application/x-www-form-urlencoded: schema: type: object properties: - pet: - anyOf: - - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id # wrong, should be omitted - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id # wrong, should be omitted - - name - - sub - additionalProperties: false + name: + description: Updated name of the pet + type: string + status: + description: Updated status of the pet + type: string + required: + - name + - status + additionalProperties: false + delete: + tags: + - pet + summary: Deletes a pet + description: '' + operationId: deletePet + parameters: + - name: api_key + in: header + required: false + example: Bearer + schema: + type: string + - name: petId + in: path + description: Pet id to delete + required: true + schema: + type: integer + format: int64 + responses: + '400': + description: Invalid pet value + security: + - petstore_auth: + - write:pets + - read:pets + /pet/{petId}/uploadImage: + post: + tags: + - pet + summary: uploads an image + description: '' + operationId: uploadFile + parameters: + - name: petId + in: path + description: ID of pet to update + required: true + schema: + type: integer + format: int64 + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + properties: + code: + type: integer + format: int32 + type: + type: string + message: + type: string + required: + - code + - type + - message + additionalProperties: false + security: + - petstore_auth: + - write:pets + - read:pets + requestBody: + content: + application/octet-stream: + schema: + type: string + format: binary + /pet/findByStatusPut: + get: + tags: + - pet + summary: Finds Pets by status + description: Multiple status values can be provided with comma separated strings + operationId: findPetsByStatus + parameters: + - name: status + in: query + description: Status values that need to be considered for filter + required: true + style: form + schema: + type: array + items: + type: string + enum: + - available + - pending + - sold + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: array + items: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 name: - description: The name given to a pet + description: Category name type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: + minLength: 1 + sub: + description: Test Sub Category type: object properties: - id: # wrong, should be omitted + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: description: Pet ID type: integer + format: int64 category: description: Categories this pet belongs to type: object properties: - id: # wrong, should be omitted + id: description: Category ID type: integer + format: int64 name: description: Category name type: string @@ -2522,7 +3666,7 @@ paths: - prop1 additionalProperties: false required: - - id # wrong, should be omitted + - id - name - sub additionalProperties: false @@ -2535,22 +3679,274 @@ paths: items: type: string format: url - friend: {} + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false tags: description: Tags attached to the pet type: array items: type: object properties: - id: # wrong, should be omitted + id: description: Tag ID type: integer + format: int64 name: description: Tag name type: string minLength: 1 required: - - id # wrong, should be omitted + - id - name additionalProperties: false status: @@ -2563,68 +3959,703 @@ paths: petType: description: Type of a pet type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive required: - name - photoUrls + - huntingSkill additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - minLength: 1 - required: - - id # wrong, should be omitted - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false tags: description: Tags attached to the pet type: array items: type: object properties: - id: # wrong, should be omitted + id: description: Tag ID type: integer + format: int64 name: description: Tag name type: string minLength: 1 required: - - id # wrong, should be omitted + - id - name additionalProperties: false status: @@ -2637,345 +4668,56 @@ paths: petType: description: Type of a pet type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive required: - name - photoUrls + - huntingSkill additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - type: object properties: - id: # wrong, should be omitted - description: Tag ID + id: + description: Pet ID type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false name: - description: Tag name - type: string - minLength: 1 - required: - - id # wrong, should be omitted - - name - additionalProperties: false - username: - description: User supplied username - type: string - minLength: 4 - firstName: - description: User first name - type: string - minLength: 1 - lastName: - description: User last name - type: string - minLength: 1 - email: - description: User email address - type: string - format: email - password: - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - type: string - format: password - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - minLength: 8 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - userStatus: - description: User status - type: integer - required: - - pet - - username - - firstName - - lastName - - email - - password - - phone - - userStatus - additionalProperties: false - description: Updated user object - required: true - delete: - tags: - - user - summary: Delete user - description: This can only be done by the logged in user. - operationId: deleteUser - parameters: - - name: username - in: path - description: The name that needs to be deleted - required: true - x-type: string - schema: - type: string - responses: - '400': - description: Invalid username supplied - '404': - description: User not found - /user/createWithArray: - post: - tags: - - user - summary: Creates list of users with given input array - description: '' - operationId: createUsersWithArrayInput - responses: - default: - description: successful operation - requestBody: - $ref: '#/components/requestBodies/UserArray' - /user/createWithList: - post: - tags: - - user - summary: Creates list of users with given input array - description: '' - operationId: createUsersWithListInput - responses: - default: - description: successful operation - requestBody: - $ref: '#/components/requestBodies/UserArray' - /user/login: - get: - tags: - - user - summary: Logs user into the system - description: '' - operationId: loginUser - parameters: - - name: username - in: query - description: The user name for login - required: true - x-type: string - schema: - type: string - - name: password - in: query - description: The password for login in clear text - required: true - x-type: string - schema: - type: string - responses: - '200': - description: successful operation - headers: - X-Rate-Limit: - description: calls per hour allowed by the user - schema: - type: integer - format: int32 - X-Expires-After: - description: date in UTC when token expires - schema: - type: string - format: date-time - content: - application/json: - examples: - response: - value: OK - x-type: string - schema: - type: string - application/xml: - examples: - response: - value: OK - x-type: string - schema: - type: string - text/plain: - examples: - response: - value: OK - '400': - description: Invalid username/password supplied - /user/logout: - get: - tags: - - user - summary: Logs out current logged in user session - description: '' - operationId: logoutUser - responses: - default: - description: successful operation -x-webhooks: - newPet: - post: - summary: New pet - description: Information about a new pet in the systems - operationId: newPet - tags: - - pet - requestBody: - content: - application/json: - x-type: - $omit: - - id - id: - - $ref: '#/components/x-types/Id' - - undefined - category: - - $ref: '#/components/x-types/Category' - - undefined - name: string - photoUrls: - $array: string::url - friend: - - $ref: '#/components/x-types/Pet' - - undefined - tags: - - $array: - $ref: '#/components/x-types/Tag' - - undefined - status: - - - available - - pending - - sold - - undefined - petType: - - string - - undefined - $discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - $descriptions: - id: Pet ID - category: Categories this pet belongs to - name: The name given to a pet - photoUrls: The list of URL to a cute photos featuring pet - tags: Tags attached to the pet - status: Pet status in the store - petType: Type of a pet - schema: - type: object - properties: - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id # wrong, should be omitted - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id # wrong, should be omitted - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id # wrong, should be omitted - - name - - sub - additionalProperties: false - name: - description: The name given to a pet + description: The name given to a pet type: string photoUrls: description: The list of URL to a cute photos featuring pet @@ -2983,25 +4725,39350 @@ x-webhooks: items: type: string format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id # wrong, should be omitted - - name - additionalProperties: false - status: + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + '400': + description: Invalid status value + security: + - petstore_auth: + - write:pets + - read:pets + /GETCustomers/findByTags: + get: + tags: + - pet + summary: Finds Pets by tags + description: Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + operationId: findPetsByTags + deprecated: true + parameters: + - name: tags + in: query + description: Tags to filter by + required: true + style: form + schema: + type: array + items: + type: string + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: array + items: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + '400': + description: Invalid tag value + security: + - petstore_auth: + - write:pets + - read:pets + /store/inventory: + get: + tags: + - store + summary: Returns pet inventories by status + description: Returns a map of status codes to quantities + operationId: getInventory + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + properties: {} + required: [] + additionalProperties: + type: integer + format: int32 + security: + - api_key: [] + /store/order: + post: + tags: + - store + summary: Place an order for a pet + description: '' + operationId: placeOrder + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + properties: + id: + description: Order ID + type: integer + format: int64 + petId: + description: Pet ID + type: integer + format: int64 + quantity: + type: integer + format: int32 + minimum: 1 + shipDate: + description: Estimated ship date + type: string + format: date-time + status: + description: Order Status + type: string + enum: + - placed + - approved + - delivered + complete: + description: Indicates whenever order was completed or not + type: boolean + required: + - id + - petId + - quantity + - shipDate + - status + - complete + additionalProperties: false + '400': + description: Invalid Order + content: + application/json: + example: + status: 400 + message: Invalid Order + requestBody: + content: + application/json: + schema: + type: object + properties: + quantity: + type: integer + format: int32 + minimum: 1 + shipDate: + description: Estimated ship date + type: string + format: date-time + status: + description: Order Status + type: string + enum: + - placed + - approved + - delivered + requestId: + description: Unique Request Id + type: string + required: + - quantity + - shipDate + - status + - requestId + additionalProperties: false + description: order placed for purchasing the pet + required: true + /store/order/{orderId}: + get: + tags: + - store + summary: Find purchase order by ID + description: For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + operationId: getOrderById + parameters: + - name: orderId + in: path + description: ID of pet that needs to be fetched + required: true + schema: + type: integer + format: int64 + minimum: 1 + maximum: 5 + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + properties: + id: + description: Order ID + type: integer + format: int64 + petId: + description: Pet ID + type: integer + format: int64 + quantity: + type: integer + format: int32 + minimum: 1 + shipDate: + description: Estimated ship date + type: string + format: date-time + status: + description: Order Status + type: string + enum: + - placed + - approved + - delivered + complete: + description: Indicates whenever order was completed or not + type: boolean + required: + - id + - petId + - quantity + - shipDate + - status + - complete + additionalProperties: false + '400': + description: Invalid ID supplied + '404': + description: Order not found + delete: + tags: + - store + summary: Delete purchase order by ID + description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + operationId: deleteOrder + parameters: + - name: orderId + in: path + description: ID of the order that needs to be deleted + required: true + schema: + type: string + minLength: 1 + responses: + '400': + description: Invalid ID supplied + '404': + description: Order not found + /store/subscribe: + post: + tags: + - store + summary: Subscribe to the Store events + description: Add subscription for a store events + requestBody: + content: + application/json: + schema: + type: object + properties: + callbackUrl: + description: This URL will be called by the server when the desired event will occur + type: string + format: uri + eventName: + description: Event name for the subscription + type: string + enum: + - orderInProgress + - orderShipped + - orderDelivered + required: + - callbackUrl + - eventName + additionalProperties: false + responses: + '201': + description: Subscription added + content: + application/json: + schema: + type: object + properties: + subscriptionId: + type: string + required: + - subscriptionId + additionalProperties: false + callbacks: + orderInProgress: + '{$request.body#/callbackUrl}?event={$request.body#/eventName}': + servers: + - url: //callback-url.path-level/v1 + description: Path level server 1 + - url: //callback-url.path-level/v2 + description: Path level server 2 + post: + summary: Order in Progress (Summary) + description: A callback triggered every time an Order is updated status to "inProgress" (Description) + externalDocs: + description: Find out more + url: https://more-details.com/demo + requestBody: + content: + application/json: + schema: + type: object + properties: + orderId: + type: string + timestamp: + type: string + format: date-time + status: + type: string + required: + - orderId + - timestamp + - status + additionalProperties: false + responses: + '200': + description: Callback successfully processed and no retries will be performed + content: + application/json: + schema: + type: object + properties: + someProp: + type: string + required: + - someProp + additionalProperties: false + '299': + description: Response for cancelling subscription + '500': + description: Callback processing failed and retries will be performed + x-codeSamples: + - lang: C# + source: | + PetStore.v1.Pet pet = new PetStore.v1.Pet(); + pet.setApiKey("your api key"); + pet.petType = PetStore.v1.Pet.TYPE_DOG; + pet.name = "Rex"; + // set other fields + PetStoreResponse response = pet.create(); + if (response.statusCode == HttpStatusCode.Created) + { + // Successfully created + } + else + { + // Something wrong -- check response for errors + Console.WriteLine(response.getRawResponse()); + } + - lang: PHP + source: | + $form = new \PetStore\Entities\Pet(); + $form->setPetType("Dog"); + $form->setName("Rex"); + // set other fields + try { + $pet = $client->pets()->create($form); + } catch (UnprocessableEntityException $e) { + var_dump($e->getErrors()); + } + put: + description: Order in Progress (Only Description) + servers: + - url: //callback-url.operation-level/v1 + description: Operation level server 1 (Operation override) + - url: //callback-url.operation-level/v2 + description: Operation level server 2 (Operation override) + requestBody: + content: + application/json: + schema: + type: object + properties: + orderId: + type: string + timestamp: + type: string + format: date-time + status: + type: string + required: + - orderId + - timestamp + - status + additionalProperties: false + responses: + '200': + description: Callback successfully processed and no retries will be performed + content: + application/json: + schema: + type: object + properties: + someProp: + type: string + required: + - someProp + additionalProperties: false + orderShipped: + '{$request.body#/callbackUrl}?event={$request.body#/eventName}': + post: + description: | + Very long description + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis + nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu + fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. + requestBody: + content: + application/json: + schema: + type: object + properties: + orderId: + type: string + timestamp: + type: string + format: date-time + estimatedDeliveryDate: + type: string + format: date-time + required: + - orderId + - timestamp + - estimatedDeliveryDate + additionalProperties: false + responses: + '200': + description: Callback successfully processed and no retries will be performed + orderDelivered: + http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}: + post: + deprecated: true + summary: Order delivered + description: A callback triggered every time an Order is delivered to the recipient + requestBody: + content: + application/json: + schema: + type: object + properties: + orderId: + type: string + timestamp: + type: string + format: date-time + required: + - orderId + - timestamp + additionalProperties: false + responses: + '200': + description: Callback successfully processed and no retries will be performed + /user: + post: + tags: + - user + summary: Create user + description: This can only be done by the logged in user. + operationId: createUser + responses: + default: + description: successful operation + requestBody: + content: + application/json: + schema: + type: object + properties: + pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + - type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + username: + description: User supplied username + type: string + minLength: 4 + firstName: + description: User first name + type: string + minLength: 1 + lastName: + description: User last name + type: string + minLength: 1 + email: + description: User email address + type: string + format: email + password: + description: User password, MUST contain a mix of upper and lower case letters, as well as digits + type: string + format: password + pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ + minLength: 8 + phone: + description: User phone number in international format + type: string + pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ + userStatus: + description: User status + type: integer + format: int32 + required: + - pet + - username + - firstName + - lastName + - email + - password + - phone + - userStatus + additionalProperties: false + description: Created user object + required: true + /user/{username}: + get: + tags: + - user + summary: Get user by user name + description: '' + operationId: getUserByName + parameters: + - name: username + in: path + description: 'The name that needs to be fetched. Use user1 for testing. ' + required: true + schema: + type: string + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + properties: + id: + type: integer + format: int64 + pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + - type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + username: + description: User supplied username + type: string + minLength: 4 + firstName: + description: User first name + type: string + minLength: 1 + lastName: + description: User last name + type: string + minLength: 1 + email: + description: User email address + type: string + format: email + password: + description: User password, MUST contain a mix of upper and lower case letters, as well as digits + type: string + format: password + pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ + minLength: 8 + phone: + description: User phone number in international format + type: string + pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ + userStatus: + description: User status + type: integer + format: int32 + required: + - id + - pet + - username + - firstName + - lastName + - email + - password + - phone + - userStatus + additionalProperties: false + '400': + description: Invalid username supplied + '404': + description: User not found + put: + tags: + - user + summary: Updated user + description: This can only be done by the logged in user. + operationId: updateUser + parameters: + - name: username + in: path + description: name that need to be deleted + required: true + schema: + type: string + responses: + '400': + description: Invalid user supplied + '404': + description: User not found + requestBody: + content: + application/json: + schema: + type: object + properties: + pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + - type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + username: + description: User supplied username + type: string + minLength: 4 + firstName: + description: User first name + type: string + minLength: 1 + lastName: + description: User last name + type: string + minLength: 1 + email: + description: User email address + type: string + format: email + password: + description: User password, MUST contain a mix of upper and lower case letters, as well as digits + type: string + format: password + pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ + minLength: 8 + phone: + description: User phone number in international format + type: string + pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ + userStatus: + description: User status + type: integer + format: int32 + required: + - pet + - username + - firstName + - lastName + - email + - password + - phone + - userStatus + additionalProperties: false + description: Updated user object + required: true + delete: + tags: + - user + summary: Delete user + description: This can only be done by the logged in user. + operationId: deleteUser + parameters: + - name: username + in: path + description: The name that needs to be deleted + required: true + schema: + type: string + responses: + '400': + description: Invalid username supplied + '404': + description: User not found + /user/createWithArray: + post: + tags: + - user + summary: Creates list of users with given input array + description: '' + operationId: createUsersWithArrayInput + responses: + default: + description: successful operation + requestBody: + $ref: '#/components/requestBodies/UserArray' + /user/createWithList: + post: + tags: + - user + summary: Creates list of users with given input array + description: '' + operationId: createUsersWithListInput + responses: + default: + description: successful operation + requestBody: + $ref: '#/components/requestBodies/UserArray' + /user/login: + get: + tags: + - user + summary: Logs user into the system + description: '' + operationId: loginUser + parameters: + - name: username + in: query + description: The user name for login + required: true + schema: + type: string + - name: password + in: query + description: The password for login in clear text + required: true + schema: + type: string + responses: + '200': + description: successful operation + headers: + X-Rate-Limit: + description: calls per hour allowed by the user + schema: + type: integer + format: int32 + X-Expires-After: + description: date in UTC when token expires + schema: + type: string + format: date-time + content: + application/json: + examples: + response: + value: OK + schema: + type: string + application/xml: + examples: + response: + value: OK + schema: + type: string + text/plain: + examples: + response: + value: OK + '400': + description: Invalid username/password supplied + /user/logout: + get: + tags: + - user + summary: Logs out current logged in user session + description: '' + operationId: logoutUser + responses: + default: + description: successful operation +x-webhooks: + newPet: + post: + summary: New pet + description: Information about a new pet in the systems + operationId: newPet + tags: + - pet + requestBody: + content: + application/json: + schema: + anyOf: + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + responses: + '200': + description: Return a 200 status to indicate that the data was received successfully +components: + requestBodies: + Pet: + content: + application/json: + schema: + anyOf: + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + UserArray: + content: + application/json: + schema: + type: array + items: + type: object + properties: + pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + - type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + username: + description: User supplied username + type: string + minLength: 4 + firstName: + description: User first name + type: string + minLength: 1 + lastName: + description: User last name + type: string + minLength: 1 + email: + description: User email address + type: string + format: email + password: + description: User password, MUST contain a mix of upper and lower case letters, as well as digits + type: string + format: password + pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ + minLength: 8 + phone: + description: User phone number in international format + type: string + pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ + userStatus: + description: User status + type: integer + format: int32 + required: + - pet + - username + - firstName + - lastName + - email + - password + - phone + - userStatus + additionalProperties: false + description: List of user object + required: true + securitySchemes: + petstore_auth: + description: | + Get access to data while protecting your account credentials. + OAuth2 is also a safer and more secure way to give you access. + type: oauth2 + flows: + implicit: + authorizationUrl: http://petstore.swagger.io/api/oauth/dialog + scopes: + write:pets: modify pets in your account + read:pets: read your pets + api_key: + description: | + For this sample, you can use the api key `special-key` to test the authorization filters. + type: apiKey + name: api_key + in: header + examples: + Order: + value: + quantity: 1 + shipDate: '2018-10-19T16:46:45Z' + status: placed + complete: false + schemas: + ApiResponse: + type: object + properties: + code: + type: integer + format: int32 + type: + type: string + message: + type: string + required: + - code + - type + - message + additionalProperties: false + Cat: + type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + Category: + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + Dog: + type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + HoneyBee: + type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + Id: + type: integer + format: int64 + Order: + type: object + properties: + id: + description: Order ID + type: integer + format: int64 + petId: + description: Pet ID + type: integer + format: int64 + quantity: + type: integer + format: int32 + minimum: 1 + shipDate: + description: Estimated ship date + type: string + format: date-time + status: + description: Order Status + type: string + enum: + - placed + - approved + - delivered + complete: + description: Indicates whenever order was completed or not + type: boolean + requestId: + description: Unique Request Id + type: string + required: + - id + - petId + - quantity + - shipDate + - status + - complete + - requestId + additionalProperties: false + Pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - {} + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - {} + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - type: object + properties: + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + petType: + type: string + enum: + - bee + required: + - honeyPerDay + - petType + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + petType: + type: string + enum: + - cat + required: + - huntingSkill + - petType + additionalProperties: false + - type: object + properties: + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + petType: + type: string + enum: + - dog + required: + - packSize + - petType + additionalProperties: false + - {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + Base_Pet: + type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + required: + - name + - photoUrls + additionalProperties: false + Tag: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + User: + type: object + properties: + id: + type: integer + format: int64 + pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: description: Pet status in the store type: string enum: @@ -3011,62 +44078,26 @@ x-webhooks: petType: description: Type of a pet type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number required: - name - photoUrls + - honeyPerDay additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' tags: description: Tags attached to the pet type: array items: type: object properties: - id: # wrong, should be omitted + id: description: Tag ID type: integer + format: int64 name: description: Tag name type: string @@ -3085,581 +44116,1837 @@ x-webhooks: petType: description: Type of a pet type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive required: - name - photoUrls + - huntingSkill additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - responses: - '200': - description: Return a 200 status to indicate that the data was received successfully -components: - schemas: - ApiResponse: - type: object - properties: - code: - type: integer - format: int32 - type: - type: string - message: - type: string - Cat: - description: A representation of a cat - allOf: - - $ref: '#/components/schemas/Pet' - - type: object - properties: - huntingSkill: - type: string - description: The measured skill for hunting - default: lazy - example: adventurous - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - huntingSkill - Category: - type: object - properties: - id: - description: Category ID - allOf: - - $ref: '#/components/schemas/Id' - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - type: string - description: Dumb Property - xml: - name: Category - Dog: - description: A representation of a dog - allOf: - - $ref: '#/components/schemas/Pet' - - type: object - properties: - packSize: - type: integer - format: int32 - description: The size of the pack the dog is from - default: 1 - minimum: 1 - required: - - packSize - HoneyBee: - description: A representation of a honey bee - allOf: - - $ref: '#/components/schemas/Pet' - - type: object - properties: - honeyPerDay: - type: number - description: Average amount of honey produced per day in ounces - example: 3.14 - multipleOf: 0.01 - required: - - honeyPerDay - Id: - type: integer - format: int64 - readOnly: true - Order: - type: object - properties: - id: - description: Order ID - allOf: - - $ref: '#/components/schemas/Id' - petId: - description: Pet ID - allOf: - - $ref: '#/components/schemas/Id' - quantity: - type: integer - format: int32 - minimum: 1 - default: 1 - shipDate: - description: Estimated ship date - type: string - format: date-time - status: - type: string - description: Order Status - enum: - - placed - - approved - - delivered - complete: - description: Indicates whenever order was completed or not - type: boolean - default: false - readOnly: true - requestId: - description: Unique Request Id - type: string - writeOnly: true - xml: - name: Order - Pet: - type: object - required: - - name - - photoUrls - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - properties: - id: - externalDocs: - description: Find more info here - url: https://example.com - description: Pet ID - allOf: - - $ref: '#/components/schemas/Id' - category: - description: Categories this pet belongs to - allOf: - - $ref: '#/components/schemas/Category' - name: - description: The name given to a pet - type: string - example: Guru - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - maxItems: 20 - xml: - name: photoUrl - wrapped: true - items: - type: string - format: url - friend: - allOf: - - $ref: '#/components/schemas/Pet' - tags: - description: Tags attached to the pet - type: array - minItems: 1 - xml: - name: tag - wrapped: true - items: - $ref: '#/components/schemas/Tag' - status: - type: string - description: Pet status in the store - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - xml: - name: Pet - Tag: - type: object - properties: - id: - description: Tag ID - allOf: - - $ref: '#/components/schemas/Id' - name: - description: Tag name - type: string - minLength: 1 - xml: - name: Tag - User: - type: object - properties: - id: - $ref: '#/components/schemas/Id' - pet: - oneOf: - - $ref: '#/components/schemas/Pet' - - $ref: '#/components/schemas/Tag' - username: - description: User supplied username - type: string - minLength: 4 - example: John78 - firstName: - description: User first name - type: string - minLength: 1 - example: John - lastName: - description: User last name - type: string - minLength: 1 - example: Smith - email: - description: User email address - type: string - format: email - example: john.smith@example.com - password: - type: string - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - format: password - minLength: 8 - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - example: drowssaP123 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - example: +1-202-555-0192 - userStatus: - description: User status - type: integer - format: int32 - xml: - name: User - requestBodies: - Pet: - content: - application/json: - x-type: - $omit: - - id - id: - - $ref: '#/components/x-types/Id' - - undefined - category: - - $ref: '#/components/x-types/Category' - - undefined - name: string - photoUrls: - $array: string::url - friend: - - $ref: '#/components/x-types/Pet' - - undefined - tags: - - $array: - $ref: '#/components/x-types/Tag' - - undefined - status: - - - available - - pending - - sold - - undefined - petType: - - string - - undefined - $discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - $descriptions: - id: Pet ID - category: Categories this pet belongs to - name: The name given to a pet - photoUrls: The list of URL to a cute photos featuring pet - tags: Tags attached to the pet - status: Pet status in the store - petType: Type of a pet - schema: - type: object - properties: - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet type: string - format: url - friend: - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: type: object properties: - id: # wrong, should be omitted - description: Category ID + id: + description: Tag ID type: integer + format: int64 name: - description: Category name + description: Tag name type: string minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false required: - id - name - - sub additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name type: string - format: url - friend: - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object - properties: - id: # wrong, should be omitted - description: Category ID - type: integer - name: - description: Category name + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: type: string - minLength: 1 - sub: - description: Test Sub Category + format: url + friend: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + tags: + description: Tags attached to the pet + type: array + items: type: object properties: - prop1: - description: Dumb Property + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name type: string + minLength: 1 required: - - prop1 + - id + - name additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: + status: + description: Pet status in the store type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name + enum: + - available + - pending + - sold + petType: + description: Type of a pet type: string - minLength: 1 + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 required: - - id - name + - photoUrls + - packSize additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - UserArray: - content: - application/json: - x-type: - $array: - $omit: - - id - id: number::integer - pet: - - $ref: '#/components/x-types/Pet' - - $ref: '#/components/x-types/Tag' - username: string::min(4) - firstName: string::min(1) - lastName: string::min(1) - email: string::email - password: string::password::pattern(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/)::min(8) - phone: string::pattern(/^\+(?:[0-9]-?){6,14}[0-9]$/) - userStatus: number::integer - $descriptions: - username: User supplied username - firstName: User first name - lastName: User last name - email: User email address - password: User password, MUST contain a mix of upper and lower case letters, as well as digits - phone: User phone number in international format - userStatus: User status - schema: - type: array - items: - type: object - properties: - pet: - anyOf: - type: object properties: - id: # wrong, should be omitted + id: description: Pet ID type: integer + format: int64 category: description: Categories this pet belongs to type: object properties: - id: # wrong, should be omitted + id: description: Category ID type: integer + format: int64 name: description: Category name type: string @@ -3689,59 +45976,190 @@ components: type: string format: url friend: - type: object - properties: - id: # wrong, should be omitted - description: Pet ID - type: integer - category: - description: Categories this pet belongs to - type: object + anyOf: + - type: object properties: - id: # wrong, should be omitted - description: Category ID + id: + description: Pet ID type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false name: - description: Category name + description: The name given to a pet type: string - minLength: 1 - sub: - description: Test Sub Category + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to type: object properties: - prop1: - description: Dumb Property + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: - - prop1 + - id + - name + - sub additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 required: - - id - name - - sub + - photoUrls + - packSize additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - type: object + - type: object properties: - id: # wrong, should be omitted + id: description: Pet ID type: integer + format: int64 category: description: Categories this pet belongs to type: object properties: - id: # wrong, should be omitted + id: description: Category ID type: integer + format: int64 name: description: Category name type: string @@ -3777,9 +46195,10 @@ components: items: type: object properties: - id: # wrong, should be omitted + id: description: Tag ID type: integer + format: int64 name: description: Tag name type: string @@ -3798,62 +46217,26 @@ components: petType: description: Type of a pet type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number required: - name - photoUrls + - honeyPerDay additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - required: - - name - - photoUrls - additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' tags: description: Tags attached to the pet type: array items: type: object properties: - id: # wrong, should be omitted + id: description: Tag ID type: integer + format: int64 name: description: Tag name type: string @@ -3872,217 +46255,109 @@ components: petType: description: Type of a pet type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number required: - name - photoUrls + - honeyPerDay additionalProperties: false - discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - - type: object - properties: - id: # wrong, should be omitted - description: Tag ID - type: integer - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - username: - description: User supplied username + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store type: string - minLength: 4 - firstName: - description: User first name + enum: + - available + - pending + - sold + petType: + description: Type of a pet type: string - minLength: 1 - lastName: - description: User last name + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + - type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name type: string minLength: 1 - email: - description: User email address - type: string - format: email - password: - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - type: string - format: password - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - minLength: 8 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - userStatus: - description: User status - type: integer required: - - pet - - username - - firstName - - lastName - - email - - password - - phone - - userStatus + - id + - name additionalProperties: false - description: List of user object - required: true - securitySchemes: - petstore_auth: - description: | - Get access to data while protecting your account credentials. - OAuth2 is also a safer and more secure way to give you access. - type: oauth2 - flows: - implicit: - authorizationUrl: http://petstore.swagger.io/api/oauth/dialog - scopes: - write:pets: modify pets in your account - read:pets: read your pets - api_key: - description: | - For this sample, you can use the api key `special-key` to test the authorization filters. - type: apiKey - name: api_key - in: header - examples: - Order: - value: - quantity: 1 - shipDate: '2018-10-19T16:46:45Z' - status: placed - complete: false - x-types: - ApiResponse: - code: number::integer - type: string - message: string - Cat: - $and: - - $ref: '#/components/x-types/Pet' - - huntingSkill: - - clueless - - lazy - - adventurous - - aggressive - $descriptions: - huntingSkill: The measured skill for hunting - Category: - id: number::integer - name: string::min(1) - sub: - prop1: string - $descriptions: - prop1: Dumb Property - $descriptions: - id: Category ID - name: Category name - sub: Test Sub Category - Dog: - $and: - - $ref: '#/components/x-types/Pet' - - packSize: number::integer::min(1) - $descriptions: - packSize: The size of the pack the dog is from - HoneyBee: - $and: - - $ref: '#/components/x-types/Pet' - - honeyPerDay: number - $descriptions: - honeyPerDay: Average amount of honey produced per day in ounces - Id: number::integer - Order: - id: number::integer - petId: number::integer - quantity: number::integer::min(1) - shipDate: string::date-time - status: - - placed - - approved - - delivered - complete: boolean - requestId: string - $descriptions: - id: Order ID - petId: Pet ID - shipDate: Estimated ship date - status: Order Status - complete: Indicates whenever order was completed or not - requestId: Unique Request Id - Pet: - id: - - $ref: '#/components/x-types/Id' - - undefined - category: - - $ref: '#/components/x-types/Category' - - undefined - name: string - photoUrls: - $array: string::url - friend: - - $ref: '#/components/x-types/Pet' - - undefined - tags: - - $array: - $ref: '#/components/x-types/Tag' - - undefined - status: - - - available - - pending - - sold - - undefined - petType: - - string - - undefined - $discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - $descriptions: - id: Pet ID - category: Categories this pet belongs to - name: The name given to a pet - photoUrls: The list of URL to a cute photos featuring pet - tags: Tags attached to the pet - status: Pet status in the store - petType: Type of a pet - Tag: - id: number::integer - name: string::min(1) - $descriptions: - id: Tag ID - name: Tag name - User: - id: number::integer - pet: - - $ref: '#/components/x-types/Pet' - - $ref: '#/components/x-types/Tag' - username: string::min(4) - firstName: string::min(1) - lastName: string::min(1) - email: string::email - password: string::password::pattern(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/)::min(8) - phone: string::pattern(/^\+(?:[0-9]-?){6,14}[0-9]$/) - userStatus: number::integer - $descriptions: - username: User supplied username - firstName: User first name - lastName: User last name - email: User email address - password: User password, MUST contain a mix of upper and lower case letters, as well as digits - phone: User phone number in international format - userStatus: User status + username: + description: User supplied username + type: string + minLength: 4 + firstName: + description: User first name + type: string + minLength: 1 + lastName: + description: User last name + type: string + minLength: 1 + email: + description: User email address + type: string + format: email + password: + description: User password, MUST contain a mix of upper and lower case letters, as well as digits + type: string + format: password + pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ + minLength: 8 + phone: + description: User phone number in international format + type: string + pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ + userStatus: + description: User status + type: integer + format: int32 + required: + - id + - pet + - username + - firstName + - lastName + - email + - password + - phone + - userStatus + additionalProperties: false x-tagGroups: - name: General tags: diff --git a/applications/resources/pets.yaml b/applications/resources/pets.yaml index 7aa0376..fa467f5 100644 --- a/applications/resources/pets.yaml +++ b/applications/resources/pets.yaml @@ -81,7 +81,6 @@ paths: schema: type: string default: en-AU - x-type: string - name: cookieParam in: cookie description: Some cookie @@ -89,7 +88,6 @@ paths: schema: type: integer format: int64 - x-type: number::integer post: tags: - pet @@ -182,7 +180,6 @@ paths: schema: type: integer format: int64 - x-type: number::integer responses: '200': description: successful operation @@ -190,9 +187,6 @@ paths: application/json: schema: $ref: '#/components/schemas/Pet' - x-type: - $ref: '#/components/x-types/Pet' - '400': description: Invalid ID supplied '404': @@ -213,7 +207,6 @@ paths: schema: type: integer format: int64 - x-type: number::integer responses: '405': description: Invalid input @@ -233,12 +226,6 @@ paths: status: description: Updated status of the pet type: string - x-type: - name: string - status: string - $descriptions: - name: Updated name of the pet - status: Updated status of the pet delete: tags: - pet @@ -251,7 +238,6 @@ paths: required: false schema: type: string - x-type: string example: Bearer - name: petId in: path @@ -260,7 +246,6 @@ paths: schema: type: integer format: int64 - x-type: number::integer responses: '400': description: Invalid pet value @@ -283,7 +268,6 @@ paths: schema: type: integer format: int64 - x-type: number::integer responses: '200': description: successful operation @@ -291,8 +275,6 @@ paths: application/json: schema: $ref: '#/components/schemas/ApiResponse' - x-type: - $ref: '#/components/x-types/ApiResponse' security: - petstore_auth: - write:pets @@ -303,7 +285,6 @@ paths: schema: type: string format: binary - x-type: string::binary /pet/findByStatusPut: get: tags: @@ -328,11 +309,6 @@ paths: - pending - sold default: available - x-type: - $array: - - available - - pending - - sold responses: '200': description: successful operation @@ -342,9 +318,6 @@ paths: type: array items: $ref: '#/components/schemas/Pet' - x-type: - $array: - $ref: '#/components/x-types/Pet' '400': description: Invalid status value security: @@ -369,8 +342,6 @@ paths: type: array items: type: string - x-type: - $array: string responses: '200': description: successful operation @@ -380,9 +351,6 @@ paths: type: array items: $ref: '#/components/schemas/Pet' - x-type: - $array: - $ref: '#/components/x-types/Pet' '400': description: Invalid tag value security: @@ -406,8 +374,6 @@ paths: additionalProperties: type: integer format: int32 - x-type: - $record: number::integer security: - api_key: [] /store/order: @@ -424,10 +390,6 @@ paths: application/json: schema: $ref: '#/components/schemas/Order' - x-type: - $ref: '#/components/x-types/Order' - $omit: - - requestId '400': description: Invalid Order content: @@ -440,12 +402,6 @@ paths: application/json: schema: $ref: '#/components/schemas/Order' - x-type: - $ref: '#/components/x-types/Order' - $omit: - - id - - petId - - complete description: order placed for purchasing the pet required: true /store/order/{orderId}: @@ -465,7 +421,6 @@ paths: format: int64 minimum: 1 maximum: 5 - x-type: number::integer::min(1)::max(5) responses: '200': description: successful operation @@ -473,10 +428,6 @@ paths: application/json: schema: $ref: '#/components/schemas/Order' - x-type: - $ref: '#/components/x-types/Order' - $omit: - - requestId '400': description: Invalid ID supplied '404': @@ -495,7 +446,6 @@ paths: schema: type: string minimum: 1 - x-type: string::min(1) responses: '400': description: Invalid ID supplied @@ -529,15 +479,6 @@ paths: required: - callbackUrl - eventName - x-type: - callbackUrl: string::uri - eventName: - - orderInProgress - - orderShipped - - orderDelivered - $descriptions: - callbackUrl: This URL will be called by the server when the desired event will occur - eventName: Event name for the subscription responses: '201': description: Subscription added @@ -549,8 +490,6 @@ paths: subscriptionId: type: string example: AAA-123-BBB-456 - x-type: - subscriptionId: string callbacks: orderInProgress: '{$request.body#/callbackUrl}?event={$request.body#/eventName}': @@ -581,10 +520,6 @@ paths: status: type: string example: inProgress - x-type: - orderId: string - timestamp: string::date-time - status: string responses: '200': description: Callback successfully processed and no retries will be performed @@ -596,11 +531,6 @@ paths: someProp: type: string example: '123' - x-type: - someProp: string - $descriptions: - someProp: | - Example: `123` '299': description: Response for cancelling subscription '500': @@ -657,10 +587,6 @@ paths: status: type: string example: inProgress - x-type: - orderId: string - timestamp: string::date-time - status: string responses: '200': description: Callback successfully processed and no retries will be performed @@ -672,8 +598,6 @@ paths: someProp: type: string example: '123' - x-type: - someProp: string orderShipped: '{$request.body#/callbackUrl}?event={$request.body#/eventName}': post: @@ -702,10 +626,6 @@ paths: type: string format: date-time example: '2018-11-11T16:00:00Z' - x-type: - orderId: string - timestamp: string::date-time - estimatedDeliveryDate: string::date-time responses: '200': description: Callback successfully processed and no retries will be performed @@ -728,9 +648,6 @@ paths: type: string format: date-time example: '2018-10-19T16:46:45Z' - x-type: - orderId: string - timestamp: string::date-time responses: '200': description: Callback successfully processed and no retries will be performed @@ -749,8 +666,6 @@ paths: application/json: schema: $ref: '#/components/schemas/User' - x-type: - $ref: '#/components/x-types/WriteonlyUser' description: Created user object required: true /user/{username}: @@ -767,7 +682,6 @@ paths: required: true schema: type: string - x-type: string responses: '200': description: successful operation @@ -775,8 +689,6 @@ paths: application/json: schema: $ref: '#/components/schemas/User' - x-type: - $ref: '#/components/x-types/User' '400': description: Invalid username supplied '404': @@ -794,7 +706,6 @@ paths: required: true schema: type: string - x-type: string responses: '400': description: Invalid user supplied @@ -805,8 +716,6 @@ paths: application/json: schema: $ref: '#/components/schemas/User' - x-type: - $ref: '#/components/x-types/WriteonlyUser' description: Updated user object required: true delete: @@ -822,7 +731,6 @@ paths: required: true schema: type: string - x-type: string responses: '400': description: Invalid username supplied @@ -866,14 +774,12 @@ paths: required: true schema: type: string - x-type: string - name: password in: query description: The password for login in clear text required: true schema: type: string - x-type: string responses: '200': description: successful operation @@ -895,14 +801,12 @@ paths: examples: response: value: OK - x-type: string application/xml: schema: type: string examples: response: value: OK - x-type: string text/plain: examples: response: @@ -932,8 +836,6 @@ x-webhooks: application/json: schema: $ref: '#/components/schemas/Pet' - x-type: - $ref: '#/components/x-types/WriteonlyPet' responses: '200': description: Return a 200 status to indicate that the data was received successfully @@ -1183,8 +1085,6 @@ components: application/json: schema: $ref: '#/components/schemas/Pet' - x-type: - $ref: '#/components/x-types/WriteonlyPet' UserArray: content: application/json: @@ -1192,9 +1092,6 @@ components: type: array items: $ref: '#/components/schemas/User' - x-type: - $array: - $ref: '#/components/x-types/WriteonlyUser' description: List of user object required: true securitySchemes: @@ -1222,154 +1119,6 @@ components: shipDate: '2018-10-19T16:46:45Z' status: placed complete: false - x-types: - ApiResponse: - code: number::integer - type: string - message: string - Cat: - $and: - - $ref: '#/components/x-types/Pet' - - huntingSkill: - - clueless - - lazy - - adventurous - - aggressive - $descriptions: - huntingSkill: The measured skill for hunting - Category: - id: number::integer - name: string::min(1) - sub: - prop1: string - $descriptions: - prop1: Dumb Property - $descriptions: - id: Category ID - name: Category name - sub: Test Sub Category - Dog: - $and: - - $ref: '#/components/x-types/Pet' - - packSize: number::integer::min(1) - $descriptions: - packSize: The size of the pack the dog is from - HoneyBee: - $and: - - $ref: '#/components/x-types/Pet' - - honeyPerDay: number - $descriptions: - honeyPerDay: Average amount of honey produced per day in ounces - Id: number::integer # Read-only - Order: - id: number::integer # Read-only - petId: number::integer # Read-only - quantity: number::integer::min(1) - shipDate: string::date-time - status: - - placed - - approved - - delivered - complete: boolean # Read-only - requestId: string # Write-only - $descriptions: - id: Order ID - petId: Pet ID - shipDate: Estimated ship date - status: Order Status - complete: Indicates whenever order was completed or not - requestId: Unique Request Id - Pet: - id: # Read-only - - $ref: '#/components/x-types/Id' - - undefined - category: - - $ref: '#/components/x-types/Category' - - undefined - name: string - photoUrls: - $array: string::url - friend: - - $ref: '#/components/x-types/Pet' - - undefined - tags: - - $array: - $ref: '#/components/x-types/Tag' - - undefined - status: - - - available - - pending - - sold - - undefined - petType: - - string - - undefined - $discriminator: - propertyName: petType - mapping: - cat: '#/components/schemas/Cat' - dog: '#/components/schemas/Dog' - bee: '#/components/schemas/HoneyBee' - $descriptions: - id: Pet ID - category: Categories this pet belongs to - name: The name given to a pet - photoUrls: The list of URL to a cute photos featuring pet - tags: Tags attached to the pet - status: Pet status in the store - petType: Type of a pet - WriteonlyPet: - $and: - - $ref: '#/components/x-types/Pet' - $omit: - - id - - friend # TODO: is it required to omit? - - tags # TODO: is it required to omit? - - friend: - - $ref: '#/components/x-types/WriteonlyPet' - - undefined - tags: - - $array: - $ref: '#/components/x-types/WriteonlyTag' - - undefined - Tag: - id: number::integer # Read-only - name: string::min(1) - $descriptions: - id: Tag ID - name: Tag name - WriteonlyTag: - $ref: '#/components/x-types/Tag' - $omit: id - User: - id: number::integer # Read-only - pet: - - $ref: '#/components/x-types/Pet' - - $ref: '#/components/x-types/Tag' - username: string::min(4) - firstName: string::min(1) - lastName: string::min(1) - email: string::email - password: string::password::pattern(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/)::min(8) - phone: string::pattern(/^\+(?:[0-9]-?){6,14}[0-9]$/) - userStatus: number::integer - $descriptions: - username: User supplied username - firstName: User first name - lastName: User last name - email: User email address - password: User password, MUST contain a mix of upper and lower case letters, as well as digits - phone: User phone number in international format - userStatus: User status - WriteonlyUser: - $and: - - $ref: '#/components/x-types/User' - $omit: - - id - - pet - - pet: - - $ref: '#/components/x-types/WriteonlyPet' - - $ref: '#/components/x-types/WriteonlyTag' x-tagGroups: - name: General tags: diff --git a/package.json b/package.json index b00531e..b5095fe 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "prettier:check": "npx prettier --check \"**/*.{js,html,yaml,css,md,json}\"", "prettier": "npx prettier --write \"**/*.{js,html,yaml,css,md,json}\"", "pets:to-x-types": "redocly bundle applications/resources/pets.yaml --config ./applications/generate-x-types.redocly.yaml -o applications/__tests__/file-snapshots/pets-to-x-types.yaml", - "pets:back-to-schemas": "redocly bundle applications/__tests__/file-snapshots/pets-to-x-types.yaml --config ./applications/x-type.redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml", + "pets:back-to-schemas": "redocly bundle applications/__tests__/file-snapshots/pets-to-x-types.yaml --config ./applications/x-type.redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml && redocly bundle applications/__tests__/file-snapshots/pets-back-to-schemas.yaml --config ./applications/remove-x-types.redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml", "cafe:to-x-types": "redocly bundle applications/resources/cafe.yaml --config ./applications/generate-x-types.redocly.yaml -o applications/resources/cafe.x-type.yaml", "cafe:back-to-schemas": "redocly bundle applications/resources/cafe.x-type.yaml --config ./applications/x-type.redocly.yaml -o applications/resources/cafe.yaml && redocly bundle applications/resources/cafe.yaml --config ./applications/remove-x-types.redocly.yaml -o applications/resources/cafe.yaml" }, From fa6c2e58f3de817ba3d671a5a7ec850e3c4efdf7 Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Mon, 19 Jan 2026 22:47:40 +0200 Subject: [PATCH 7/8] use 1-level-depth schemas for the sake of simplicity --- .../file-snapshots/pets-back-to-schemas.yaml | 31482 ++-------------- .../generate-flat-schemas.redocly.yaml | 10 + package.json | 4 +- 3 files changed, 2199 insertions(+), 29297 deletions(-) create mode 100644 applications/generate-flat-schemas.redocly.yaml diff --git a/applications/__tests__/file-snapshots/pets-back-to-schemas.yaml b/applications/__tests__/file-snapshots/pets-back-to-schemas.yaml index efe129a..90d5351 100644 --- a/applications/__tests__/file-snapshots/pets-back-to-schemas.yaml +++ b/applications/__tests__/file-snapshots/pets-back-to-schemas.yaml @@ -228,1011 +228,7 @@ paths: items: type: string format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false + friend: {} tags: description: Tags attached to the pet type: array @@ -1318,1011 +314,7 @@ paths: items: type: string format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false + friend: {} tags: description: Tags attached to the pet type: array @@ -2405,1011 +397,7 @@ paths: items: type: string format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false + friend: {} tags: description: Tags attached to the pet type: array @@ -3635,1011 +623,7 @@ paths: items: type: string format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false + friend: {} tags: description: Tags attached to the pet type: array @@ -4725,1011 +709,204 @@ paths: items: type: string format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet + prop1: + description: Dumb Property type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 required: - - name - - photoUrls - - packSize + - prop1 additionalProperties: false - - type: object + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + '400': + description: Invalid status value + security: + - petstore_auth: + - write:pets + - read:pets + /GETCustomers/findByTags: + get: + tags: + - pet + summary: Finds Pets by tags + description: Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + operationId: findPetsByTags + deprecated: true + parameters: + - name: tags + in: query + description: Tags to filter by + required: true + style: form + schema: + type: array + items: + type: string + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: array + items: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet + prop1: + description: Dumb Property type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number required: - - name - - photoUrls - - honeyPerDay + - prop1 additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} tags: description: Tags attached to the pet type: array @@ -5759,16 +936,19 @@ paths: description: Type of a pet type: string enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive required: - name - photoUrls - - packSize + - huntingSkill additionalProperties: false - type: object properties: @@ -5812,1011 +992,90 @@ paths: items: type: string format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet + prop1: + description: Dumb Property type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay + - prop1 additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} tags: description: Tags attached to the pet type: array @@ -6856,1085 +1115,476 @@ paths: - honeyPerDay additionalProperties: false '400': - description: Invalid status value + description: Invalid tag value security: - petstore_auth: - write:pets - read:pets - /GETCustomers/findByTags: + /store/inventory: get: tags: - - pet - summary: Finds Pets by tags - description: Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - operationId: findPetsByTags - deprecated: true + - store + summary: Returns pet inventories by status + description: Returns a map of status codes to quantities + operationId: getInventory + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + properties: {} + required: [] + additionalProperties: + type: integer + format: int32 + security: + - api_key: [] + /store/order: + post: + tags: + - store + summary: Place an order for a pet + description: '' + operationId: placeOrder + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + properties: + id: + description: Order ID + type: integer + format: int64 + petId: + description: Pet ID + type: integer + format: int64 + quantity: + type: integer + format: int32 + minimum: 1 + shipDate: + description: Estimated ship date + type: string + format: date-time + status: + description: Order Status + type: string + enum: + - placed + - approved + - delivered + complete: + description: Indicates whenever order was completed or not + type: boolean + required: + - id + - petId + - quantity + - shipDate + - status + - complete + additionalProperties: false + '400': + description: Invalid Order + content: + application/json: + example: + status: 400 + message: Invalid Order + requestBody: + content: + application/json: + schema: + type: object + properties: + quantity: + type: integer + format: int32 + minimum: 1 + shipDate: + description: Estimated ship date + type: string + format: date-time + status: + description: Order Status + type: string + enum: + - placed + - approved + - delivered + requestId: + description: Unique Request Id + type: string + required: + - quantity + - shipDate + - status + - requestId + additionalProperties: false + description: order placed for purchasing the pet + required: true + /store/order/{orderId}: + get: + tags: + - store + summary: Find purchase order by ID + description: For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + operationId: getOrderById parameters: - - name: tags - in: query - description: Tags to filter by + - name: orderId + in: path + description: ID of pet that needs to be fetched required: true - style: form schema: - type: array - items: - type: string + type: integer + format: int64 + minimum: 1 + maximum: 5 responses: '200': description: successful operation content: application/json: schema: - type: array - items: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet + type: object + properties: + id: + description: Order ID + type: integer + format: int64 + petId: + description: Pet ID + type: integer + format: int64 + quantity: + type: integer + format: int32 + minimum: 1 + shipDate: + description: Estimated ship date + type: string + format: date-time + status: + description: Order Status + type: string + enum: + - placed + - approved + - delivered + complete: + description: Indicates whenever order was completed or not + type: boolean + required: + - id + - petId + - quantity + - shipDate + - status + - complete + additionalProperties: false + '400': + description: Invalid ID supplied + '404': + description: Order not found + delete: + tags: + - store + summary: Delete purchase order by ID + description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + operationId: deleteOrder + parameters: + - name: orderId + in: path + description: ID of the order that needs to be deleted + required: true + schema: + type: string + minLength: 1 + responses: + '400': + description: Invalid ID supplied + '404': + description: Order not found + /store/subscribe: + post: + tags: + - store + summary: Subscribe to the Store events + description: Add subscription for a store events + requestBody: + content: + application/json: + schema: + type: object + properties: + callbackUrl: + description: This URL will be called by the server when the desired event will occur + type: string + format: uri + eventName: + description: Event name for the subscription + type: string + enum: + - orderInProgress + - orderShipped + - orderDelivered + required: + - callbackUrl + - eventName + additionalProperties: false + responses: + '201': + description: Subscription added + content: + application/json: + schema: + type: object + properties: + subscriptionId: + type: string + required: + - subscriptionId + additionalProperties: false + callbacks: + orderInProgress: + '{$request.body#/callbackUrl}?event={$request.body#/eventName}': + servers: + - url: //callback-url.path-level/v1 + description: Path level server 1 + - url: //callback-url.path-level/v2 + description: Path level server 2 + post: + summary: Order in Progress (Summary) + description: A callback triggered every time an Order is updated status to "inProgress" (Description) + externalDocs: + description: Find out more + url: https://more-details.com/demo + requestBody: + content: + application/json: + schema: + type: object + properties: + orderId: type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: + timestamp: + type: string + format: date-time + status: + type: string + required: + - orderId + - timestamp + - status + additionalProperties: false + responses: + '200': + description: Callback successfully processed and no retries will be performed + content: + application/json: + schema: + type: object + properties: + someProp: type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting + required: + - someProp + additionalProperties: false + '299': + description: Response for cancelling subscription + '500': + description: Callback processing failed and retries will be performed + x-codeSamples: + - lang: C# + source: | + PetStore.v1.Pet pet = new PetStore.v1.Pet(); + pet.setApiKey("your api key"); + pet.petType = PetStore.v1.Pet.TYPE_DOG; + pet.name = "Rex"; + // set other fields + PetStoreResponse response = pet.create(); + if (response.statusCode == HttpStatusCode.Created) + { + // Successfully created + } + else + { + // Something wrong -- check response for errors + Console.WriteLine(response.getRawResponse()); + } + - lang: PHP + source: | + $form = new \PetStore\Entities\Pet(); + $form->setPetType("Dog"); + $form->setName("Rex"); + // set other fields + try { + $pet = $client->pets()->create($form); + } catch (UnprocessableEntityException $e) { + var_dump($e->getErrors()); + } + put: + description: Order in Progress (Only Description) + servers: + - url: //callback-url.operation-level/v1 + description: Operation level server 1 (Operation override) + - url: //callback-url.operation-level/v2 + description: Operation level server 2 (Operation override) + requestBody: + content: + application/json: + schema: + type: object + properties: + orderId: + type: string + timestamp: + type: string + format: date-time + status: + type: string + required: + - orderId + - timestamp + - status + additionalProperties: false + responses: + '200': + description: Callback successfully processed and no retries will be performed + content: + application/json: + schema: + type: object + properties: + someProp: + type: string + required: + - someProp + additionalProperties: false + orderShipped: + '{$request.body#/callbackUrl}?event={$request.body#/eventName}': + post: + description: | + Very long description + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis + nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu + fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. + requestBody: + content: + application/json: + schema: + type: object + properties: + orderId: + type: string + timestamp: + type: string + format: date-time + estimatedDeliveryDate: + type: string + format: date-time + required: + - orderId + - timestamp + - estimatedDeliveryDate + additionalProperties: false + responses: + '200': + description: Callback successfully processed and no retries will be performed + orderDelivered: + http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}: + post: + deprecated: true + summary: Order delivered + description: A callback triggered every time an Order is delivered to the recipient + requestBody: + content: + application/json: + schema: + type: object + properties: + orderId: + type: string + timestamp: + type: string + format: date-time + required: + - orderId + - timestamp + additionalProperties: false + responses: + '200': + description: Callback successfully processed and no retries will be performed + /user: + post: + tags: + - user + summary: Create user + description: This can only be done by the logged in user. + operationId: createUser + responses: + default: + description: successful operation + requestBody: + content: + application/json: + schema: + type: object + properties: + pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property type: string - enum: - - clueless - - lazy - - adventurous - - aggressive required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay + - prop1 additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} tags: description: Tags attached to the pet type: array @@ -8020,1057 +1670,552 @@ paths: items: type: string format: url - friend: - anyOf: - - type: object + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet + prop1: + description: Dumb Property type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive required: - - name - - photoUrls - - huntingSkill + - prop1 additionalProperties: false - - type: object + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + - type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + username: + description: User supplied username + type: string + minLength: 4 + firstName: + description: User first name + type: string + minLength: 1 + lastName: + description: User last name + type: string + minLength: 1 + email: + description: User email address + type: string + format: email + password: + description: User password, MUST contain a mix of upper and lower case letters, as well as digits + type: string + format: password + pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ + minLength: 8 + phone: + description: User phone number in international format + type: string + pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ + userStatus: + description: User status + type: integer + format: int32 + required: + - pet + - username + - firstName + - lastName + - email + - password + - phone + - userStatus + additionalProperties: false + description: Created user object + required: true + /user/{username}: + get: + tags: + - user + summary: Get user by user name + description: '' + operationId: getUserByName + parameters: + - name: username + in: path + description: 'The name that needs to be fetched. Use user1 for testing. ' + required: true + schema: + type: string + responses: + '200': + description: successful operation + content: + application/json: + schema: + type: object + properties: + id: + type: integer + format: int64 + pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object properties: id: - description: Pet ID + description: Tag ID type: integer format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet + description: Tag name type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number + minLength: 1 required: + - id - name - - photoUrls - - honeyPerDay additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to type: object properties: id: - description: Tag ID + description: Category ID type: integer format: int64 name: - description: Tag name + description: Category name type: string minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: - id - name + - sub additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + - type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + username: + description: User supplied username + type: string + minLength: 4 + firstName: + description: User first name + type: string + minLength: 1 + lastName: + description: User last name + type: string + minLength: 1 + email: + description: User email address + type: string + format: email + password: + description: User password, MUST contain a mix of upper and lower case letters, as well as digits + type: string + format: password + pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ + minLength: 8 + phone: + description: User phone number in international format + type: string + pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ + userStatus: + description: User status + type: integer + format: int32 + required: + - id + - pet + - username + - firstName + - lastName + - email + - password + - phone + - userStatus + additionalProperties: false + '400': + description: Invalid username supplied + '404': + description: User not found + put: + tags: + - user + summary: Updated user + description: This can only be done by the logged in user. + operationId: updateUser + parameters: + - name: username + in: path + description: name that need to be deleted + required: true + schema: + type: string + responses: + '400': + description: Invalid user supplied + '404': + description: User not found + requestBody: + content: + application/json: + schema: + type: object + properties: + pet: + anyOf: + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 category: description: Categories this pet belongs to type: object @@ -9107,1011 +2252,176 @@ paths: items: type: string format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property type: string - enum: - - clueless - - lazy - - adventurous - - aggressive required: - - name - - photoUrls - - huntingSkill + - prop1 additionalProperties: false - - type: object + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet + prop1: + description: Dumb Property type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number required: - - name - - photoUrls - - honeyPerDay + - prop1 additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} tags: description: Tags attached to the pet type: array @@ -10150,19259 +2460,676 @@ paths: - photoUrls - honeyPerDay additionalProperties: false - '400': - description: Invalid tag value - security: - - petstore_auth: - - write:pets - - read:pets - /store/inventory: - get: - tags: - - store - summary: Returns pet inventories by status - description: Returns a map of status codes to quantities - operationId: getInventory - responses: - '200': - description: successful operation - content: - application/json: - schema: - type: object - properties: {} - required: [] - additionalProperties: + - type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + username: + description: User supplied username + type: string + minLength: 4 + firstName: + description: User first name + type: string + minLength: 1 + lastName: + description: User last name + type: string + minLength: 1 + email: + description: User email address + type: string + format: email + password: + description: User password, MUST contain a mix of upper and lower case letters, as well as digits + type: string + format: password + pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ + minLength: 8 + phone: + description: User phone number in international format + type: string + pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ + userStatus: + description: User status type: integer format: int32 - security: - - api_key: [] - /store/order: - post: + required: + - pet + - username + - firstName + - lastName + - email + - password + - phone + - userStatus + additionalProperties: false + description: Updated user object + required: true + delete: tags: - - store - summary: Place an order for a pet - description: '' - operationId: placeOrder - responses: - '200': - description: successful operation - content: - application/json: - schema: - type: object - properties: - id: - description: Order ID - type: integer - format: int64 - petId: - description: Pet ID - type: integer - format: int64 - quantity: - type: integer - format: int32 - minimum: 1 - shipDate: - description: Estimated ship date - type: string - format: date-time - status: - description: Order Status - type: string - enum: - - placed - - approved - - delivered - complete: - description: Indicates whenever order was completed or not - type: boolean - required: - - id - - petId - - quantity - - shipDate - - status - - complete - additionalProperties: false + - user + summary: Delete user + description: This can only be done by the logged in user. + operationId: deleteUser + parameters: + - name: username + in: path + description: The name that needs to be deleted + required: true + schema: + type: string + responses: '400': - description: Invalid Order - content: - application/json: - example: - status: 400 - message: Invalid Order + description: Invalid username supplied + '404': + description: User not found + /user/createWithArray: + post: + tags: + - user + summary: Creates list of users with given input array + description: '' + operationId: createUsersWithArrayInput + responses: + default: + description: successful operation requestBody: - content: - application/json: - schema: - type: object - properties: - quantity: - type: integer - format: int32 - minimum: 1 - shipDate: - description: Estimated ship date - type: string - format: date-time - status: - description: Order Status - type: string - enum: - - placed - - approved - - delivered - requestId: - description: Unique Request Id - type: string - required: - - quantity - - shipDate - - status - - requestId - additionalProperties: false - description: order placed for purchasing the pet - required: true - /store/order/{orderId}: + $ref: '#/components/requestBodies/UserArray' + /user/createWithList: + post: + tags: + - user + summary: Creates list of users with given input array + description: '' + operationId: createUsersWithListInput + responses: + default: + description: successful operation + requestBody: + $ref: '#/components/requestBodies/UserArray' + /user/login: get: tags: - - store - summary: Find purchase order by ID - description: For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - operationId: getOrderById + - user + summary: Logs user into the system + description: '' + operationId: loginUser parameters: - - name: orderId - in: path - description: ID of pet that needs to be fetched + - name: username + in: query + description: The user name for login required: true schema: - type: integer - format: int64 - minimum: 1 - maximum: 5 + type: string + - name: password + in: query + description: The password for login in clear text + required: true + schema: + type: string responses: '200': description: successful operation + headers: + X-Rate-Limit: + description: calls per hour allowed by the user + schema: + type: integer + format: int32 + X-Expires-After: + description: date in UTC when token expires + schema: + type: string + format: date-time content: application/json: + examples: + response: + value: OK schema: - type: object - properties: - id: - description: Order ID - type: integer - format: int64 - petId: - description: Pet ID - type: integer - format: int64 - quantity: - type: integer - format: int32 - minimum: 1 - shipDate: - description: Estimated ship date - type: string - format: date-time - status: - description: Order Status - type: string - enum: - - placed - - approved - - delivered - complete: - description: Indicates whenever order was completed or not - type: boolean - required: - - id - - petId - - quantity - - shipDate - - status - - complete - additionalProperties: false + type: string + application/xml: + examples: + response: + value: OK + schema: + type: string + text/plain: + examples: + response: + value: OK '400': - description: Invalid ID supplied - '404': - description: Order not found - delete: + description: Invalid username/password supplied + /user/logout: + get: tags: - - store - summary: Delete purchase order by ID - description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - operationId: deleteOrder - parameters: - - name: orderId - in: path - description: ID of the order that needs to be deleted - required: true - schema: - type: string - minLength: 1 + - user + summary: Logs out current logged in user session + description: '' + operationId: logoutUser responses: - '400': - description: Invalid ID supplied - '404': - description: Order not found - /store/subscribe: + default: + description: successful operation +x-webhooks: + newPet: post: + summary: New pet + description: Information about a new pet in the systems + operationId: newPet tags: - - store - summary: Subscribe to the Store events - description: Add subscription for a store events + - pet requestBody: content: application/json: schema: - type: object - properties: - callbackUrl: - description: This URL will be called by the server when the desired event will occur - type: string - format: uri - eventName: - description: Event name for the subscription - type: string - enum: - - orderInProgress - - orderShipped - - orderDelivered - required: - - callbackUrl - - eventName - additionalProperties: false - responses: - '201': - description: Subscription added - content: - application/json: - schema: - type: object - properties: - subscriptionId: - type: string - required: - - subscriptionId - additionalProperties: false - callbacks: - orderInProgress: - '{$request.body#/callbackUrl}?event={$request.body#/eventName}': - servers: - - url: //callback-url.path-level/v1 - description: Path level server 1 - - url: //callback-url.path-level/v2 - description: Path level server 2 - post: - summary: Order in Progress (Summary) - description: A callback triggered every time an Order is updated status to "inProgress" (Description) - externalDocs: - description: Find out more - url: https://more-details.com/demo - requestBody: - content: - application/json: - schema: + anyOf: + - type: object + properties: + category: + description: Categories this pet belongs to type: object properties: - orderId: - type: string - timestamp: - type: string - format: date-time - status: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: - - orderId - - timestamp - - status + - id + - name + - sub additionalProperties: false - responses: - '200': - description: Callback successfully processed and no retries will be performed - content: - application/json: - schema: + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: type: object properties: - someProp: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name type: string + minLength: 1 required: - - someProp + - id + - name additionalProperties: false - '299': - description: Response for cancelling subscription - '500': - description: Callback processing failed and retries will be performed - x-codeSamples: - - lang: C# - source: | - PetStore.v1.Pet pet = new PetStore.v1.Pet(); - pet.setApiKey("your api key"); - pet.petType = PetStore.v1.Pet.TYPE_DOG; - pet.name = "Rex"; - // set other fields - PetStoreResponse response = pet.create(); - if (response.statusCode == HttpStatusCode.Created) - { - // Successfully created - } - else - { - // Something wrong -- check response for errors - Console.WriteLine(response.getRawResponse()); - } - - lang: PHP - source: | - $form = new \PetStore\Entities\Pet(); - $form->setPetType("Dog"); - $form->setName("Rex"); - // set other fields - try { - $pet = $client->pets()->create($form); - } catch (UnprocessableEntityException $e) { - var_dump($e->getErrors()); - } - put: - description: Order in Progress (Only Description) - servers: - - url: //callback-url.operation-level/v1 - description: Operation level server 1 (Operation override) - - url: //callback-url.operation-level/v2 - description: Operation level server 2 (Operation override) - requestBody: - content: - application/json: - schema: + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + category: + description: Categories this pet belongs to type: object properties: - orderId: - type: string - timestamp: - type: string - format: date-time - status: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false required: - - orderId - - timestamp - - status + - id + - name + - sub additionalProperties: false - responses: - '200': - description: Callback successfully processed and no retries will be performed - content: - application/json: - schema: + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: type: object properties: - someProp: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name type: string + minLength: 1 required: - - someProp + - id + - name additionalProperties: false - orderShipped: - '{$request.body#/callbackUrl}?event={$request.body#/eventName}': - post: - description: | - Very long description - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor - incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis - nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. - Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu - fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in - culpa qui officia deserunt mollit anim id est laborum. - requestBody: - content: - application/json: - schema: - type: object - properties: - orderId: - type: string - timestamp: - type: string - format: date-time - estimatedDeliveryDate: - type: string - format: date-time - required: - - orderId - - timestamp - - estimatedDeliveryDate - additionalProperties: false - responses: - '200': - description: Callback successfully processed and no retries will be performed - orderDelivered: - http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}: - post: - deprecated: true - summary: Order delivered - description: A callback triggered every time an Order is delivered to the recipient - requestBody: - content: - application/json: - schema: + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + category: + description: Categories this pet belongs to type: object - properties: - orderId: - type: string - timestamp: - type: string - format: date-time - required: - - orderId - - timestamp - additionalProperties: false - responses: - '200': - description: Callback successfully processed and no retries will be performed - /user: - post: - tags: - - user - summary: Create user - description: This can only be done by the logged in user. - operationId: createUser - responses: - default: - description: successful operation - requestBody: - content: - application/json: - schema: - type: object - properties: - pet: - anyOf: - - type: object properties: id: - description: Pet ID + description: Category ID type: integer format: int64 - category: - description: Categories this pet belongs to + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category type: object properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name + prop1: + description: Dumb Property type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false required: - - id - - name - - sub + - prop1 additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive required: + - id - name - - photoUrls - - huntingSkill + - sub additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - username: - description: User supplied username - type: string - minLength: 4 - firstName: - description: User first name - type: string - minLength: 1 - lastName: - description: User last name - type: string - minLength: 1 - email: - description: User email address - type: string - format: email - password: - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - type: string - format: password - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - minLength: 8 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - userStatus: - description: User status - type: integer - format: int32 - required: - - pet - - username - - firstName - - lastName - - email - - password - - phone - - userStatus - additionalProperties: false - description: Created user object - required: true - /user/{username}: - get: - tags: - - user - summary: Get user by user name - description: '' - operationId: getUserByName - parameters: - - name: username - in: path - description: 'The name that needs to be fetched. Use user1 for testing. ' - required: true - schema: - type: string - responses: - '200': - description: successful operation - content: - application/json: - schema: - type: object - properties: - id: - type: integer - format: int64 - pet: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - username: - description: User supplied username - type: string - minLength: 4 - firstName: - description: User first name - type: string - minLength: 1 - lastName: - description: User last name - type: string - minLength: 1 - email: - description: User email address - type: string - format: email - password: - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - type: string - format: password - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - minLength: 8 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - userStatus: - description: User status - type: integer - format: int32 - required: - - id - - pet - - username - - firstName - - lastName - - email - - password - - phone - - userStatus - additionalProperties: false - '400': - description: Invalid username supplied - '404': - description: User not found - put: - tags: - - user - summary: Updated user - description: This can only be done by the logged in user. - operationId: updateUser - parameters: - - name: username - in: path - description: name that need to be deleted - required: true - schema: - type: string - responses: - '400': - description: Invalid user supplied - '404': - description: User not found - requestBody: - content: - application/json: - schema: - type: object - properties: - pet: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - username: - description: User supplied username - type: string - minLength: 4 - firstName: - description: User first name - type: string - minLength: 1 - lastName: - description: User last name - type: string - minLength: 1 - email: - description: User email address - type: string - format: email - password: - description: User password, MUST contain a mix of upper and lower case letters, as well as digits - type: string - format: password - pattern: /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/ - minLength: 8 - phone: - description: User phone number in international format - type: string - pattern: /^\+(?:[0-9]-?){6,14}[0-9]$/ - userStatus: - description: User status - type: integer - format: int32 - required: - - pet - - username - - firstName - - lastName - - email - - password - - phone - - userStatus - additionalProperties: false - description: Updated user object - required: true - delete: - tags: - - user - summary: Delete user - description: This can only be done by the logged in user. - operationId: deleteUser - parameters: - - name: username - in: path - description: The name that needs to be deleted - required: true - schema: - type: string - responses: - '400': - description: Invalid username supplied - '404': - description: User not found - /user/createWithArray: - post: - tags: - - user - summary: Creates list of users with given input array - description: '' - operationId: createUsersWithArrayInput - responses: - default: - description: successful operation - requestBody: - $ref: '#/components/requestBodies/UserArray' - /user/createWithList: - post: - tags: - - user - summary: Creates list of users with given input array - description: '' - operationId: createUsersWithListInput - responses: - default: - description: successful operation - requestBody: - $ref: '#/components/requestBodies/UserArray' - /user/login: - get: - tags: - - user - summary: Logs user into the system - description: '' - operationId: loginUser - parameters: - - name: username - in: query - description: The user name for login - required: true - schema: - type: string - - name: password - in: query - description: The password for login in clear text - required: true - schema: - type: string - responses: - '200': - description: successful operation - headers: - X-Rate-Limit: - description: calls per hour allowed by the user - schema: - type: integer - format: int32 - X-Expires-After: - description: date in UTC when token expires - schema: - type: string - format: date-time - content: - application/json: - examples: - response: - value: OK - schema: - type: string - application/xml: - examples: - response: - value: OK - schema: - type: string - text/plain: - examples: - response: - value: OK - '400': - description: Invalid username/password supplied - /user/logout: - get: - tags: - - user - summary: Logs out current logged in user session - description: '' - operationId: logoutUser - responses: - default: - description: successful operation -x-webhooks: - newPet: - post: - summary: New pet - description: Information about a new pet in the systems - operationId: newPet - tags: - - pet - requestBody: - content: - application/json: - schema: - anyOf: - - type: object - properties: - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - responses: - '200': - description: Return a 200 status to indicate that the data was received successfully -components: - requestBodies: - Pet: - content: - application/json: - schema: - anyOf: - - type: object - properties: - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - UserArray: - content: - application/json: - schema: - type: array - items: - type: object - properties: - pet: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + responses: + '200': + description: Return a 200 status to indicate that the data was received successfully +components: + requestBodies: + Pet: + content: + application/json: + schema: + anyOf: + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property + type: string + required: + - prop1 + additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID type: integer - format: int32 - minimum: 1 + format: int64 + name: + description: Tag name + type: string + minLength: 1 required: + - id - name - - photoUrls - - packSize additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - bee + honeyPerDay: + description: Average amount of honey produced per day in ounces + type: number + required: + - name + - photoUrls + - honeyPerDay + additionalProperties: false + UserArray: + content: + application/json: + schema: + type: array + items: + type: object + properties: + pet: + anyOf: - type: object properties: id: @@ -29445,1011 +3172,176 @@ components: items: type: string format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - cat + huntingSkill: + description: The measured skill for hunting + type: string + enum: + - clueless + - lazy + - adventurous + - aggressive + required: + - name + - photoUrls + - huntingSkill + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object + properties: + prop1: + description: Dumb Property type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 required: - - name - - photoUrls - - packSize + - prop1 additionalProperties: false - - type: object + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} + tags: + description: Tags attached to the pet + type: array + items: + type: object + properties: + id: + description: Tag ID + type: integer + format: int64 + name: + description: Tag name + type: string + minLength: 1 + required: + - id + - name + additionalProperties: false + status: + description: Pet status in the store + type: string + enum: + - available + - pending + - sold + petType: + description: Type of a pet + type: string + enum: + - dog + packSize: + description: The size of the pack the dog is from + type: integer + format: int32 + minimum: 1 + required: + - name + - photoUrls + - packSize + additionalProperties: false + - type: object + properties: + id: + description: Pet ID + type: integer + format: int64 + category: + description: Categories this pet belongs to + type: object + properties: + id: + description: Category ID + type: integer + format: int64 + name: + description: Category name + type: string + minLength: 1 + sub: + description: Test Sub Category + type: object properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: - anyOf: - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - cat - huntingSkill: - description: The measured skill for hunting - type: string - enum: - - clueless - - lazy - - adventurous - - aggressive - required: - - name - - photoUrls - - huntingSkill - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - dog - packSize: - description: The size of the pack the dog is from - type: integer - format: int32 - minimum: 1 - required: - - name - - photoUrls - - packSize - additionalProperties: false - - type: object - properties: - id: - description: Pet ID - type: integer - format: int64 - category: - description: Categories this pet belongs to - type: object - properties: - id: - description: Category ID - type: integer - format: int64 - name: - description: Category name - type: string - minLength: 1 - sub: - description: Test Sub Category - type: object - properties: - prop1: - description: Dumb Property - type: string - required: - - prop1 - additionalProperties: false - required: - - id - - name - - sub - additionalProperties: false - name: - description: The name given to a pet - type: string - photoUrls: - description: The list of URL to a cute photos featuring pet - type: array - items: - type: string - format: url - friend: {} - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet - type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number - required: - - name - - photoUrls - - honeyPerDay - additionalProperties: false - tags: - description: Tags attached to the pet - type: array - items: - type: object - properties: - id: - description: Tag ID - type: integer - format: int64 - name: - description: Tag name - type: string - minLength: 1 - required: - - id - - name - additionalProperties: false - status: - description: Pet status in the store - type: string - enum: - - available - - pending - - sold - petType: - description: Type of a pet + prop1: + description: Dumb Property type: string - enum: - - bee - honeyPerDay: - description: Average amount of honey produced per day in ounces - type: number required: - - name - - photoUrls - - honeyPerDay + - prop1 additionalProperties: false + required: + - id + - name + - sub + additionalProperties: false + name: + description: The name given to a pet + type: string + photoUrls: + description: The list of URL to a cute photos featuring pet + type: array + items: + type: string + format: url + friend: {} tags: description: Tags attached to the pet type: array diff --git a/applications/generate-flat-schemas.redocly.yaml b/applications/generate-flat-schemas.redocly.yaml new file mode 100644 index 0000000..c980f1b --- /dev/null +++ b/applications/generate-flat-schemas.redocly.yaml @@ -0,0 +1,10 @@ +extends: + - x-types/all + +plugins: + - x-types-plugin.js + +preprocessors: + x-types/generate-named-schemas: on + x-types/generate-schemas: + depth: 1 diff --git a/package.json b/package.json index b5095fe..db987ba 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "prettier:check": "npx prettier --check \"**/*.{js,html,yaml,css,md,json}\"", "prettier": "npx prettier --write \"**/*.{js,html,yaml,css,md,json}\"", "pets:to-x-types": "redocly bundle applications/resources/pets.yaml --config ./applications/generate-x-types.redocly.yaml -o applications/__tests__/file-snapshots/pets-to-x-types.yaml", - "pets:back-to-schemas": "redocly bundle applications/__tests__/file-snapshots/pets-to-x-types.yaml --config ./applications/x-type.redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml && redocly bundle applications/__tests__/file-snapshots/pets-back-to-schemas.yaml --config ./applications/remove-x-types.redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml", + "pets:back-to-schemas": "redocly bundle applications/__tests__/file-snapshots/pets-to-x-types.yaml --config ./applications/generate-flat-schemas.redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml && redocly bundle applications/__tests__/file-snapshots/pets-back-to-schemas.yaml --config ./applications/remove-x-types.redocly.yaml -o applications/__tests__/file-snapshots/pets-back-to-schemas.yaml", "cafe:to-x-types": "redocly bundle applications/resources/cafe.yaml --config ./applications/generate-x-types.redocly.yaml -o applications/resources/cafe.x-type.yaml", - "cafe:back-to-schemas": "redocly bundle applications/resources/cafe.x-type.yaml --config ./applications/x-type.redocly.yaml -o applications/resources/cafe.yaml && redocly bundle applications/resources/cafe.yaml --config ./applications/remove-x-types.redocly.yaml -o applications/resources/cafe.yaml" + "cafe:back-to-schemas": "redocly bundle applications/resources/cafe.x-type.yaml --config ./applications/generate-flat-schemas.redocly.yaml -o applications/resources/cafe.yaml && redocly bundle applications/resources/cafe.yaml --config ./applications/remove-x-types.redocly.yaml -o applications/resources/cafe.yaml" }, "repository": { "type": "git", From fc2a088f3f9aa305ee4583c3e486e8b4f45fd543 Mon Sep 17 00:00:00 2001 From: Andrew Tatomyr Date: Mon, 19 Jan 2026 23:18:10 +0200 Subject: [PATCH 8/8] update version to 0.3.0 --- package-lock.json | 68 +++++++++++++++-------------------------------- package.json | 2 +- 2 files changed, 22 insertions(+), 48 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3cee340..b9d38a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "json-x-type", - "version": "0.2.0", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "json-x-type", - "version": "0.2.0", + "version": "0.3.0", "license": "ISC", "devDependencies": { "@hyperjump/json-schema": "^1.9.9", @@ -1398,6 +1398,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1521,7 +1522,6 @@ "resolved": "https://registry.npmjs.org/array.prototype.filter/-/array.prototype.filter-1.0.4.tgz", "integrity": "sha512-r+mCJ7zXgXElgR4IRC+fkvNCeoaavWBs6EdCso5Tbcf+iEMKzBU/His60lt34WEZ9vlb8wDkZvQGcVI5GwkfoQ==", "dev": true, - "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -1542,7 +1542,6 @@ "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", "dev": true, - "peer": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", @@ -1631,8 +1630,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true, - "peer": true + "dev": true }, "node_modules/brace-expansion": { "version": "2.0.2", @@ -1776,7 +1774,6 @@ "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.12.tgz", "integrity": "sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==", "dev": true, - "peer": true, "dependencies": { "cheerio-select": "^2.1.0", "dom-serializer": "^2.0.0", @@ -1798,7 +1795,6 @@ "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz", "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==", "dev": true, - "peer": true, "dependencies": { "boolbase": "^1.0.0", "css-select": "^5.1.0", @@ -1901,8 +1897,7 @@ "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true, - "peer": true + "dev": true }, "node_modules/concat-map": { "version": "0.0.1", @@ -1925,6 +1920,7 @@ "integrity": "sha512-Xn6qmxrQZyB0FFY8E3bgRXei3lWDJHhvI+u0q9TKIYM49G8pAr0FgnnrFRAmsbptZL1yxRADVXn+x5AGsbBfyw==", "dev": true, "hasInstallScript": true, + "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" @@ -1958,7 +1954,6 @@ "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", "integrity": "sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==", "dev": true, - "peer": true, "dependencies": { "boolbase": "^1.0.0", "css-what": "^6.1.0", @@ -1986,7 +1981,6 @@ "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz", "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==", "dev": true, - "peer": true, "engines": { "node": ">= 6" }, @@ -2150,8 +2144,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/discontinuous-range/-/discontinuous-range-1.0.0.tgz", "integrity": "sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==", - "dev": true, - "peer": true + "dev": true }, "node_modules/doctrine": { "version": "3.0.0", @@ -2170,7 +2163,6 @@ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", "dev": true, - "peer": true, "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", @@ -2190,15 +2182,13 @@ "type": "github", "url": "https://github.com/sponsors/fb55" } - ], - "peer": true + ] }, "node_modules/domhandler": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", "dev": true, - "peer": true, "dependencies": { "domelementtype": "^2.3.0" }, @@ -2224,7 +2214,6 @@ "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", "integrity": "sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==", "dev": true, - "peer": true, "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", @@ -2260,7 +2249,6 @@ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true, - "peer": true, "engines": { "node": ">=0.12" }, @@ -2379,8 +2367,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", - "dev": true, - "peer": true + "dev": true }, "node_modules/es-define-property": { "version": "1.0.1", @@ -2435,7 +2422,6 @@ "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", "dev": true, - "peer": true, "dependencies": { "hasown": "^2.0.0" } @@ -2528,6 +2514,7 @@ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", "dev": true, + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -3244,7 +3231,6 @@ "resolved": "https://registry.npmjs.org/html-element-map/-/html-element-map-1.3.1.tgz", "integrity": "sha512-6XMlxrAFX4UEEGxctfFnmrFaaZFNf9i5fNuV5wZ3WWQ4FVaNP1aX1LkX9j2mfEx1NpjeE/rL3nmgEn23GdFmrg==", "dev": true, - "peer": true, "dependencies": { "array.prototype.filter": "^1.0.0", "call-bind": "^1.0.2" @@ -3271,7 +3257,6 @@ "url": "https://github.com/sponsors/fb55" } ], - "peer": true, "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", @@ -3606,8 +3591,7 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz", "integrity": "sha512-6Ybun0IkarhmEqxXCNw/C0bna6Zb/TkfUX9UbwJtK6ObwAVCxmAP308WWTHviM/zAqXk05cdhYsUsZeGQh99iw==", - "dev": true, - "peer": true + "dev": true }, "node_modules/is-symbol": { "version": "1.0.4", @@ -3846,15 +3830,13 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-4.0.1.tgz", "integrity": "sha512-nXEOnb/jK9g0DYMr1/Xvq6l5xMD7GDG55+GSYIYmS0G4tBk/hURD4JR9WCavs04t33WmJx9kCyp9vJ+mr4BOUw==", - "dev": true, - "peer": true + "dev": true }, "node_modules/lodash.flattendeep": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", "integrity": "sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==", - "dev": true, - "peer": true + "dev": true }, "node_modules/lodash.isequal": { "version": "4.5.0", @@ -4051,6 +4033,7 @@ "resolved": "https://registry.npmjs.org/mobx/-/mobx-6.13.0.tgz", "integrity": "sha512-1laWODrBWmB7mDJ8EClCjUQTyLwJ0ydJgE4FtK7t9r3JnjXgc9OhmYs2P4RtHrY1co5+4T6cKP2UswX2SU29mA==", "dev": true, + "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/mobx" @@ -4110,8 +4093,7 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", "integrity": "sha512-iSAJLHYKnX41mKcJKjqvnAN9sf0LMDTXDEvFv+ffuRR9a1MIuXLjMNL6EsnDHSkKLTWNqQQ5uo61P4EbU4NU+Q==", - "dev": true, - "peer": true + "dev": true }, "node_modules/ms": { "version": "2.1.2", @@ -4149,7 +4131,6 @@ "resolved": "https://registry.npmjs.org/nearley/-/nearley-2.20.1.tgz", "integrity": "sha512-+Mc8UaAebFzgV+KpI5n7DasuuQCHA89dmwm7JXw3TV43ukfNQ9DnBH3Mdb2g/I4Fdxc26pwimBWvjIw0UAILSQ==", "dev": true, - "peer": true, "dependencies": { "commander": "^2.19.0", "moo": "^0.5.0", @@ -4255,7 +4236,6 @@ "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", "dev": true, - "peer": true, "dependencies": { "boolbase": "^1.0.0" }, @@ -4402,7 +4382,6 @@ "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.8.tgz", "integrity": "sha512-cmopxi8VwRIAw/fkijJohSfpef5PdN0pMQJN6VC/ZKvn0LIknWD8KtgY6KlQdEc4tIjcQ3HxSMmnvtzIscdaYQ==", "dev": true, - "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -4417,7 +4396,6 @@ "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.0.tgz", "integrity": "sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==", "dev": true, - "peer": true, "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -4556,7 +4534,6 @@ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", "dev": true, - "peer": true, "dependencies": { "entities": "^4.4.0" }, @@ -4569,7 +4546,6 @@ "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.0.0.tgz", "integrity": "sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==", "dev": true, - "peer": true, "dependencies": { "domhandler": "^5.0.2", "parse5": "^7.0.0" @@ -4637,8 +4613,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", - "dev": true, - "peer": true + "dev": true }, "node_modules/picocolors": { "version": "1.1.1", @@ -4847,7 +4822,6 @@ "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", "dev": true, - "peer": true, "dependencies": { "performance-now": "^2.1.0" } @@ -4856,15 +4830,13 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz", "integrity": "sha512-cz93DjNeLY0idrCNOH6PviZGRN9GJhsdm9hpn1YCS879fj4W+x5IFJhhkRZcwVgMmFF7R82UA/7Oh+R8lLZg6A==", - "dev": true, - "peer": true + "dev": true }, "node_modules/randexp": { "version": "0.4.6", "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.4.6.tgz", "integrity": "sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==", "dev": true, - "peer": true, "dependencies": { "discontinuous-range": "1.0.0", "ret": "~0.1.10" @@ -4887,6 +4859,7 @@ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "dev": true, + "peer": true, "dependencies": { "loose-envify": "^1.1.0" }, @@ -4899,6 +4872,7 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "dev": true, + "peer": true, "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.2" @@ -5065,7 +5039,6 @@ "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", "dev": true, - "peer": true, "engines": { "node": ">=0.12" } @@ -5142,7 +5115,6 @@ "resolved": "https://registry.npmjs.org/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz", "integrity": "sha512-nDG1rZeP6oFTLN6yNDV/uiAvs1+FS/KlrEwh7+y7dpuApDBy6bI2HTBcc0/V8lv9OTqfyD34eF7au2pm8aBbhA==", "dev": true, - "peer": true, "dependencies": { "lodash.flattendeep": "^4.4.0", "nearley": "^2.7.10" @@ -5602,6 +5574,7 @@ "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.11.tgz", "integrity": "sha512-Ui0jXPzbp1phYij90h12ksljKGqF8ncGx+pjrNPsSPhbUUjWT2tD1FwGo2LF6USCnbrsIhNngDfodhxbegfEOA==", "dev": true, + "peer": true, "dependencies": { "@emotion/is-prop-valid": "1.2.2", "@emotion/unitless": "0.8.1", @@ -6079,6 +6052,7 @@ "integrity": "sha512-Ljb1cnSJSivGN0LqXd/zmDbWEM0RNNg2t1QW/XUhYl/qPqyu7CsqeWtqQXHVaJsecLPuDoak2oJcZN2QoRIOag==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@vitest/expect": "1.6.1", "@vitest/runner": "1.6.1", diff --git a/package.json b/package.json index db987ba..39e0b50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-x-type", - "version": "0.2.3", + "version": "0.3.0", "type": "module", "description": "JSON X-Type is a JSON data type type notation with an emphasis on being intuitive to write and easy to read.", "scripts": {