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
56
57
58
59
60
61
|
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"timestamp": {
"description": "the number of seconds since the Unix epoch",
"type": "string",
"minLength": 10,
"maxLength": 10,
"pattern": "[0-9]{10,10}"
},
"status": {
"description": "represents the overall status of all messages from the analysis results",
"oneOf": [{
"$ref": "#/definitions/lgtm"
}, {
"$ref": "#/definitions/fyi"
}, {
"$ref": "#/definitions/nmw"
}]
},
"url": {
"description": "a publicly readable file, which contains JSON formatted analysis results. Those results should conform to the JSON format of the ShipshapeResponse protocol buffer message defined https://github.com/google/shipshape/blob/master/shipshape/proto/shipshape_rpc.proto",
"type": "string"
},
"v": {
"type": "integer",
"enum": [0]
}
},
"required": [
"timestamp",
"url"
],
"definitions": {
"lgtm": {
"title": "Looks Good To Me",
"description": "indicates the analysis produced no messages",
"type": "string",
"enum": ["lgtm"]
},
"fyi": {
"title": "For your information",
"description": "indicates the analysis produced some messages, but none of them indicate errors",
"type": "string",
"enum": ["fyi"]
},
"nmw": {
"title": "Needs more work",
"description": "indicates the analysis produced at least one message indicating an error",
"type": "string",
"enum": ["nmw"]
}
}
}
|