Skip to content

Commit 502393b

Browse files
committed
docs: Add JSON Schema for the crau-query output
Signed-off-by: Daiki Ueno <dueno@redhat.com>
1 parent b5783ea commit 502393b

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

docs/query.schema.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://github.com/latchset/crypto-auditing/docs/query.schema.json",
4+
"title": "crypto-auditing query output format",
5+
"description": "Output format of crau-query command",
6+
"$defs": {
7+
"Span": {
8+
"type": "array",
9+
"items": {
10+
"type": "object",
11+
"properties": {
12+
"context": { "type": "string" },
13+
"origin": { "type": "string" },
14+
"start": { "type": "number" },
15+
"end": { "type": "number" },
16+
"events": {
17+
"type": "object",
18+
"properties": {
19+
"name": { "type": "string" }
20+
},
21+
"patternProperties": {
22+
"^[^:]+::.+$": {
23+
"type": ["string", "number"]
24+
}
25+
},
26+
"additionalProperties": true,
27+
"requires": ["name"]
28+
},
29+
"spans": { "$ref": "#/$defs/Span" }
30+
}
31+
}
32+
}
33+
},
34+
"$ref": "#/$defs/Span"
35+
}

0 commit comments

Comments
 (0)