commit ef86532f7e81d52a0705d5a996883eb6d0f9cdd6 Author: Christopher Vagnetoft Date: Thu Aug 13 19:04:28 2020 +0200 Initial commit, flavorstash schema diff --git a/json/vape/flavorstash/v1-example.json b/json/vape/flavorstash/v1-example.json new file mode 100644 index 0000000..54d7e96 --- /dev/null +++ b/json/vape/flavorstash/v1-example.json @@ -0,0 +1,4 @@ +[ + { "vendor":"FA", "flavor":"Apple Pie" }, + { "vendor":"FA", "flavor":"Hazelnut" } +] diff --git a/json/vape/flavorstash/v1-invalid.json b/json/vape/flavorstash/v1-invalid.json new file mode 100644 index 0000000..0c377a5 --- /dev/null +++ b/json/vape/flavorstash/v1-invalid.json @@ -0,0 +1,5 @@ +[ + { "flavor":"FA Apple Pie" }, + { "vendor":"FA Hazelnut" }, + { "flavor":"FA Hazelnut" } +] diff --git a/json/vape/flavorstash/v1.schema b/json/vape/flavorstash/v1.schema new file mode 100644 index 0000000..d63de13 --- /dev/null +++ b/json/vape/flavorstash/v1.schema @@ -0,0 +1,27 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schema.noccylabs.info/json/vape/flavorstash/v1.json", + "type": "array", + "items": { + "type": "object", + "properties": { + "vendor": { + "type": "string", + "description": "The full or abbreviated vendor name" + }, + "flavor": { + "type": "string", + "description": "The name of the flavoring" + }, + "extra": { + "type": "object", + "description": "Extra data" + } + }, + "required": [ + "vendor", + "flavor" + ], + "additionalProperties": false + } +}