Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix required data on Metadata Schema 2.0.0 (version) #232

Merged
merged 1 commit into from
Jun 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/data/schema.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"$schema":"http://json-schema.org/draft-04/schema#","title":"Code.gov Inventory","description":"A federal source code catalog","type":"object","properties":{"version":{"type":"string","description":"The version of the metadata schema in use. Implements semantic versioning 2.0.0 rules as defined at http://semver.org"},"measurementType":{"type":"object","description":"An object containing description of the open source measurement method.","properties":{"method":{"type":"string","enum":["linesOfCode","modules","cost","projects","systems","other"],"description":"An enumerated list of methods for measuring the open source requirement: (1) cost: Cost of software development, (2) systems: system certification and accreditation boundaries, (3) projects: A complete software solution / project, (4) modules: A self-contained module from a software solution, (5) linesOfCode: Source lines of code, (6) other: Another measurement method not referenced above"},"ifOther":{"type":"string","description":"A one- or two- sentence description of the measurement type used, if 'other' is selected as the value of 'method' field."}},"additionalProperties":false},"agency":{"type":"string","description":"The agency acronym for Clinger Cohen Act agency, as defined by the United States Government Manual."},"releases":{"type":"array","items":{"type":"object","description":"An object containing each versioned source code release made available.","properties":{"name":{"type":"string","description":"The name of the release."},"version":{"type":"string","description":"The version for this release. For example, '1.0.0'."},"organization":{"type":"string","description":"The organization or component within the agency to which the releases listed belong. For example, '18F' or 'Navy'."},"description":{"type":"string","description":"A one or two sentence description of the release."},"permissions":{"type":"object","description":"An object containing description of the usage/restrictions regarding the release.","properties":{"licenses":{"type":["array","null"],"items":{"type":"object","properties":{"URL":{"type":"string","format":"uri","description":"The URL of the release license, if available. If not, null should be used."},"name":{"type":"string","description":"An abbreviation for the name of the license. For example, 'CC0' or 'MIT'."}},"additionalProperties":false}},"usageType":{"type":"string","description":"A list of enumerated values which describes the usage permissions for the release: (1) openSource: Open source; (2) governmentWideReuse: Government-wide reuse; (3) exemptByLaw: The sharing of the source code is restricted by law or regulation, including—but not limited to—patent or intellectual property law, the Export Asset Regulations, the International Traffic in Arms Regulation, and the Federal laws and regulations governing classified information; (4) exemptByNationalSecurity: The sharing of the source code would create an identifiable risk to the detriment of national security, confidentiality of Government information, or individual privacy; (5) 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, (6) exemptByAgencyMission: The sharing of the source code would create an identifiable risk to agency mission, programs, or operations; (7) exemptByCIO: The CIO believes it is in the national interest to exempt sharing the source code; (8) exemptByPolicyDate: The release was created prior to the M-16-21 policy (August 8, 2016)","enum":["openSource","governmentWideReuse","exemptByLaw","exemptByNationalSecurity","exemptByAgencySystem","exemptByAgencyMission","exemptByCIO","exemptByPolicyDate"],"additionalProperties":false},"exemptionText":{"type":["string","null"],"description":"If an exemption is listed in the 'usageType' field, this field should include a one- or two- sentence justification for the exemption used."}},"additionalProperties":false,"required":["licenses","usageType"]},"tags":{"type":"array","items":{"type":"string","description":"An array of keywords that will be helpful in discovering and searching for the release."}},"contact":{"type":"object","description":"Point of contact information for the release.","properties":{"email":{"type":"string","description":"The email address for the point of contact for the release."},"name":{"type":"string","description":"The name of the point of contact for the release."},"URL":{"type":"string","format":"uri","description":"The URL to a website that can be used to reach the point of contact. For example, 'http://twitter.com/codeDotGov'."},"phone":{"type":"string","description":"A phone number for the point of contact for the release."}},"additionalProperties":false,"required":["email"]},"status":{"type":"string","description":"The development status of the release.","enum":["Ideation","Development","Alpha","Beta","Release Candidate","Production","Archival"]},"vcs":{"type":"string","description":"A lowercase string with the name of the version control system that is being used for the release. For example, 'git'."},"repositoryURL":{"type":"string","format":"uri","description":"The URL of the public release repository for open source repositories. This field is not required for repositories that are only available as government-wide reuse or are closed (pursuant to one of the exemptions)."},"homepageURL":{"type":"string","format":"uri","description":"The URL of the public release homepage."},"downloadURL":{"type":"string","format":"uri","description":"The URL where a distribution of the release can be found."},"disclaimerURL":{"type":"string","format":"uri","description":"The URL where disclaimer language regarding the release can be found."},"disclaimerText":{"type":"string","description":"Short paragraph that includes disclaimer language to accompany the release."},"languages":{"type":"array","description":" An array of strings with the names of the programming languages in use on the release.","items":{"type":"string"}},"laborHours":{"type":"number","description":"An estimate of total labor hours spent by your organization/component across all versions of this release. This includes labor performed by federal employees and contractors."},"relatedCode":{"type":"array","description":"An array of affiliated government repositories that may be a part of the same project. For example, relatedCode for 'code-gov-front-end' would include 'code-gov-api' and 'code-gov-api-client'.","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the code repository, project, library or release."},"URL":{"type":"string","format":"uri","description":"The URL where the code repository, project, library or release can be found."},"isGovernmentRepo":{"type":"boolean","description":"True or False. Is the code repository owned or managed by a federal agency?"}},"additionalProperties":false}},"reusedCode":{"type":"array","description":"An array of government source code, libraries, frameworks, APIs, platforms or other software used in this release. For example, US Web Design Standards, cloud.gov, Federalist, Digital Services Playbook, Analytics Reporter.","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the software used in this release."},"URL":{"type":"string","format":"uri","description":"The URL where the software can be found."}},"additionalProperties":false}},"partners":{"type":"array","description":"An array of objects including an acronym for each agency partnering on the release and the contact email at such agency.","items":{"type":"object","properties":{"name":{"type":"string","description":"The acronym describing the partner agency."},"email":{"type":"string","description":"The email address for the point of contact at the partner agency."}},"additionalProperties":false}},"date":{"type":"object","description":"A date object describing the release.","properties":{"created":{"type":"string","format":"date","description":"The date the release was created, in YYYY-MM-DD or ISO 8601 format."},"lastModified":{"type":"string","format":"date","description":"The date the release was modified, in YYYY-MM-DD or ISO 8601 format."},"metadataLastUpdated":{"type":"string","format":"date","description":"The date the metadata of the release was last updated, in YYYY-MM-DD or ISO 8601 format."}},"additionalProperties":false}},"required":["name","permissions","repositoryURL","description","laborHours","tags","contact"]},"additionalProperties":false}},"required":["version","measurementType","agency","releases"],"additionalProperties":false}
{"$schema":"http://json-schema.org/draft-04/schema#","title":"Code.gov Inventory","description":"A federal source code catalog","type":"object","properties":{"version":{"type":"string","description":"The version of the metadata schema in use. Implements semantic versioning 2.0.0 rules as defined at http://semver.org"},"measurementType":{"type":"object","description":"An object containing description of the open source measurement method.","properties":{"method":{"type":"string","enum":["linesOfCode","modules","cost","projects","systems","other"],"description":"An enumerated list of methods for measuring the open source requirement: (1) cost: Cost of software development, (2) systems: system certification and accreditation boundaries, (3) projects: A complete software solution / project, (4) modules: A self-contained module from a software solution, (5) linesOfCode: Source lines of code, (6) other: Another measurement method not referenced above"},"ifOther":{"type":"string","description":"A one- or two- sentence description of the measurement type used, if 'other' is selected as the value of 'method' field."}},"required":["method","ifOther"],"additionalProperties":false},"agency":{"type":"string","description":"The agency acronym for Clinger Cohen Act agency, as defined by the United States Government Manual."},"releases":{"type":"array","items":{"type":"object","description":"An object containing each versioned source code release made available.","properties":{"name":{"type":"string","description":"The name of the release."},"version":{"type":"string","description":"The version for this release. For example, '1.0.0'."},"organization":{"type":"string","description":"The organization or component within the agency to which the releases listed belong. For example, '18F' or 'Navy'."},"description":{"type":"string","description":"A one or two sentence description of the release."},"permissions":{"type":"object","description":"An object containing description of the usage/restrictions regarding the release.","properties":{"licenses":{"type":["array","null"],"items":{"type":"object","properties":{"URL":{"type":"string","format":"uri","description":"The URL of the release license, if available. If not, null should be used."},"name":{"type":"string","description":"An abbreviation for the name of the license. For example, 'CC0' or 'MIT'."}},"additionalProperties":false}},"usageType":{"type":"string","description":"A list of enumerated values which describes the usage permissions for the release: (1) openSource: Open source; (2) governmentWideReuse: Government-wide reuse; (3) exemptByLaw: The sharing of the source code is restricted by law or regulation, including—but not limited to—patent or intellectual property law, the Export Asset Regulations, the International Traffic in Arms Regulation, and the Federal laws and regulations governing classified information; (4) exemptByNationalSecurity: The sharing of the source code would create an identifiable risk to the detriment of national security, confidentiality of Government information, or individual privacy; (5) 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, (6) exemptByAgencyMission: The sharing of the source code would create an identifiable risk to agency mission, programs, or operations; (7) exemptByCIO: The CIO believes it is in the national interest to exempt sharing the source code; (8) exemptByPolicyDate: The release was created prior to the M-16-21 policy (August 8, 2016)","enum":["openSource","governmentWideReuse","exemptByLaw","exemptByNationalSecurity","exemptByAgencySystem","exemptByAgencyMission","exemptByCIO","exemptByPolicyDate"],"additionalProperties":false},"exemptionText":{"type":["string","null"],"description":"If an exemption is listed in the 'usageType' field, this field should include a one- or two- sentence justification for the exemption used."}},"additionalProperties":false,"required":["licenses","usageType"]},"tags":{"type":"array","items":{"type":"string","description":"An array of keywords that will be helpful in discovering and searching for the release."}},"contact":{"type":"object","description":"Point of contact information for the release.","properties":{"email":{"type":"string","description":"The email address for the point of contact for the release."},"name":{"type":"string","description":"The name of the point of contact for the release."},"URL":{"type":"string","format":"uri","description":"The URL to a website that can be used to reach the point of contact. For example, 'http://twitter.com/codeDotGov'."},"phone":{"type":"string","description":"A phone number for the point of contact for the release."}},"additionalProperties":false,"required":["email"]},"status":{"type":"string","description":"The development status of the release.","enum":["Ideation","Development","Alpha","Beta","Release Candidate","Production","Archival"]},"vcs":{"type":"string","description":"A lowercase string with the name of the version control system that is being used for the release. For example, 'git'."},"repositoryURL":{"type":"string","format":"uri","description":"The URL of the public release repository for open source repositories. This field is not required for repositories that are only available as government-wide reuse or are closed (pursuant to one of the exemptions)."},"homepageURL":{"type":"string","format":"uri","description":"The URL of the public release homepage."},"downloadURL":{"type":"string","format":"uri","description":"The URL where a distribution of the release can be found."},"disclaimerURL":{"type":"string","format":"uri","description":"The URL where disclaimer language regarding the release can be found."},"disclaimerText":{"type":"string","description":"Short paragraph that includes disclaimer language to accompany the release."},"languages":{"type":"array","description":" An array of strings with the names of the programming languages in use on the release.","items":{"type":"string"}},"laborHours":{"type":"number","description":"An estimate of total labor hours spent by your organization/component across all versions of this release. This includes labor performed by federal employees and contractors."},"relatedCode":{"type":"array","description":"An array of affiliated government repositories that may be a part of the same project. For example, relatedCode for 'code-gov-front-end' would include 'code-gov-api' and 'code-gov-api-client'.","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the code repository, project, library or release."},"URL":{"type":"string","format":"uri","description":"The URL where the code repository, project, library or release can be found."},"isGovernmentRepo":{"type":"boolean","description":"True or False. Is the code repository owned or managed by a federal agency?"}},"additionalProperties":false}},"reusedCode":{"type":"array","description":"An array of government source code, libraries, frameworks, APIs, platforms or other software used in this release. For example, US Web Design Standards, cloud.gov, Federalist, Digital Services Playbook, Analytics Reporter.","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the software used in this release."},"URL":{"type":"string","format":"uri","description":"The URL where the software can be found."}},"additionalProperties":false}},"partners":{"type":"array","description":"An array of objects including an acronym for each agency partnering on the release and the contact email at such agency.","items":{"type":"object","properties":{"name":{"type":"string","description":"The acronym describing the partner agency."},"email":{"type":"string","description":"The email address for the point of contact at the partner agency."}},"additionalProperties":false}},"date":{"type":"object","description":"A date object describing the release.","properties":{"created":{"type":"string","format":"date","description":"The date the release was created, in YYYY-MM-DD or ISO 8601 format."},"lastModified":{"type":"string","format":"date","description":"The date the release was modified, in YYYY-MM-DD or ISO 8601 format."},"metadataLastUpdated":{"type":"string","format":"date","description":"The date the metadata of the release was last updated, in YYYY-MM-DD or ISO 8601 format."}},"additionalProperties":false}},"required":["name","permissions","repositoryURL","description","laborHours","tags","contact"]},"additionalProperties":false}},"required":["version","measurementType","agency","releases"],"additionalProperties":false}