Created
March 20, 2023 03:30
-
-
Save tokuhirom/4b0204f2e7fc8768f1a803accb569aa9 to your computer and use it in GitHub Desktop.
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.3 | |
info: | |
title: Example | |
version: 1.0.0 | |
servers: | |
- url: 'https://example.com/' | |
paths: | |
/callback: | |
post: | |
responses: | |
'200': | |
description: test | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Event" | |
components: | |
schemas: | |
Event: | |
type: object | |
oneOf: | |
- $ref: "#/components/schemas/MyGreatEvent" | |
discriminator: | |
propertyName: type | |
mapping: | |
great: '#/components/schemas/MyGreatEvent' | |
MyGreatEvent: | |
allOf: | |
- $ref: '#/components/schemas/Event' | |
- type: object | |
required: | |
- type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment