75 lines
2.0 KiB
JSON
75 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://jwebot.example/schemas/private-context.schema.json",
|
|
"title": "JWeBot private context",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["people", "clock_scan_targets"],
|
|
"properties": {
|
|
"people": {
|
|
"type": "array",
|
|
"maxItems": 500,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"canonical_name",
|
|
"aliases",
|
|
"prefixes",
|
|
"identity_fact",
|
|
"display_id"
|
|
],
|
|
"properties": {
|
|
"canonical_name": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 120
|
|
},
|
|
"aliases": {
|
|
"type": "array",
|
|
"maxItems": 64,
|
|
"items": {"type": "string", "minLength": 1, "maxLength": 120}
|
|
},
|
|
"prefixes": {
|
|
"type": "array",
|
|
"maxItems": 64,
|
|
"items": {"type": "string", "minLength": 1, "maxLength": 120}
|
|
},
|
|
"identity_fact": {"type": "string", "maxLength": 240},
|
|
"display_id": {"type": "string", "maxLength": 120},
|
|
"steam_id64": {
|
|
"type": "string",
|
|
"pattern": "^(?:|[0-9]{17})$"
|
|
},
|
|
"steam_aliases": {
|
|
"type": "array",
|
|
"maxItems": 64,
|
|
"items": {"type": "string", "minLength": 1, "maxLength": 120}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"clock_scan_targets": {
|
|
"type": "array",
|
|
"maxItems": 500,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["canonical_name", "display_id"],
|
|
"properties": {
|
|
"canonical_name": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 120
|
|
},
|
|
"display_id": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 120
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|