feat: support custom server deployment drafts
This commit is contained in:
@@ -26,7 +26,12 @@
|
||||
"type": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]*$", "maxLength": 80 },
|
||||
"displayName": { "type": "string", "minLength": 1, "maxLength": 80 },
|
||||
"supportedOS": { "type": "array", "items": { "enum": ["windows", "linux", "darwin"] } },
|
||||
"createFormSchema": { "$ref": "#/$defs/relativeJsonRef" }
|
||||
"createFormSchema": { "$ref": "#/$defs/relativeJsonRef" },
|
||||
"createFields": {
|
||||
"type": "array",
|
||||
"maxItems": 32,
|
||||
"items": { "$ref": "#/$defs/pluginCreateField" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"bridge": {
|
||||
@@ -191,6 +196,20 @@
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"pluginCreateField": {
|
||||
"type": "object",
|
||||
"required": ["key", "label", "type"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"key": { "type": "string", "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$", "maxLength": 80 },
|
||||
"label": { "type": "string", "minLength": 1, "maxLength": 60 },
|
||||
"type": { "enum": ["text", "number", "boolean", "select", "port"] },
|
||||
"required": { "type": "boolean" },
|
||||
"defaultValue": { "type": "string", "maxLength": 256 },
|
||||
"options": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "type": "string", "minLength": 1, "maxLength": 120 } },
|
||||
"configKey": { "type": "string", "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$", "maxLength": 80 }
|
||||
}
|
||||
},
|
||||
"gameClientBridgeManifest": {
|
||||
"type": "object",
|
||||
"required": ["commands", "snapshots", "commandRetentionSeconds", "maxCommands"],
|
||||
|
||||
Reference in New Issue
Block a user