Updated flavorstash json schema
* Made vendor optional
This commit is contained in:
parent
9240f1c609
commit
2c645d1b91
@ -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
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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%" }
|
||||||
]
|
]
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
[
|
[
|
||||||
{ "flavor":"FA Apple Pie" },
|
{ "vendor":"FA Hazelnut" }
|
||||||
{ "vendor":"FA Hazelnut" },
|
|
||||||
{ "flavor":"FA Hazelnut" }
|
|
||||||
]
|
]
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"vendor",
|
|
||||||
"flavor"
|
"flavor"
|
||||||
],
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
Loading…
Reference in New Issue
Block a user