{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/osolmaz/yarp/blob/main/rules/schema/fixture.schema.json",
"title": "YARP built-in rule match fixtures",
"type": "object",
"additionalProperties": false,
"required": ["schema_version", "cases"],
"properties": {
"schema_version": { "const": 1 },
"cases": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "rule_id", "argv", "expected_action"],
"properties": {
"id": { "type": "string", "minLength": 1, "maxLength": 160 },
"rule_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"argv": {
"type": "array",
"minItems": 1,
"maxItems": 128,
"items": { "type": "string", "maxLength": 1024 }
},
"expected_action": { "enum": ["reduce", "transform", "passthrough"] }
}
}
}
}
}