Created
August 30, 2023 14:32
-
-
Save morus12/d99446557841985e4912a5453422956d to your computer and use it in GitHub Desktop.
spec.yaml
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: API | |
version: 1.0.0 | |
servers: | |
- url: https://example.com | |
paths: | |
/foo: | |
post: | |
requestBody: | |
content: | |
application/json: | |
schema: | |
type: object | |
oneOf: | |
- allOf: | |
- type: object | |
properties: | |
foo_id: | |
readOnly: true | |
required: | |
- foo_id | |
- allOf: | |
- type: object | |
properties: | |
bar_id: | |
readOnly: true | |
required: | |
- bar_id | |
responses: | |
"200": | |
description: "OK" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment