restructure

This commit is contained in:
Emi Vasilek 2023-11-19 00:18:12 +01:00
parent 9e44070fe7
commit 81fdafb907
13 changed files with 376 additions and 366 deletions

View file

@ -0,0 +1,47 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/ingredients.json",
"title": "Ingredients",
"description": "Ingredients",
"type": "array",
"items": {
"type": "object",
"required": [ "name" ],
"additionalProperties": false,
"properties": {
"name": { "type": "string" },
"wdid": { "type": "integer" },
"prices": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [ "price", "amount", "unit" ],
"properties": {
"price": { "type": "number" },
"amount": { "type": "number" },
"unit": { "type": "string" },
"currency": { "type": "string" }
}
}
},
"conversions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [ "from", "to", "ratio" ],
"properties": {
"from": { "type": "string" },
"to": { "type": "string" },
"ratio": { "type": "number" }
}
}
},
"aliases": {
"type": "array",
"items": { "type": "string" }
}
}
}
}