mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 02:15:57 +00:00
- 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
22 lines
658 B
JSON
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" }
|
|
}
|
|
}
|
|
}
|
|
}
|