feat: define realtime and error contracts
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://trixie.invalid/contracts/v1/error.json",
|
||||
"title": "Trixie API Error",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["code", "message", "request_id"],
|
||||
"properties": {
|
||||
"code": { "type": "string", "pattern": "^[a-z0-9_]+$" },
|
||||
"message": { "type": "string", "minLength": 1 },
|
||||
"request_id": { "type": "string", "minLength": 1 }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user