Files
viettranx 6e7e15cf4a test(contracts): complete P1 contract tests with schemas and policy
- Add config.get, skills.list WS contract tests
- Add /v1/providers HTTP contract test
- Add JSON schemas for ws_connect, ws_chat_send, http_chat_completions
- Document breaking change policy
2026-04-12 21:52:29 +07:00

22 lines
658 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "WS connect response",
"type": "object",
"required": ["protocol", "role", "user_id", "tenant_id", "is_owner", "server"],
"properties": {
"protocol": { "type": "number" },
"role": { "type": "string", "enum": ["admin", "operator", "viewer"] },
"user_id": { "type": "string" },
"tenant_id": { "type": "string" },
"is_owner": { "type": "boolean" },
"server": {
"type": "object",
"required": ["name", "version"],
"properties": {
"name": { "type": "string", "const": "goclaw" },
"version": { "type": "string" }
}
}
}
}