-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathanyOfEnums.yaml
More file actions
31 lines (31 loc) · 791 Bytes
/
anyOfEnums.yaml
File metadata and controls
31 lines (31 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
openapi: 3.0.0
info:
title: anyOf enums
version: 1.0.0
paths:
"/":
responses:
200:
description: Ok
schema:
"#ref": "#/components/schemas/ApiModule/$defs/MyEnums"
components:
schemas:
Compact:
enum:
- VAR1
- VAR2
- VAR3
ApiModule:
"$defs":
MyEnums:
anyOf:
- type: string
enum:
- VAR1
- type: string
enum:
- VAR2
- type: string
enum:
- VAR3