Skip to content

Commit

Permalink
Update permissions to be enums
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-aaron committed Jan 7, 2025
1 parent b6b3fd4 commit 982efa0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions specification/resources/spaces/models/grant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ properties:
permission:
type: string
description: The permission to grant to the user.
enum:
- read
- readwrite
- fullaccess
- ''
example: read

required:
Expand Down
8 changes: 5 additions & 3 deletions specification/resources/spaces/parameters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ name:
description: The name of the access key.
schema:
type: string
default: ""
example: my-access-key

bucket:
Expand All @@ -44,7 +43,6 @@ bucket:
description: The name of the bucket.
schema:
type: string
default: ""
example: my-bucket

permission:
Expand All @@ -54,5 +52,9 @@ permission:
description: The permission of the access key.
schema:
type: string
default: ""
enum:
- read
- readwrite
- fullaccess
- ""
example: read

0 comments on commit 982efa0

Please sign in to comment.