Define shared permissions and version contracts
API checks / checks (push) Canceled after 0s
API dependency and security checks / audit (push) Canceled after 0s

This commit is contained in:
2026-10-25 05:39:57 +01:00
parent f1e5148480
commit b89edfafa9
5 changed files with 41 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://trixie.invalid/contracts/v1/version-negotiation.json",
"title": "Trixie Version Negotiation",
"type": "object",
"additionalProperties": false,
"required": ["api_version", "client_version", "server_version", "compatible"],
"properties": {
"api_version": { "type": "string", "const": "v1" },
"client_version": { "type": "string", "minLength": 1 },
"server_version": { "type": "string", "minLength": 1 },
"compatible": { "type": "boolean" },
"reason": { "type": "string", "minLength": 1 }
}
}