Files
khadhroony-bot3/config/schemas/store.config.schema.json
2026-08-11 22:22:40 +02:00

66 lines
1.3 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://khadhroony.local/schemas/store.config.schema.json",
"title": "Khadhroony Solana store configuration",
"type": "object",
"additionalProperties": false,
"required": [
"default_profile",
"profiles"
],
"properties": {
"default_profile": {
"$ref": "#/$defs/non_empty_string"
},
"profiles": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/profile"
}
}
},
"$defs": {
"non_empty_string": {
"type": "string",
"minLength": 1
},
"database": {
"type": "object",
"additionalProperties": false,
"required": [
"enabled",
"backend",
"backend_options"
],
"properties": {
"enabled": {
"type": "boolean"
},
"backend": {
"$ref": "#/$defs/non_empty_string"
},
"backend_options": {
"type": "object"
}
}
},
"profile": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"database"
],
"properties": {
"name": {
"$ref": "#/$defs/non_empty_string"
},
"database": {
"$ref": "#/$defs/database"
}
}
}
}
}