Skip to content

Instantly share code, notes, and snippets.

@Santobert
Last active July 18, 2023 14:16
Show Gist options
  • Save Santobert/0b93ef7233e0dfbbba580203fad5c9ce to your computer and use it in GitHub Desktop.
Save Santobert/0b93ef7233e0dfbbba580203fad5c9ce to your computer and use it in GitHub Desktop.
[BUG][Python] Client expects any object to be a dict
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"
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
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