Document command simulation contracts
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://trixie.invalid/contracts/v1/bot-command-simulate-response.json",
|
||||
"title": "Trixie bot command simulation response",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["status", "extracted_variables"],
|
||||
"properties": {
|
||||
"status": { "const": "ok" },
|
||||
"rendered": { "type": ["string", "null"], "maxLength": 2000 },
|
||||
"extracted_variables": { "type": "object", "additionalProperties": { "type": "string" } },
|
||||
"error": { "type": ["string", "null"], "maxLength": 500 }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user