Skip to content

Commit c10f05b

Browse files
committed
docs(swagger): fix nullable types
1 parent 31649e0 commit c10f05b

File tree

1 file changed

+24
-70
lines changed

1 file changed

+24
-70
lines changed

api-docs.yml

Lines changed: 24 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
description: |
66
Semaphore API provides endpoints for managing and interacting with the Semaphore UI.
77
This documentation outlines the available operations and data models.
8-
version: "2.14.0-beta1"
8+
version: "2.16.11"
99

1010
consumes:
1111
- application/json
@@ -159,16 +159,12 @@ definitions:
159159
alert:
160160
type: boolean
161161
alert_chat:
162-
type:
163-
- string
164-
- 'null'
162+
type: string
165163
max_parallel_tasks:
166164
type: integer
167165
minimum: 0
168166
type:
169-
type:
170-
- string
171-
- 'null'
167+
type: string
172168
templates:
173169
type: array
174170
items:
@@ -187,39 +183,27 @@ definitions:
187183
playbook:
188184
type: string
189185
arguments:
190-
type:
191-
- string
192-
- 'null'
186+
type: string
193187
description:
194188
type: string
195189
allow_override_args_in_task:
196190
type: boolean
197191
suppress_success_alerts:
198192
type: boolean
199193
cron:
200-
type:
201-
- string
202-
- 'null'
194+
type: string
203195
build_template:
204-
type:
205-
- string
206-
- 'null'
196+
type: string
207197
autorun:
208198
type: boolean
209199
survey_vars:
210-
type:
211-
- string
212-
- 'null'
200+
type: string
213201
start_version:
214-
type:
215-
- string
216-
- 'null'
202+
type: string
217203
type:
218204
type: string
219205
vault_key:
220-
type:
221-
- string
222-
- 'null'
206+
type: string
223207
allow_override_branch_in_task:
224208
type: boolean
225209
repositories:
@@ -265,13 +249,9 @@ definitions:
265249
inventory:
266250
type: string
267251
ssh_key:
268-
type:
269-
- string
270-
- 'null'
252+
type: string
271253
become_key:
272-
type:
273-
- string
274-
- 'null'
254+
type: string
275255
type:
276256
type: string
277257
enum: [static, static-yaml, file]
@@ -283,15 +263,11 @@ definitions:
283263
name:
284264
type: string
285265
password:
286-
type:
287-
- string
288-
- 'null'
266+
type: string
289267
json:
290268
type: string
291269
env:
292-
type:
293-
- string
294-
- 'null'
270+
type: string
295271

296272
APIToken:
297273
type: object
@@ -316,17 +292,13 @@ definitions:
316292
alert:
317293
type: boolean
318294
alert_chat:
319-
type:
320-
- string
321-
- 'null'
295+
type: string
322296
example: Test
323297
max_parallel_tasks:
324298
type: integer
325299
minimum: 0
326300
type:
327-
type:
328-
- string
329-
- 'null'
301+
type: string
330302
demo:
331303
description: Create Demo project resources?
332304
type: boolean
@@ -345,17 +317,13 @@ definitions:
345317
alert:
346318
type: boolean
347319
alert_chat:
348-
type:
349-
- string
350-
- 'null'
320+
type: string
351321
example: Test
352322
max_parallel_tasks:
353323
type: integer
354324
minimum: 0
355325
type:
356-
type:
357-
- string
358-
- 'null'
326+
type: string
359327

360328
AccessKeyRequest:
361329
type: object
@@ -719,9 +687,7 @@ definitions:
719687
secret:
720688
type: string
721689
git_branch:
722-
type:
723-
- string
724-
- 'null'
690+
type: string
725691
limit:
726692
type: string
727693
params:
@@ -861,13 +827,9 @@ definitions:
861827
type: string
862828
enum: ["", build, deploy]
863829
start_version:
864-
type:
865-
- string
866-
- 'null'
830+
type: string
867831
build_template_id:
868-
type:
869-
- integer
870-
- 'null'
832+
type: integer
871833
autorun:
872834
type: boolean
873835
survey_vars:
@@ -920,13 +882,9 @@ definitions:
920882
enum: [password, script]
921883
example: script
922884
vault_key_id:
923-
type:
924-
- integer
925-
- 'null'
885+
type: integer
926886
script:
927-
type:
928-
- string
929-
- 'null'
887+
type: string
930888
example: path/to/script-client.py
931889

932890
ScheduleRequest:
@@ -1001,13 +959,9 @@ definitions:
1001959
user_id:
1002960
type: integer
1003961
object_id:
1004-
type:
1005-
- integer
1006-
- 'null'
962+
type: integer
1007963
object_type:
1008-
type:
1009-
- string
1010-
- 'null'
964+
type: string
1011965
description:
1012966
type: string
1013967

0 commit comments

Comments
 (0)