Skip to content

Commit a501a3f

Browse files
committed
fix openapi spec errors
1 parent 7b0944c commit a501a3f

File tree

1 file changed

+21
-39
lines changed

1 file changed

+21
-39
lines changed

openapi.yaml

Lines changed: 21 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -195,24 +195,6 @@ paths:
195195
description: If present and `1`, creates a Folder instead of a Domain.
196196
- $ref: '#/components/parameters/accept_json'
197197
- $ref: '#/components/parameters/authorization'
198-
- name: FolderSpec
199-
in: path
200-
required: true
201-
description: >
202-
Optional JSON object indicating whether the domain should not
203-
possess a root group -- a Folder.
204-
205-
Default by absence is `false`, resulting in a Domain with a root
206-
group.
207-
208-
TODO: determine interaction with query parameter.
209-
schema:
210-
type: object
211-
properties:
212-
folder:
213-
type: boolean
214-
example:
215-
folder: True
216198
responses:
217199
'201':
218200
description: Created.
@@ -2378,10 +2360,30 @@ paths:
23782360
- Domain
23792361
summary: Set user's access to the Domain.
23802362
requestBody:
2363+
required: true
2364+
description: >
2365+
JSON object with one or more keys from the set: 'create', 'read',
2366+
'update', 'delete', 'readACL', 'updateACL'. Each key should have
2367+
a boolean value. Based on keys provided, the user's ACL will be
2368+
updated for those keys. If no ACL exist for the given user, it
2369+
will be created.
23812370
content:
23822371
application/json:
23832372
schema:
23842373
type: object
2374+
properties:
2375+
create:
2376+
type: boolean
2377+
update:
2378+
type: boolean
2379+
delete:
2380+
type: boolean
2381+
updateACL:
2382+
type: boolean
2383+
read:
2384+
type: boolean
2385+
readACL:
2386+
type: boolean
23852387
parameters:
23862388
- name: user
23872389
in: path
@@ -2392,27 +2394,7 @@ paths:
23922394
- $ref: '#/components/parameters/query_domain'
23932395
- $ref: '#/components/parameters/accept_json'
23942396
- $ref: '#/components/parameters/authorization'
2395-
- name: ACLDefinition
2396-
in: path
2397-
description: >
2398-
Permissions granted to the user.
2399-
Not all need be set. (TODO: what are the defaults?)
2400-
required: true
2401-
schema:
2402-
type: object
2403-
properties:
2404-
create:
2405-
type: boolean
2406-
update:
2407-
type: boolean
2408-
delete:
2409-
type: boolean
2410-
updateACL:
2411-
type: boolean
2412-
read:
2413-
type: boolean
2414-
readACL:
2415-
type: boolean
2397+
24162398
responses:
24172399
'200':
24182400
description: OK

0 commit comments

Comments
 (0)