|
1 | 1 | { |
2 | 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://dsacms.github.io/code-json-schema.json", |
3 | 4 | "title": "code.json metadata", |
4 | 5 | "description": "A metadata standard for software repositories", |
5 | 6 | "type": "object", |
|
64 | 65 | "required": [ |
65 | 66 | "name", |
66 | 67 | "URL" |
67 | | - ] |
| 68 | + ], |
| 69 | + "additionalProperties": false |
68 | 70 | } |
69 | 71 | }, |
70 | 72 | "usageType": { |
|
89 | 91 | "exemptByPolicyDate" |
90 | 92 | ] |
91 | 93 | }, |
92 | | - "description": "A list of enumerated values which describes the usage permissions for the release: (1) openSource: Open source; (2) governmentWideReuse: Government-wide reuse; (3) exemptByNationalSecurity: The source code is primarily for use in national security system as defined in section 11103 of title 40, USC; (4) exemptByNationalIntelligence: The source code is developed by an agency or part of an agency that is an element of the intelligence community, as defined in section 3(4) of the National Security Act of 1947; (5) exemptByFOIA: The source code is exempt under the Freedom of Information Act; (6) exemptByEAR: The source code is exempt under the Export Administration Regulations; (7) exemptByITAR: The source code is exempt under the the International Traffic in Arms Regulations; (8) exemptByTSA: The source code is exempt under the regulations of the Transportation Security Administration relating to the protection of Sensitive Security Information; (9) exemptByClassifiedInformation: The source code is exempt under the Federal laws and regulations governing the sharing of classified information not covered by exemptByNationalSecurity, exemptByNationalIntelligence, exemptbyFOIA, exemptByEAR, exemptByITAR, and exemptByTSA; (10) exemptByPrivacyRisk: The sharing or public accessibility of the source code would create an identifiable risk to the privacy of an individual; (11) exemptByIPRestriction: The sharing of the source code is limited by patent or intellectual property restrictions; (12) exemptByAgencySystem: The sharing of the source code would create an identifiable risk to the stability, security, or integrity of the agency’s systems or personnel; (13) exemptByAgencyMission: The sharing of the source code would create an identifiable risk to agency mission, programs, or operations; (14) exemptByCIO: The CIO believes it is in the national interest to exempt sharing the source code; (15) exemptByPolicyDate: The release was created prior to the M-16-21 policy (August 8, 2016)", |
93 | | - "additionalProperties": false |
| 94 | + "description": "A list of enumerated values which describes the usage permissions for the release: (1) openSource: Open source; (2) governmentWideReuse: Government-wide reuse; (3) exemptByNationalSecurity: The source code is primarily for use in national security system as defined in section 11103 of title 40, USC; (4) exemptByNationalIntelligence: The source code is developed by an agency or part of an agency that is an element of the intelligence community, as defined in section 3(4) of the National Security Act of 1947; (5) exemptByFOIA: The source code is exempt under the Freedom of Information Act; (6) exemptByEAR: The source code is exempt under the Export Administration Regulations; (7) exemptByITAR: The source code is exempt under the the International Traffic in Arms Regulations; (8) exemptByTSA: The source code is exempt under the regulations of the Transportation Security Administration relating to the protection of Sensitive Security Information; (9) exemptByClassifiedInformation: The source code is exempt under the Federal laws and regulations governing the sharing of classified information not covered by exemptByNationalSecurity, exemptByNationalIntelligence, exemptbyFOIA, exemptByEAR, exemptByITAR, and exemptByTSA; (10) exemptByPrivacyRisk: The sharing or public accessibility of the source code would create an identifiable risk to the privacy of an individual; (11) exemptByIPRestriction: The sharing of the source code is limited by patent or intellectual property restrictions; (12) exemptByAgencySystem: The sharing of the source code would create an identifiable risk to the stability, security, or integrity of the agency's systems or personnel; (13) exemptByAgencyMission: The sharing of the source code would create an identifiable risk to agency mission, programs, or operations; (14) exemptByCIO: The CIO believes it is in the national interest to exempt sharing the source code; (15) exemptByPolicyDate: The release was created prior to the M-16-21 policy (August 8, 2016)" |
94 | 95 | }, |
95 | 96 | "exemptionText": { |
96 | 97 | "type": [ |
|
137 | 138 | }, |
138 | 139 | "laborHours": { |
139 | 140 | "type": "number", |
| 141 | + "minimum": 0, |
140 | 142 | "description": "Labor hours invested in the project. Calculated using COCOMO measured by the SCC tool: https://github.com/boyter/scc?tab=readme-ov-file#cocomo" |
141 | 143 | }, |
142 | 144 | "reuseFrequency": { |
143 | 145 | "type": "object", |
144 | 146 | "description": "Measures frequency of code reuse in various forms. (e.g. forks, downloads, clones)", |
145 | 147 | "properties": { |
146 | 148 | "forks": { |
147 | | - "type": "integer" |
| 149 | + "type": "integer", |
| 150 | + "minimum": 0 |
148 | 151 | }, |
149 | 152 | "clones": { |
150 | | - "type": "integer" |
| 153 | + "type": "integer", |
| 154 | + "minimum": 0 |
151 | 155 | } |
152 | 156 | }, |
153 | 157 | "additionalProperties": true |
|
157 | 161 | "description": "Programming languages that make up the codebase", |
158 | 162 | "items": { |
159 | 163 | "type": "string" |
160 | | - } |
| 164 | + }, |
| 165 | + "uniqueItems": true |
161 | 166 | }, |
162 | 167 | "maintenance": { |
163 | 168 | "type": "string", |
|
174 | 179 | "description": "Contract number(s) under which the project was developed", |
175 | 180 | "items": { |
176 | 181 | "type": "string" |
177 | | - } |
| 182 | + }, |
| 183 | + "uniqueItems": true |
178 | 184 | }, |
179 | 185 | "SBOM": { |
180 | 186 | "type": "string", |
|
199 | 205 | "format": "date-time", |
200 | 206 | "description": "Date when metadata was last updated" |
201 | 207 | } |
202 | | - } |
| 208 | + }, |
| 209 | + "additionalProperties": false |
203 | 210 | }, |
204 | 211 | "tags": { |
205 | 212 | "type": "array", |
206 | 213 | "description": "Topics and keywords associated with the project to improve search and discoverability", |
207 | 214 | "items": { |
208 | 215 | "type": "string" |
209 | | - } |
| 216 | + }, |
| 217 | + "uniqueItems": true |
210 | 218 | }, |
211 | 219 | "contact": { |
212 | 220 | "type": "object", |
|
221 | 229 | "type": "string", |
222 | 230 | "description": "Name of the point of contact" |
223 | 231 | } |
224 | | - } |
| 232 | + }, |
| 233 | + "additionalProperties": false |
225 | 234 | }, |
226 | 235 | "feedbackMechanism": { |
227 | 236 | "type": "string", |
|
0 commit comments