Skip to content

Instantly share code, notes, and snippets.

@a4blue
Created February 19, 2021 07:28
Show Gist options
  • Save a4blue/db06f076317ac6150a65b682e971039b to your computer and use it in GitHub Desktop.
Save a4blue/db06f076317ac6150a65b682e971039b to your computer and use it in GitHub Desktop.
openapi: 3.0.1
info:
title: Test
description: 'Model Test'
version: 1.0.0
paths:
/test:
post:
summary: add Model With Date
operationId: addModel
requestBody:
description: Model With Date
content:
application/json:
schema:
$ref: '#/components/schemas/Model'
required: true
responses:
'200':
description: Ok
components:
schemas:
Model:
required:
- name
- photoUrls
type: object
properties:
sample_date:
type: string
format: date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment