-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgradetool-policy-schema.json
59 lines (59 loc) · 1.52 KB
/
gradetool-policy-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
56
57
58
59
{
"$id": "http://test-network-function.com/policy3",
"title": "Claim Policy Schema",
"additionalProperties": false,
"definitions": {
"identifier": {
"$id": "#identifier",
"type": "object",
"description": "identifier is a per testcase unique identifier.",
"properties": {
"url": {
"type": "string",
"description": "url stores the unique url for a test."
},
"version": {
"type": "string",
"description": "version stores the semantic version of the test."
}
},
"additionalProperties": false,
"required": [
"url",
"version"
]
},
"grade": {
"$id": "#grade",
"type": "object",
"description": "the certification grade",
"properties": {
"gradeName": {
"type": "string",
"description": "the name of the grade (i.e., good, better, or best)"
},
"requiredPassingTests": {
"type": "array",
"description": "the test identifiers that must pass to achieve the given grade.",
"items": {
"$ref": "#identifier"
}
},
"nextGrade": {
"$ref": "#grade",
"description": "CNF Certification grading is progressive. nextGrade allows one to define the next better level"
}
},
"required": [
"gradeName",
"requiredPassingTests"
]
}
},
"properties": {
"grades": {
"type": "object",
"$ref": "#grade"
}
}
}