Skip to content

Commit

Permalink
chore: update config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-designer committed Sep 23, 2023
1 parent 867eb2b commit 689d884
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 53 deletions.
159 changes: 107 additions & 52 deletions config/schema/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1199,72 +1199,127 @@
"triggers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"enabled_channels": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"enabled_channels": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
},
"default": []
},
{
"type": "string",
"const": "all"
}
]
},
"ignore_roles": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
},
"default": []
},
{
"ignore_users": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
},
"default": []
},
"type": {
"type": "string",
"const": "all"
"const": "sticky_message"
},
"message": {
"type": "string"
},
"buttons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"label",
"url"
],
"additionalProperties": false
},
"maxItems": 3,
"default": []
}
]
},
"ignore_roles": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
},
"default": []
},
"ignore_users": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
},
"default": []
},
"type": {
"type": "string",
"const": "sticky_message"
},
"message": {
"type": "string"
"required": [
"type",
"message"
],
"additionalProperties": false
},
"buttons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
{
"type": "object",
"properties": {
"enabled_channels": {
"$ref": "#/additionalProperties/anyOf/0/properties/auto_triggers/properties/triggers/items/anyOf/0/properties/enabled_channels"
},
"ignore_roles": {
"$ref": "#/additionalProperties/anyOf/0/properties/auto_triggers/properties/triggers/items/anyOf/0/properties/ignore_roles"
},
"ignore_users": {
"$ref": "#/additionalProperties/anyOf/0/properties/auto_triggers/properties/triggers/items/anyOf/0/properties/ignore_users"
},
"type": {
"type": "string",
"const": "member_status_update"
},
"must_contain": {
"type": "array",
"items": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"label",
"url"
],
"additionalProperties": false
"default": []
},
"must_not_contain": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"action": {
"type": "string",
"enum": [
"assign_role",
"take_away_role"
]
},
"roles": {
"type": "array",
"items": {
"$ref": "#/additionalProperties/anyOf/0/properties/commands/properties/bean_safe/items"
},
"default": []
}
},
"maxItems": 3,
"default": []
"required": [
"type",
"action"
],
"additionalProperties": false
}
},
"required": [
"type",
"message"
],
"additionalProperties": false
]
},
"default": []
},
Expand Down
2 changes: 1 addition & 1 deletion config/schema/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"format": "date-time"
}
],
"default": "2023-09-20T16:48:17.598Z"
"default": "2023-09-23T09:29:02.701Z"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit 689d884

Please sign in to comment.