Declare SCUM Run data targets
This commit is contained in:
@@ -133,6 +133,12 @@
|
||||
"items": { "$ref": "#/$defs/runtimeTransportProfile" },
|
||||
"uniqueItems": true
|
||||
},
|
||||
"dataTargets": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "#/$defs/runtimeDataTarget" },
|
||||
"uniqueItems": true,
|
||||
"maxItems": 64
|
||||
},
|
||||
"clientManagers": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "#/$defs/runtimeClientManagerProfile" },
|
||||
@@ -838,6 +844,22 @@
|
||||
"capabilities": { "type": "array", "items": { "$ref": "#/$defs/runCapability" }, "uniqueItems": true, "minItems": 1 }
|
||||
}
|
||||
},
|
||||
"runtimeDataTarget": {
|
||||
"type": "object",
|
||||
"required": ["key", "kind", "transportKey", "sourceRootKey", "sourcePath", "workspaceKey", "refreshPolicy", "maxBytes"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"key": { "$ref": "#/$defs/logicalKey" },
|
||||
"kind": { "const": "sqlite.snapshot" },
|
||||
"transportKey": { "$ref": "#/$defs/logicalKey" },
|
||||
"sourceRootKey": { "$ref": "#/$defs/logicalKey" },
|
||||
"sourcePath": { "$ref": "#/$defs/relativePathRef" },
|
||||
"workspaceKey": { "type": "string", "pattern": "^databases/[a-z0-9][a-z0-9._/-]{0,119}$" },
|
||||
"refreshPolicy": { "const": "on-demand-snapshot" },
|
||||
"maxBytes": { "type": "integer", "minimum": 1, "maximum": 1073741824 },
|
||||
"platforms": { "type": "array", "items": { "enum": ["windows", "linux", "darwin"] }, "uniqueItems": true }
|
||||
}
|
||||
},
|
||||
"relativePathRef": {
|
||||
"type": "string",
|
||||
"pattern": "^(?!/)(?![A-Za-z]:)(?!.*://)(?!.*\\.\\.)[a-zA-Z0-9_./-]+$",
|
||||
|
||||
Reference in New Issue
Block a user