Skip to content

Commit e7b1a82

Browse files
Add agency-index schema
Signed-off-by: Natalia Luzuriaga <natalia.luzuriaga@cms.hhs.gov>
1 parent 58927fe commit e7b1a82

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Code.gov Inventory",
4+
"description": "A federal source code catalog",
5+
"type": "object",
6+
"required": [
7+
"version",
8+
"measurementType",
9+
"agency",
10+
"releases"
11+
],
12+
"properties": {
13+
"agency": {
14+
"description": "The agency acronym for Clinger Cohen Act agency, as defined by the United States Government Manual.",
15+
"type": "string"
16+
},
17+
"measurementType": {
18+
"type": "object",
19+
"properties": {
20+
"ifOther": {
21+
"description": "A one- or two- sentence description of the measurement type used, if 'other' is selected as the value of 'method' field.",
22+
"type": "string"
23+
},
24+
"method": {
25+
"description": "An enumerated list of methods for measuring the open source requirement.",
26+
"type": "string",
27+
"enum": [
28+
"linesOfCode",
29+
"modules",
30+
"cost",
31+
"projects",
32+
"systems",
33+
"other"
34+
]
35+
}
36+
},
37+
"additionalProperties": false
38+
},
39+
"releases": {
40+
"type": "array",
41+
"items": {
42+
"allOf": [
43+
{
44+
"$ref": "../schema-2.0.0.json"
45+
}
46+
]
47+
},
48+
"additionalProperties": false
49+
},
50+
"version": {
51+
"description": "The version of the metadata schema in use. Implements semantic versioning 2.0.0 rules as defined at http://semver.org",
52+
"type": "string"
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)