{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://glass.spboucher.ai/registry/schema/config.schema.json",
  "title": "spglass.json",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "registry",
    "sourcesPath",
    "themesPath"
  ],
  "properties": {
    "schemaVersion": {
      "const": 1
    },
    "registry": {
      "type": "string",
      "maxLength": 2048,
      "description": "https:// URL or local directory."
    },
    "sourcesPath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 240,
      "pattern": "^(?!/)(?!~)(?!.*(^|/)\\.)(?!.*//)[A-Za-z0-9+_. /-]+$",
      "description": "Relative path with forward slashes. No component may be empty, start with a dot, or be '.' or '..'."
    },
    "themesPath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 240,
      "pattern": "^(?!/)(?!~)(?!.*(^|/)\\.)(?!.*//)[A-Za-z0-9+_. /-]+$",
      "description": "Relative path with forward slashes. No component may be empty, start with a dot, or be '.' or '..'."
    },
    "publicKey": {
      "type": "string",
      "description": "Base64 Ed25519 public key; when present the registry index must be signed."
    }
  }
}
