mautrix-go/event/cmdschema/testdata/parse_quote.schema.json
2026-01-12 00:52:24 +02:00

46 lines
1,002 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema#",
"$id": "parse_quote.schema.json",
"title": "parseQuote test cases",
"description": "Test cases for the parseQuoted function",
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"input",
"output"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the test case"
},
"input": {
"type": "string",
"description": "Input string to be parsed"
},
"output": {
"type": "array",
"description": "Expected output of parsing: [first word, remaining text, was quoted]",
"minItems": 3,
"maxItems": 3,
"prefixItems": [
{
"type": "string",
"description": "First parsed word"
},
{
"type": "string",
"description": "Remaining text after the first word"
},
{
"type": "boolean",
"description": "Whether the first word was quoted"
}
]
}
},
"additionalProperties": false
}
}