47 lines
1.6 KiB
JSON
47 lines
1.6 KiB
JSON
{
|
|
"$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" }
|
|
}
|
|
}
|
|
}
|
|
}
|