Updated flavorstash json schema

* Made vendor optional
This commit is contained in:
Chris 2020-08-14 02:05:01 +02:00
parent 9240f1c609
commit 2c645d1b91
4 changed files with 7 additions and 8 deletions

View File

@ -13,8 +13,9 @@ another site.
* For applications, allowing both to save/load from file and clipboard is suggested. * For applications, allowing both to save/load from file and clipboard is suggested.
## Implementation Details ## Implementation Details
The schema is as simplified as possible, meaning only the `vendor` and `flavor` fields are The schema is as simplified as possible, meaning only the `flavor` field is required for
required for each record. each record. It is recommended that the vendor is included, and that the vendor is not
merged into the flavor.
[ [
{ "vendor":"TFA", "flavor":"Smooth" } { "vendor":"TFA", "flavor":"Smooth" }
@ -38,4 +39,4 @@ Application-specific data can (and should) be namespaced using dots, eg. `my_mix

View File

@ -1,4 +1,5 @@
[ [
{ "vendor":"FA", "flavor":"Apple Pie" }, { "vendor":"FA", "flavor":"Apple Pie" },
{ "vendor":"FA", "flavor":"Hazelnut" } { "vendor":"FA", "flavor":"Hazelnut" },
{ "flavor":"WS-23 10%" }
] ]

View File

@ -1,5 +1,3 @@
[ [
{ "flavor":"FA Apple Pie" }, { "vendor":"FA Hazelnut" }
{ "vendor":"FA Hazelnut" },
{ "flavor":"FA Hazelnut" }
] ]

View File

@ -19,7 +19,6 @@
} }
}, },
"required": [ "required": [
"vendor",
"flavor" "flavor"
], ],
"additionalProperties": false "additionalProperties": false