Skip to content

Instantly share code, notes, and snippets.

@JonasGroeger
Last active May 24, 2021 10:46
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 JonasGroeger/cc98c2d4f532ed7dc307d26a897f85e4 to your computer and use it in GitHub Desktop.
Save JonasGroeger/cc98c2d4f532ed7dc307d26a897f85e4 to your computer and use it in GitHub Desktop.
f
openapi: 3.0.0
info:
title: Example
version: 1.0.0
paths:
/p:
get:
responses:
'200':
description: Get Person
content:
application/json:
schema:
$ref: '#/components/schemas/Person'
examples:
example-1:
$ref: '#/components/examples/PersonExample'
components:
schemas:
Person:
type: object
properties:
name:
type: string
age:
type: integer
examples:
PersonExample:
value:
name: Toby
age: 24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment