Skip to content

Instantly share code, notes, and snippets.

@s-bauer
Created January 7, 2021 15:54
Show Gist options
  • Save s-bauer/0d84bcbbd9e733ce027bbfef6b4211cb to your computer and use it in GitHub Desktop.
Save s-bauer/0d84bcbbd9e733ce027bbfef6b4211cb to your computer and use it in GitHub Desktop.
openapi: 3.0.0
info:
version: "{version}"
title: Sample API with anyOf and oneOf
paths:
/test:
get:
parameters:
- in: query
name: afterDate
schema:
type: string
format: date
example: 2020-10-15
- in: query
name: afterDate2
schema:
type: string
format: date-time
example: 2021-01-01T15:53:09.703Z
responses:
"200":
description: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment