Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update role default to be string pointer #338

Merged
merged 5 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/schemas/containers/config/ContainerDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ properties:
description: Configuration for what to do during container shutdown.
properties:
graceful_timeout:
type: string
nullable: true
description: How long the platform will wait for a container to stop gracefully.
allOf:
- type: string
nullable: true
- $ref: ../../Duration.yml
description: How long the platform will wait for a container to stop gracefully.
signals:
type: array
nullable: true
Expand Down
7 changes: 5 additions & 2 deletions components/schemas/hubs/roles/Role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: A Role is a custom combination of platform-level capabilities, allo
required:
- id
- root
- default
- rank
- identifier
- creator
Expand All @@ -22,7 +21,11 @@ properties:
description: The Role marked as root has full moderation control over all Roles.
type: boolean
default:
type: boolean
description: A reference to the original identifier of the default Role this Role was built from. A value of null means it is a fully custom Role.
type: string
nullable: true
allOf:
- $ref: ../../Identifier.yml
rank:
description: An integer between 0 and 10 that indicates the Role hierarchy. An account can only edit a Role that is less than their rank. The 'owner' Role is rank 10.
type: integer
Expand Down
Loading