-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update JSON schemas for all plugins (#1328)
- Update JSON schemas for all plugins - Add password format for credentials - Ensure `log` is exposed everywhere - Ensure `additionalProperties` are enabled for plugins with more complex data - Unify JSON schema definition across all plugins
- Loading branch information
Showing
37 changed files
with
1,047 additions
and
676 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Echo", | ||
"description": "Echo is an example Botkube executor plugin used during e2e tests. It's not meant for production usage.", | ||
"type": "object", | ||
"properties": { | ||
"changeResponseToUpperCase": { | ||
"description": "When changeResponseToUpperCase is true, the echoed string will be in upper case", | ||
"type": "boolean", | ||
"default": false | ||
} | ||
}, | ||
"required": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "GH", | ||
"description": "GH creates an issue on GitHub for a related Kubernetes resource.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"uiSchema": { | ||
"github": { | ||
"issueTemplate": { | ||
"ui:widget": "textarea" | ||
}, | ||
"token": { | ||
"ui:widget": "password" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"github": { | ||
"description": "GitHub-related configuration", | ||
"title": "GitHub configuration", | ||
"type": "object", | ||
"properties": { | ||
"token": { | ||
"description": "GitHub Personal Access Token", | ||
"title": "GitHub Token", | ||
"type": "string", | ||
"minLength": 3, | ||
"default": "" | ||
}, | ||
"issueTemplate": { | ||
"description": "Issue template to use. If not specified, the default one will be used.", | ||
"title": "Issue Template", | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"repository": { | ||
"type": "string", | ||
"title": "Repository", | ||
"description": "GitHub repository to create issues in. Must be in the format of 'owner/repo'.", | ||
"minLength": 3, | ||
"default": "" | ||
} | ||
}, | ||
"required": [ | ||
"token", | ||
"repository" | ||
] | ||
}, | ||
"log": { | ||
"title": "Logging", | ||
"description": "Logging configuration for the plugin.", | ||
"type": "object", | ||
"properties": { | ||
"level": { | ||
"title": "Log Level", | ||
"description": "Define log level for the plugin. Ensure that Botkube has plugin logging enabled for standard output.", | ||
"type": "string", | ||
"default": "info", | ||
"oneOf": [ | ||
{ | ||
"const": "panic", | ||
"title": "Panic" | ||
}, | ||
{ | ||
"const": "fatal", | ||
"title": "Fatal" | ||
}, | ||
{ | ||
"const": "error", | ||
"title": "Error" | ||
}, | ||
{ | ||
"const": "warn", | ||
"title": "Warning" | ||
}, | ||
{ | ||
"const": "info", | ||
"title": "Info" | ||
}, | ||
{ | ||
"const": "debug", | ||
"title": "Debug" | ||
}, | ||
{ | ||
"const": "trace", | ||
"title": "Trace" | ||
} | ||
] | ||
}, | ||
"disableColors": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If enabled, disables color logging output.", | ||
"title": "Disable Colors" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"github" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.