Created
July 17, 2017 19:57
-
-
Save okamanda/219aa915931acc4b0d7c4be9c2465a36 to your computer and use it in GitHub Desktop.
changes between v101 sample json and draft v102
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- sample_code.json 2017-07-12 16:22:02.000000000 -0400 | |
+++ draftcodegovschema.json 2017-07-14 16:20:36.000000000 -0400 | |
@@ -1,49 +1,147 @@ | |
{ | |
- "version":"1.0.1", | |
- "agency": "DOABC", | |
- "projects": [ | |
- { | |
- "name": "mygov", | |
- "organization": "XYZ Department", | |
- "description": "A Platform for Connecting People and Government", | |
- "license": "https://path.to/license", | |
- "openSourceProject": 1, | |
- "governmentWideReuseProject": 0, | |
- | |
- "tags": [ | |
- "platform", | |
- "government", | |
- "connecting", | |
- "people" | |
- ], | |
- "contact": { | |
- "email": "[email protected]", | |
- "name": "Project Coordinator Name", | |
- "URL": "https://twitter.com/projectname", | |
- "phone": "2025551313" | |
- }, | |
- "status": "Alpha", | |
- "vcs": "git", | |
- "repository": "https://github.com/presidential-innovation-fellows/mygov", | |
- "homepage": "https://agency.gov/project-homepage", | |
- "downloadURL": "https://agency.gov/project/dist.tar.gz", | |
- "languages": [ | |
- "java", | |
- "python" | |
- ], | |
- "partners": [ | |
- { | |
- "name": "DOXYZ", | |
- "email": "[email protected]" | |
- } | |
- ], | |
- "exemption": null, | |
- "exemptionText": "No exemption requested", | |
- "updated": { | |
- "lastCommit": "2016-04-30", | |
- "metadataLastUpdated": "2016-04-13", | |
- "lastModified": "2016-04-12" | |
+ "$schema":"http://json-schema.org/draft-04/schema#", | |
+ "title":"Code.gov Inventory", | |
+ "description":"A fedeeral source code catalog", | |
+ "type":"object", | |
+ "properties":{ | |
+ "version":{ | |
+ "type":"string" | |
+ }, | |
+ "agency":{ | |
+ "type":"string" | |
+ }, | |
+ "projects":{ | |
+ "type":"object", | |
+ "properties":{ | |
+ "name":{ | |
+ "type":"string" | |
+ }, | |
+ "organization":{ | |
+ "type":"string" | |
+ }, | |
+ "description":{ | |
+ "type":"string" | |
+ }, | |
+ "license":{ | |
+ "type":"array", | |
+ "items":{ | |
+ "type":"object", | |
+ "properties":{ | |
+ "URL":{ | |
+ "type":"uri" | |
+ }, | |
+ "name":{ | |
+ "type":"string" | |
+ } | |
+ } | |
+ }, | |
+ "openSourceProject":{ | |
+ "type":"boolean" | |
+ }, | |
+ "governmentWideReuseProject":{ | |
+ "type":"boolean" | |
+ }, | |
+ "tags":{ | |
+ "type":"array", | |
+ "items":{ | |
+ "type":"string" | |
+ } | |
+ }, | |
+ "contact":{ | |
+ "type":"object", | |
+ "properties":{ | |
+ "email":{ | |
+ "type":"string" | |
+ }, | |
+ "name":{ | |
+ "type":"string" | |
+ }, | |
+ "URL":{ | |
+ "type":"uri" | |
+ }, | |
+ "phone":{ | |
+ "type":"number" | |
+ } | |
+ } | |
+ }, | |
+ "status":{ | |
+ "type":"string" | |
+ }, | |
+ "vcs":{ | |
+ "type":"string" | |
+ }, | |
+ "repositoryURL":{ | |
+ "type":"uri" | |
+ }, | |
+ "homepageURL":{ | |
+ "type":"uri" | |
+ }, | |
+ "downloadURL":{ | |
+ "type":"uri" | |
+ }, | |
+ "languagues":{ | |
+ "type":"array", | |
+ "items":{ | |
+ "type":"string" | |
+ } | |
+ }, | |
+ "costSavings":{ | |
+ "type":"number" | |
+ }, | |
+ "openSourceMeasureType":{ | |
+ "type":"string" | |
+ }, | |
+ "partners":{ | |
+ "type":"object", | |
+ "properties":{ | |
+ "name":{ | |
+ "type":"string" | |
+ }, | |
+ "email":{ | |
+ "type":"string" | |
+ } | |
+ } | |
+ }, | |
+ "exemption":{ | |
+ "type":"number" | |
+ }, | |
+ "exemptionText":{ | |
+ "type":[ | |
+ "null", | |
+ "number" | |
+ ] | |
+ }, | |
+ "date":{ | |
+ "type":"object", | |
+ "properties":{ | |
+ "created":{ | |
+ "type":"date" | |
+ }, | |
+ "lastModified":{ | |
+ "type":"date" | |
+ }, | |
+ "metadataLastUpdated":{ | |
+ "type":"date" | |
} | |
+ } | |
} | |
- ] | |
-} | |
+ }, | |
+ "required":[ | |
+ "name", | |
+ "repositoryURL", | |
+ "description", | |
+ "licenseURL", | |
+ "openSourceProject", | |
+ "governmentWideReuseProject", | |
+ "tags", | |
+ "contact", | |
+ "email" | |
+ ] | |
+ } | |
+ }, | |
+ "required":[ | |
+ "version", | |
+ "agency", | |
+ "projects" | |
+ ] | |
+} | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment