forked from oasdiff/oasdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi-test5.yaml
181 lines (180 loc) · 4.32 KB
/
openapi-test5.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
info:
title: Tufin1
version: 1.0.1
contact:
email: support@tufin.com
url: www.tufin.com
license:
name: apache
openapi: 3.0.3
paths:
/api/{domain}/{project}/badges/security-score:
get:
parameters:
- in: query
name: filter
content:
application/json:
schema:
type: object
properties:
type:
type: string
color:
type: string
required:
- type
- in: header
name: user
schema:
type: string
- in: cookie
name: test
content:
application/json:
schema:
type: string
- in: query
name: image
schema:
description: alphanumeric
example: tufinim/generic-bank:cia-latest
format: general string
pattern: ^(?:[\w-./:]+)$
type: string
- in: query
name: token
schema:
description: RFC 4122 UUID
example: 26734565-dbcc-449a-a370-0beaaf04b0e8
format: uuid
pattern: ^(?:[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12})$
type: string
- in: header
name: X-Auth-Name
required: true
schema:
description: empty string
format: empty string
pattern: ^(?:)$
type: string
- in: path
name: domain
required: true
schema:
description: Hyphen-separated list of lowercase string
example: generic-bank
format: hyphen-separated list
pattern: ^(?:([a-z]+-)*([a-z]+)?)$
type: string
- in: path
name: project
required: true
schema:
description: Lowercase string
example: retail
format: lowercase string
pattern: ^(?:[a-z]+)$
type: string
responses:
default:
description: Tufin
'201':
description: none
content:
application/xml:
schema:
type: object
servers: []
/api/{domain}/{project}/install-command:
get:
parameters:
- in: header
name: X-Auth-Name
required: true
schema:
description: any string
example: Joe
format: any string
pattern: ^(?:.*)$
type: string
- in: path
name: domain
required: true
schema:
enum:
- generic-bank
- tufin
type: string
- in: path
name: project
required: true
schema:
enum:
- retail
- my-project
- test
- eks
type: string
responses:
default:
description: Tufin
servers:
- url: 'https://www.oasdiff.com'
description: "2"
variables:
name:
default: "joe"
enum: ["joe", "bill"]
title:
default: "developer"
x-test:
components:
schemas:
requests:
additionalProperties: false
properties:
email:
description: Email address
example: road.runner@acme.com
format: email
pattern: ^(?:[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$
type: string
type: object
network-policies:
additionalProperties: false
properties:
netpols:
type: string
type: object
rules:
additionalProperties: false
properties:
netpols:
type: string
type: object
responses:
default:
description: Tufin
headers:
test:
schema:
$ref: '#/components/schemas/network-policies'
testc:
content:
application/json:
schema:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
AccessToken:
type: oauth2
flows:
implicit:
authorizationUrl: https://example.com/api/oauth/dialog
scopes:
write:pets: modify pets in your account
read:pets": read your pets