Initial commit, flavorstash schema
This commit is contained in:
commit
ef86532f7e
4
json/vape/flavorstash/v1-example.json
Normal file
4
json/vape/flavorstash/v1-example.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[
|
||||||
|
{ "vendor":"FA", "flavor":"Apple Pie" },
|
||||||
|
{ "vendor":"FA", "flavor":"Hazelnut" }
|
||||||
|
]
|
5
json/vape/flavorstash/v1-invalid.json
Normal file
5
json/vape/flavorstash/v1-invalid.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[
|
||||||
|
{ "flavor":"FA Apple Pie" },
|
||||||
|
{ "vendor":"FA Hazelnut" },
|
||||||
|
{ "flavor":"FA Hazelnut" }
|
||||||
|
]
|
27
json/vape/flavorstash/v1.schema
Normal file
27
json/vape/flavorstash/v1.schema
Normal file
@ -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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user