Skip to content

Instantly share code, notes, and snippets.

@commonism
Last active July 24, 2023 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commonism/7adcb666278f4070b8f7aabd456faa43 to your computer and use it in GitHub Desktop.
Save commonism/7adcb666278f4070b8f7aabd456faa43 to your computer and use it in GitHub Desktop.
OpenAPI3.1 - type list null
openapi: 3.1.0
info:
title: ''
version: 0.0.0
servers:
- url: http://127.0.0.1/api
security:
- {}
paths:
/{path}:
parameters:
- $ref: "#/components/parameters/path"
- $ref: '#/components/parameters/cookie'
post:
operationId: post
requestBody:
description: "!"
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Any'
responses:
'200':
description: "!"
content:
application/json:
schema:
$ref: "#/components/schemas/Any"
callbacks:
onData:
'{$request.query.callbackUrl}/data':
post:
requestBody:
description: "!"
content:
application/json:
schema:
$ref: "#/components/schemas/Any"
responses:
'200':
description: "!"
content:
application/json:
schema:
$ref: "#/components/schemas/Any"
get:
operationId: get
parameters:
- $ref: "#/components/parameters/query"
- $ref: "#/components/parameters/header"
responses: &resp
'200':
description: "!"
content:
application/json:
schema:
$ref: '#/components/schemas/Any'
headers:
head:
$ref: "#/components/headers/header"
components:
schemas:
Any:
type: [integer, string, object, array, boolean, "null"]
items:
$ref: "#/components/schemas/Any"
properties:
next:
$ref: "#/components/schemas/Any"
headers:
header:
schema:
$ref: "#/components/schemas/Any"
style: simple
explode: false
parameters:
query:
in: query
name: query
style: deepObject
explode: true
required: true
schema:
$ref: "#/components/schemas/Any"
path:
in: path
name: path
required: true
schema:
type: [string, "null"]
header:
in: header
name: header
required: true
schema:
type: [string, "null"]
cookie:
in: cookie
name: cookie
required: true
schema:
type: [string, "null"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment