posh-providers/slack-go/slack/config.schema.json
Kevin Franklin Kim 4588a19b45
feat: add schema
2025-04-04 16:44:08 +02:00

57 lines
1.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/foomo/posh-providers/slack-go/slack/config",
"$ref": "#/$defs/Config",
"$defs": {
"Config": {
"properties": {
"token": {
"$ref": "#/$defs/Secret"
},
"channels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"webhooks": {
"additionalProperties": {
"$ref": "#/$defs/Secret"
},
"type": "object"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"token",
"channels",
"webhooks"
]
},
"Secret": {
"properties": {
"account": {
"type": "string"
},
"vault": {
"type": "string"
},
"item": {
"type": "string"
},
"field": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"account",
"vault",
"item",
"field"
]
}
}
}