Created
August 27, 2021 17:18
-
-
Save dpkirchner/3e41497358e9890b70af42d704b7ec9e 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
type: object | |
properties: | |
type: | |
type: string | |
default: a |
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
type: object | |
properties: | |
type: | |
type: string | |
default: b |
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
type: object | |
properties: | |
type: | |
type: string | |
enum: | |
- a | |
- b | |
discriminator: | |
propertyName: type | |
mapping: | |
a: './item-a.yaml' | |
b: './item-b.yaml' | |
required: | |
- type |
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: | |
version: 1.0.0 | |
title: Test | |
tags: | |
- name: Resource | |
description: | | |
<SchemaDefinition schemaRef="#/components/schemas/Resource"/> | |
- name: User | |
description: | | |
<SchemaDefinition schemaRef="#/components/schemas/User"/> | |
x-tagGroups: | |
- name: Output models | |
tags: | |
- Resource | |
- User | |
components: | |
schemas: | |
Resource: | |
$ref: './resource.yaml' | |
User: | |
$ref: './user.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
type: object | |
required: | |
- user | |
properties: | |
items: | |
type: array | |
items: | |
$ref: './item.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
type: object | |
required: | |
- username | |
properties: | |
username: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment