-
Notifications
You must be signed in to change notification settings - Fork 932
/
nesting.yaml
68 lines (68 loc) · 1.39 KB
/
nesting.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
openapi: 3.0.0
info:
title: 'Nested schemas'
description: 'Example info'
contact:
name: 'Swagger API Team'
version: 1.0.0
servers:
-
url: 'https://example.localhost'
description: 'API server'
paths:
'/entity/{id}':
get:
tags:
- api
description: 'Get the entity'
operationId: dd148eadcee53770e24b2350f932e3bd
parameters:
-
name: id
in: path
required: true
schema:
type: integer
format: int64
responses:
'200':
description: 'successful operation'
content:
application/json:
schema:
$ref: '#/components/schemas/ActualModel'
components:
schemas:
ActualModel:
type: object
allOf:
-
$ref: '#/components/schemas/AlmostModel'
-
properties:
soClose:
type: string
actual:
type: string
type: object
AlmostModel:
type: object
allOf:
-
$ref: '#/components/schemas/BaseModel'
-
properties:
intermediate:
type: string
almost:
type: string
type: object
BaseModel:
properties:
base:
type: string
type: object
tags:
-
name: api
description: 'All API endpoints'