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

53 lines
1.0 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/foomo/posh-providers/etcd-io/etcd/config",
"$ref": "#/$defs/Config",
"$defs": {
"Cluster": {
"properties": {
"name": {
"type": "string"
},
"podName": {
"type": "string"
},
"namespace": {
"type": "string"
},
"paths": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name",
"podName",
"namespace",
"paths"
]
},
"Config": {
"properties": {
"configPath": {
"type": "string"
},
"clusters": {
"items": {
"$ref": "#/$defs/Cluster"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"configPath",
"clusters"
]
}
}
}