Finally got action example working correctly

This commit is contained in:
FoxxMD
2021-06-16 10:39:27 -04:00
parent daf66083d0
commit a09f3fe4f1
2 changed files with 25 additions and 0 deletions

View File

@@ -241,6 +241,7 @@ export interface CheckJson extends ICheck {
* Can be `Action` or the `name` of any **named** `Action` in your subreddit's configuration
*
* @minItems 1
* @examples [[{"kind": "comment", "content": "this is the content of the comment", "distinguish": true}, {"kind": "lock"}]]
* */
actions: Array<ActionTypeJson>
}

View File

@@ -454,6 +454,18 @@
"properties": {
"actions": {
"description": "The `Actions` to run after the check is successfully triggered. ALL `Actions` will run in the order they are listed\n\n Can be `Action` or the `name` of any **named** `Action` in your subreddit's configuration",
"examples": [
[
{
"content": "this is the content of the comment",
"distinguish": true,
"kind": "comment"
},
{
"kind": "lock"
}
]
],
"items": {
"anyOf": [
{
@@ -1406,6 +1418,18 @@
"properties": {
"actions": {
"description": "The `Actions` to run after the check is successfully triggered. ALL `Actions` will run in the order they are listed\n\n Can be `Action` or the `name` of any **named** `Action` in your subreddit's configuration",
"examples": [
[
{
"content": "this is the content of the comment",
"distinguish": true,
"kind": "comment"
},
{
"kind": "lock"
}
]
],
"items": {
"anyOf": [
{