forked from monome/maiden
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json schema for catalog and source files
- Loading branch information
Showing
2 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://raw.githubusercontent.com/monome/maiden/master/pkg/catalog/catalog.schema.json", | ||
"title": "maiden catalog", | ||
"description": "listing of maiden projects", | ||
"type": "object", | ||
"properties": { | ||
"file_info": { | ||
"description": "file format metadata", | ||
"type": "object", | ||
"properties": { | ||
"kind": { | ||
"type": "string" | ||
}, | ||
"version": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ "kind", "version" ] | ||
}, | ||
"catalog_name": { | ||
"type": "string" | ||
}, | ||
"date": { | ||
"type": "string" | ||
}, | ||
"entries": { | ||
"description": "individual project entries", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"project_name": { | ||
"type": "string" | ||
}, | ||
"project_url": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"author": { | ||
"type": "string" | ||
}, | ||
"home_page": { | ||
"type": "string" | ||
}, | ||
"discussion_url": { | ||
"type": "string" | ||
}, | ||
"tags": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"minItems": 1, | ||
"uniqueItems": true | ||
}, | ||
"version": { | ||
"type": "string" | ||
}, | ||
"origin": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ "project_name", "project_url" ] | ||
} | ||
} | ||
}, | ||
"required": [ "file_info", "catalog_name", "entries" ] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://raw.githubusercontent.com/monome/maiden/master/pkg/catalog/source.schema.json", | ||
"title": "maiden catalog source file", | ||
"description": "details of maiden catalog to download", | ||
"type": "object", | ||
"properties": { | ||
"file_info": { | ||
"description": "file format metadata", | ||
"type": "object", | ||
"properties": { | ||
"kind": { | ||
"type": "string" | ||
}, | ||
"version": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ "kind", "version" ] | ||
}, | ||
"source": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"method": { | ||
"type": "string" | ||
}, | ||
"parameters": { | ||
"type": "object" | ||
} | ||
}, | ||
"required": [ "name", "method", "parameters" ] | ||
} | ||
}, | ||
"required": [ "file_info", "source" ] | ||
} |