Skip to content

Instantly share code, notes, and snippets.

@hrvoj3e
Created March 28, 2022 13:21
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 hrvoj3e/f24b12a7aab8486a6a59f095bcc7edc6 to your computer and use it in GitHub Desktop.
Save hrvoj3e/f24b12a7aab8486a6a59f095bcc7edc6 to your computer and use it in GitHub Desktop.
openapi: 3.0.2
info:
title: demo
version: 1.0.0
description: ''
paths:
/demo:
get:
parameters:
- in: query
name: id
schema:
type: integer
format: int32
minimum: 10000
examples:
empty: ## just an empty value ## fixes auto filling example
value:
demo-1:
value: 10101
canceled-order:
value: 10102
order-with-discount:
value: 10103
order-with-discount-2:
value: 10104
summary: there are multiple discount applied
x-examples-summary-show: title
x-examples-key-show: true
responses:
'200':
description: OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment