Skip to content

Commit 42b2dd0

Browse files
Merge pull request #40 from DSACMS/DSACMS/nat/agency-index-update
Docs: Updates to agency-index.json
2 parents a8ee6d1 + 5ab0652 commit 42b2dd0

2 files changed

Lines changed: 68 additions & 5 deletions

File tree

docs/agency-index.md

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## agency-index.json
1+
# agency-index.json
22

33
The SHARE IT Act requires federal agencies to publish metadata for their software projects. This metadata is compiled into an **agency-index.json** file, which serves as a centralized inventory of the agency's software portfolio.
44

5-
View the agency-index.json schema here: https://github.com/DSACMS/gov-codejson/tree/main/schemas/agency-index/schema-2.0.0.json
5+
## Generate an agency-index.json file for submission
66

77
To create an agency-index.json:
88
1. Identify GitHub organizations and other platforms where source code is hosted
@@ -13,4 +13,64 @@ To create an agency-index.json:
1313
- Agency's top level domain (TLD)
1414
- A GitHub repository
1515

16+
## agency-index.json Fields
17+
18+
<table>
19+
<thead>
20+
<tr>
21+
<th>Field</th>
22+
<th>Presence</th>
23+
<th>Type</th>
24+
<th>Description</th>
25+
<th>Options/Examples</th>
26+
</tr>
27+
</thead>
28+
<tbody>
29+
<tr>
30+
<td>agency</td>
31+
<td>required</td>
32+
<td>str</td>
33+
<td>The agency acronym for Clinger Cohen Act agency, as defined by the United States Government Manual.</td>
34+
<td></td>
35+
</tr>
36+
<tr>
37+
<td>measurementType/method</td>
38+
<td>required</td>
39+
<td>str</td>
40+
<td>An enumerated list of methods for measuring the open source requirement.</td>
41+
<td>
42+
- linesOfCode<br>
43+
- modules<br>
44+
- cost<br>
45+
- projects<br>
46+
- systems<br>
47+
- other<br>
48+
</td>
49+
</tr>
50+
<tr>
51+
<td>measurementType/ifOther</td>
52+
<td>optional</td>
53+
<td>str</td>
54+
<td>A one- or two- sentence description of the measurement type used, if 'other' is selected as the value of 'method' field.</td>
55+
<td></td>
56+
</tr>
57+
<tr>
58+
<td>releases</td>
59+
<td>required</td>
60+
<td>array</td>
61+
<td>An array of code.json objects containing each versioned source code release made available. </td>
62+
<td></td>
63+
</tr>
64+
<tr>
65+
<td>version</td>
66+
<td>required</td>
67+
<td>str</td>
68+
<td>The version of the metadata schema in use. Implements semantic versioning 2.0.0 rules as defined at http://semver.org.</td>
69+
<td></td>
70+
</tr>
71+
<tbody>
72+
<table>
73+
74+
View the agency-index.json schema here: https://github.com/DSACMS/gov-codejson/tree/main/schemas/agency-index/schema-2.0.0.json
75+
1676
More examples of agency index files can be found here: https://github.com/DSACMS/code-gov/tree/main/agency-indexes

schemas/agency-index/schema-2.0.0.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3-
"title": "Code.gov Inventory",
4-
"description": "A federal source code catalog",
3+
"title": "Agency Source Code Inventory",
4+
"description": "Agency source code catalog",
55
"type": "object",
66
"required": [
77
"version",
@@ -39,16 +39,19 @@
3939
"releases": {
4040
"type": "array",
4141
"items": {
42+
"type": "object",
43+
"description": "A code.json object containing each versioned source code release made available.",
4244
"allOf": [
4345
{
4446
"$ref": "../schema-2.0.0.json"
4547
}
4648
]
4749
},
50+
"description": "An array of code.json objects containing each versioned source code release made available.",
4851
"additionalProperties": false
4952
},
5053
"version": {
51-
"description": "The version of the metadata schema in use. Implements semantic versioning 2.0.0 rules as defined at http://semver.org",
54+
"description": "The version of the metadata schema in use. Implements semantic versioning 2.0.0 rules as defined at http://semver.org.",
5255
"type": "string"
5356
}
5457
}

0 commit comments

Comments
 (0)