SPB Git

Repository Public MIT

lock.schema.json 3.5 KB 133 lines json

1{2  "$schema": "https://json-schema.org/draft/2020-12/schema",3  "$id": "https://glass.spboucher.ai/registry/schema/lock.schema.json",4  "title": "spglass.lock.json",5  "type": "object",6  "additionalProperties": false,7  "required": [8    "schemaVersion",9    "registry",10    "items",11    "themes"12  ],13  "properties": {14    "schemaVersion": {15      "const": 116    },17    "registry": {18      "type": "string"19    },20    "items": {21      "type": "array",22      "items": {23        "type": "object",24        "additionalProperties": false,25        "required": [26          "id",27          "version",28          "kind",29          "requested",30          "dependencies",31          "digest",32          "files"33        ],34        "properties": {35          "id": {36            "type": "string",37            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",38            "maxLength": 6439          },40          "version": {41            "type": "string",42            "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z]+(\\.[0-9A-Za-z]+)*)?$",43            "maxLength": 6444          },45          "kind": {46            "type": "string"47          },48          "requested": {49            "type": "boolean"50          },51          "dependencies": {52            "type": "array",53            "items": {54              "type": "string",55              "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",56              "maxLength": 6457            }58          },59          "digest": {60            "type": "string"61          },62          "files": {63            "type": "array",64            "items": {65              "type": "object",66              "additionalProperties": false,67              "required": [68                "path",69                "sha256",70                "bytes"71              ],72              "properties": {73                "path": {74                  "type": "string",75                  "minLength": 1,76                  "maxLength": 240,77                  "pattern": "^(?!/)(?!~)(?!.*(^|/)\\.)(?!.*//)[A-Za-z0-9+_. /-]+$",78                  "description": "Relative path with forward slashes. No component may be empty, start with a dot, or be '.' or '..'."79                },80                "sha256": {81                  "type": "string",82                  "pattern": "^[0-9a-f]{64}$"83                },84                "bytes": {85                  "type": "integer",86                  "minimum": 0,87                  "maximum": 104857688                }89              }90            }91          }92        }93      }94    },95    "themes": {96      "type": "array",97      "items": {98        "type": "object",99        "additionalProperties": false,100        "required": [101          "id",102          "version",103          "path",104          "sha256"105        ],106        "properties": {107          "id": {108            "type": "string",109            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",110            "maxLength": 64111          },112          "version": {113            "type": "string",114            "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z]+(\\.[0-9A-Za-z]+)*)?$",115            "maxLength": 64116          },117          "path": {118            "type": "string",119            "minLength": 1,120            "maxLength": 240,121            "pattern": "^(?!/)(?!~)(?!.*(^|/)\\.)(?!.*//)[A-Za-z0-9+_. /-]+$",122            "description": "Relative path with forward slashes. No component may be empty, start with a dot, or be '.' or '..'."123          },124          "sha256": {125            "type": "string",126            "pattern": "^[0-9a-f]{64}$"127          }128        }129      }130    }131  }132}133
Files main
Menu

Theme