Skip to content

Instantly share code, notes, and snippets.

@seanlaff
Created January 18, 2019 20:29
Show Gist options
  • Save seanlaff/d2aef0244adeeea95c1396952b28d987 to your computer and use it in GitHub Desktop.
Save seanlaff/d2aef0244adeeea95c1396952b28d987 to your computer and use it in GitHub Desktop.
openapi: "3.0.0"
info:
version: 1.0.0
title: keyword test
license:
name: MIT
paths:
/pets:
post:
summary: Create a pet
operationId: createPets
tags:
- pets
responses:
'201':
description: Null response
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
components:
schemas:
Pet:
required:
- id
- name
- default
properties:
id:
type: integer
format: int64
name:
type: string
default:
type: boolean
tag:
type: string
Pets:
type: array
items:
$ref: "#/components/schemas/Pet"
Error:
required:
- code
- message
properties:
code:
type: integer
format: int32
message:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment