Last active
May 24, 2021 10:46
-
-
Save JonasGroeger/cc98c2d4f532ed7dc307d26a897f85e4 to your computer and use it in GitHub Desktop.
f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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