Last active
July 18, 2023 14:16
-
-
Save Santobert/0b93ef7233e0dfbbba580203fad5c9ce to your computer and use it in GitHub Desktop.
[BUG][Python] Client expects any object to be a dict
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.2 | |
info: | |
title: Swagger Petstore - OpenAPI 3.0 | |
version: 1.0.17 | |
servers: | |
- url: /api/v3 | |
paths: | |
/pet: | |
post: | |
summary: Add a new pet to the store | |
description: Add a new pet to the store | |
operationId: addPet | |
requestBody: | |
description: Create a new pet in the store | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Pet' | |
required: true | |
responses: | |
'200': | |
description: Successful operation | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Pet' | |
'405': | |
description: Invalid input | |
components: | |
schemas: | |
Pet: | |
type: object | |
properties: | |
id: | |
type: integer | |
format: int64 | |
example: 10 | |
name: | |
type: object | |
description: "A string, a number or a boolean" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.2 | |
info: | |
title: Swagger Petstore - OpenAPI 3.0 | |
version: 1.0.17 | |
servers: | |
- url: /api/v3 | |
paths: | |
/pet: | |
post: | |
summary: Add a new pet to the store | |
description: Add a new pet to the store | |
operationId: addPet | |
requestBody: | |
description: Create a new pet in the store | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Pet" | |
required: true | |
responses: | |
"200": | |
description: Successful operation | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Pet" | |
"405": | |
description: Invalid input | |
components: | |
schemas: | |
Pet: | |
type: object | |
properties: | |
id: | |
type: integer | |
format: int64 | |
example: 10 | |
name: | |
description: "A string, a number or a boolean" | |
anyOf: | |
- type: string | |
- type: integer | |
format: int64 | |
- type: number | |
format: double | |
- type: boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.2 | |
info: | |
title: Swagger Petstore - OpenAPI 3.0 | |
version: 1.0.17 | |
servers: | |
- url: /api/v3 | |
paths: | |
/pet: | |
post: | |
summary: Add a new pet to the store | |
description: Add a new pet to the store | |
operationId: addPet | |
requestBody: | |
description: Create a new pet in the store | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Pet" | |
required: true | |
responses: | |
"200": | |
description: Successful operation | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Pet" | |
"405": | |
description: Invalid input | |
components: | |
schemas: | |
Pet: | |
type: object | |
properties: | |
id: | |
type: integer | |
format: int64 | |
example: 10 | |
name: | |
type: object | |
description: "A string, a number or a boolean" | |
anyOf: | |
- type: string | |
- type: integer | |
format: int64 | |
- type: number | |
format: double | |
- type: boolean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment