forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
34 lines (33 loc) · 696 Bytes
/
openapi.yaml
File metadata and controls
34 lines (33 loc) · 696 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
32
33
openapi: 3.0.3
info:
title: oneOf with array inside
version: 1.0.0
servers:
- url: /
paths:
/myExample:
get:
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/_myExample_get_200_response'
description: Response
x-accepts:
- application/json
components:
schemas:
OneOf1:
example:
message1: message1
properties:
message1:
type: string
type: object
_myExample_get_200_response:
oneOf:
- items:
$ref: '#/components/schemas/OneOf1'
type: array
- $ref: '#/components/schemas/OneOf1'