SPB Git

Repository Public MIT

registry.schema.json 5.0 KB 188 lines json

1{2  "$schema": "https://json-schema.org/draft/2020-12/schema",3  "$id": "https://glass.spboucher.ai/registry/schema/registry.schema.json",4  "title": "SP Glass Registry index (registry.json)",5  "type": "object",6  "additionalProperties": false,7  "required": [8    "schemaVersion",9    "name",10    "homepage",11    "license",12    "items",13    "themes"14  ],15  "properties": {16    "schemaVersion": {17      "const": 118    },19    "name": {20      "type": "string"21    },22    "homepage": {23      "type": "string"24    },25    "license": {26      "type": "string"27    },28    "items": {29      "type": "array",30      "maxItems": 512,31      "items": {32        "type": "object",33        "additionalProperties": false,34        "required": [35          "id",36          "name",37          "kind",38          "summary",39          "latest",40          "versions"41        ],42        "properties": {43          "id": {44            "type": "string",45            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",46            "maxLength": 6447          },48          "name": {49            "type": "string",50            "maxLength": 8051          },52          "kind": {53            "enum": [54              "native-wrapper",55              "custom-glass",56              "content-component",57              "primitive",58              "theme"59            ]60          },61          "category": {62            "type": "string"63          },64          "summary": {65            "type": "string",66            "maxLength": 60067          },68          "latest": {69            "type": "string",70            "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z]+(\\.[0-9A-Za-z]+)*)?$",71            "maxLength": 6472          },73          "versions": {74            "type": "array",75            "minItems": 1,76            "items": {77              "type": "object",78              "additionalProperties": false,79              "required": [80                "version",81                "path",82                "sha256"83              ],84              "properties": {85                "version": {86                  "type": "string",87                  "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z]+(\\.[0-9A-Za-z]+)*)?$",88                  "maxLength": 6489                },90                "path": {91                  "type": "string",92                  "minLength": 1,93                  "maxLength": 240,94                  "pattern": "^(?!/)(?!~)(?!.*(^|/)\\.)(?!.*//)[A-Za-z0-9+_. /-]+$",95                  "description": "Relative path with forward slashes. No component may be empty, start with a dot, or be '.' or '..'."96                },97                "sha256": {98                  "type": "string",99                  "pattern": "^[0-9a-f]{64}$"100                }101              }102            }103          }104        }105      }106    },107    "themes": {108      "type": "array",109      "maxItems": 512,110      "items": {111        "type": "object",112        "additionalProperties": false,113        "required": [114          "id",115          "name",116          "kind",117          "summary",118          "latest",119          "versions"120        ],121        "properties": {122          "id": {123            "type": "string",124            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",125            "maxLength": 64126          },127          "name": {128            "type": "string",129            "maxLength": 80130          },131          "kind": {132            "enum": [133              "native-wrapper",134              "custom-glass",135              "content-component",136              "primitive",137              "theme"138            ]139          },140          "category": {141            "type": "string"142          },143          "summary": {144            "type": "string",145            "maxLength": 600146          },147          "latest": {148            "type": "string",149            "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z]+(\\.[0-9A-Za-z]+)*)?$",150            "maxLength": 64151          },152          "versions": {153            "type": "array",154            "minItems": 1,155            "items": {156              "type": "object",157              "additionalProperties": false,158              "required": [159                "version",160                "path",161                "sha256"162              ],163              "properties": {164                "version": {165                  "type": "string",166                  "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z]+(\\.[0-9A-Za-z]+)*)?$",167                  "maxLength": 64168                },169                "path": {170                  "type": "string",171                  "minLength": 1,172                  "maxLength": 240,173                  "pattern": "^(?!/)(?!~)(?!.*(^|/)\\.)(?!.*//)[A-Za-z0-9+_. /-]+$",174                  "description": "Relative path with forward slashes. No component may be empty, start with a dot, or be '.' or '..'."175                },176                "sha256": {177                  "type": "string",178                  "pattern": "^[0-9a-f]{64}$"179                }180              }181            }182          }183        }184      }185    }186  }187}188
Files main
Menu

Theme