Skip to content

Instantly share code, notes, and snippets.

@RockyMM
Created March 31, 2022 13:22
Show Gist options
  • Save RockyMM/68de034f5f331e80f7fa831dd2a36086 to your computer and use it in GitHub Desktop.
Save RockyMM/68de034f5f331e80f7fa831dd2a36086 to your computer and use it in GitHub Desktop.
openapi: 3.0.0
info:
title: Ref test
version: 0.0.1
paths:
"/objects":
post:
operationId: object_create
requestBody:
$ref: "#/components/requestBodies/Object"
responses:
"201":
description: ""
content:
application/json:
schema:
$ref: "#/components/schemas/Object"
components:
requestBodies:
Object:
content:
application/json:
schema:
$ref: "#/components/schemas/Object"
schemas:
Object:
required:
- datetime
type: object
properties:
id:
type: integer
readOnly: true
datetime:
type: string
format: date-time
value:
type: number
nullable: true
custom_fields:
type: string
readOnly: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment