From ef86532f7e81d52a0705d5a996883eb6d0f9cdd6 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Thu, 13 Aug 2020 19:04:28 +0200 Subject: [PATCH] Initial commit, flavorstash schema --- json/vape/flavorstash/v1-example.json | 4 ++++ json/vape/flavorstash/v1-invalid.json | 5 +++++ json/vape/flavorstash/v1.schema | 27 +++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 json/vape/flavorstash/v1-example.json create mode 100644 json/vape/flavorstash/v1-invalid.json create mode 100644 json/vape/flavorstash/v1.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 + } +}