Files
ITWorx_MCP_Hub-Public/contracts/schemas/workspace.schema.json
T

61 lines
1.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://hub.example.com/schemas/workspace.schema.json",
"title": "ITWorx MCP Hub Workspace",
"description": "Top-level private workspace configuration.",
"type": "object",
"additionalProperties": false,
"required": [
"apiVersion",
"kind",
"metadata",
"spec"
],
"properties": {
"apiVersion": {
"const": "hub.example.com/v1alpha1"
},
"kind": {
"const": "Workspace"
},
"metadata": {
"$ref": "common.schema.json#/$defs/metadata"
},
"spec": {
"type": "object",
"additionalProperties": false,
"required": [
"defaultTimezone",
"visibility",
"defaultDecision",
"auditRetentionDays",
"allowedEnvironments"
],
"properties": {
"defaultTimezone": {
"const": "Europe/Brussels"
},
"visibility": {
"const": "private"
},
"defaultDecision": {
"const": "deny"
},
"auditRetentionDays": {
"type": "integer",
"minimum": 30,
"maximum": 3650
},
"allowedEnvironments": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "common.schema.json#/$defs/environmentName"
}
}
}
}
}
}