Files
khadhroony-bot3/config/schemas/wallet.config.schema.json
2026-08-10 23:14:17 +02:00

78 lines
1.8 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://khadhroony.local/schemas/wallet.config.schema.json",
"title": "Khadhroony Solana wallet configuration",
"type": "object",
"additionalProperties": false,
"required": [
"wallets_directory",
"default_profile",
"profiles"
],
"properties": {
"wallets_directory": {
"$ref": "#/$defs/non_empty_string"
},
"default_profile": {
"$ref": "#/$defs/non_empty_string"
},
"profiles": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/profile"
}
}
},
"$defs": {
"non_empty_string": {
"type": "string",
"minLength": 1
},
"profile": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"directory",
"cluster",
"temporary_wallet_enabled",
"temporary_wallet_alias",
"temporary_wallet_persist"
],
"properties": {
"name": {
"$ref": "#/$defs/non_empty_string"
},
"directory": {
"$ref": "#/$defs/non_empty_string"
},
"cluster": {
"$ref": "#/$defs/non_empty_string"
},
"wallet_alias": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
},
"temporary_wallet_enabled": {
"type": "boolean"
},
"temporary_wallet_alias": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
},
"temporary_wallet_persist": {
"type": "boolean"
}
}
}
}
}