/
danger-outgoing-process-schema.json
56 lines (55 loc) · 1.74 KB
/
danger-outgoing-process-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Violation": {
"description": "The result of user doing warn, message or fail, built this way for\nexpansion later.",
"properties": {
"file": {
"description": "Optional path to the file",
"type": "string"
},
"line": {
"description": "Optional line in the file",
"type": "number"
},
"message": {
"description": "The string representation",
"type": "string"
}
},
"type": "object"
}
},
"description": "The representation of what running a Dangerfile generates.\nThis needs to be passed between processes, so data only please.",
"properties": {
"fails": {
"description": "Failed messages",
"items": {
"$ref": "#/definitions/Violation"
},
"type": "array"
},
"markdowns": {
"description": "Markdown messages to attach at the bottom of the comment",
"items": {
"$ref": "#/definitions/Violation"
},
"type": "array"
},
"messages": {
"description": "A set of messages to show inline",
"items": {
"$ref": "#/definitions/Violation"
},
"type": "array"
},
"warnings": {
"description": "Messages for info",
"items": {
"$ref": "#/definitions/Violation"
},
"type": "array"
}
},
"type": "object"
}