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 20, 2023
1 parent f638eca commit 45ad075
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
35 changes: 28 additions & 7 deletions config/schema/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -756,17 +756,17 @@
"type": "integer",
"default": -1
},
"type": {
"type": "string",
"const": "domain"
},
"mode": {
"type": "string",
"enum": [
"allow",
"disallow"
"normal",
"inverse"
],
"default": "disallow"
"default": "normal"
},
"type": {
"type": "string",
"const": "domain"
},
"domains": {
"type": "array",
Expand Down Expand Up @@ -815,6 +815,9 @@
"mute_duration": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration"
},
"mode": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode"
},
"data": {
"type": "array",
"items": {
Expand Down Expand Up @@ -862,6 +865,9 @@
"mute_duration": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration"
},
"mode": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode"
},
"data": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/1/properties/data"
},
Expand Down Expand Up @@ -905,6 +911,9 @@
"mute_duration": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration"
},
"mode": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode"
},
"type": {
"type": "string",
"const": "anti_invite"
Expand Down Expand Up @@ -956,6 +965,9 @@
"mute_duration": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration"
},
"mode": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode"
},
"type": {
"type": "string",
"const": "regex_filter"
Expand Down Expand Up @@ -1020,6 +1032,9 @@
"mute_duration": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration"
},
"mode": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode"
},
"type": {
"type": "string",
"const": "block_repeated_text"
Expand Down Expand Up @@ -1068,6 +1083,9 @@
"mute_duration": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration"
},
"mode": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode"
},
"type": {
"type": "string",
"const": "block_mass_mention"
Expand Down Expand Up @@ -1120,6 +1138,9 @@
"mute_duration": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mute_duration"
},
"mode": {
"$ref": "#/additionalProperties/anyOf/0/properties/message_rules/properties/rules/items/anyOf/0/properties/mode"
},
"type": {
"type": "string",
"const": "regex_must_match"
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-16T13:39:45.329Z"
"default": "2023-09-20T16:48:17.598Z"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit 45ad075

Please sign in to comment.