Skip to content

Instantly share code, notes, and snippets.

@mathis-m
Created September 23, 2021 22:12
Show Gist options
  • Save mathis-m/5bbc98e47e1348e0566815cece346eca to your computer and use it in GitHub Desktop.
Save mathis-m/5bbc98e47e1348e0566815cece346eca to your computer and use it in GitHub Desktop.
openapi: 3.0.2
info:
title: FastAPI
version: 0.1.0
paths:
/:
post:
summary: Root
operationId: root__post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/NodeInfo'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ConnectionInfo:
title: ConnectionInfo
required:
- id
- values
type: object
properties:
id:
title: Id
type: string
values:
title: Values
anyOf:
- type: array
items:
anyOf:
- $ref: '#/components/schemas/ValueInfo'
- $ref: '#/components/schemas/NodeInfo'
- $ref: '#/components/schemas/ValueInfo'
- $ref: '#/components/schemas/NodeInfo'
HTTPValidationError:
title: HTTPValidationError
type: object
properties:
detail:
title: Detail
type: array
items:
$ref: '#/components/schemas/ValidationError'
NodeInfo:
title: NodeInfo
type: object
properties:
connections:
title: Connections
type: array
items:
$ref: '#/components/schemas/ConnectionInfo'
ValidationError:
title: ValidationError
required:
- loc
- msg
- type
type: object
properties:
loc:
title: Location
type: array
items:
type: string
msg:
title: Message
type: string
type:
title: Error Type
type: string
ValueInfo:
title: ValueInfo
required:
- value
type: object
properties:
value:
title: Value
anyOf:
- type: string
- type: number
- type: integer
- type: boolean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment