Raw schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"description": "The gold, one entry per item or per group of the same kind.",
"items": {
"type": "object",
"properties": {
"grams": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000,
"description": "Weight in grams (the whole item)."
},
"form": {
"type": "string",
"enum": [
"bar",
"jewellery",
"other"
],
"description": "bar (default), jewellery, or other."
},
"karat": {
"type": "integer",
"enum": [
24,
22,
21,
20,
18,
14,
10,
9
],
"description": "Karat. Required for jewellery unless fineness is given."
},
"fineness": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000,
"description": "Fineness in parts per thousand, e.g. 999.9 or 750. Overrides karat. Bars without it count as 999.9."
},
"worn": {
"type": "boolean",
"description": "Jewellery that is regularly worn. Default false."
}
},
"required": [
"grams"
],
"additionalProperties": false
}
},
"worn_jewellery": {
"type": "string",
"enum": [
"show_both",
"exempt",
"zakatable"
],
"description": "The view the person follows on worn jewellery. Default show_both."
},
"nisab": {
"type": "string",
"enum": [
"gold",
"silver"
],
"description": "Which nisab: gold (85 g, default) or silver (595 g)."
},
"currency": {
"type": "string",
"pattern": "^[A-Za-z]{3}$",
"description": "Three-letter currency code. Default IDR in Indonesia, else USD."
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "Two-letter country code. ID values gold at the Antam buyback price."
},
"haul_start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "When the person's gold first reached the nisab (YYYY-MM-DD), if known."
},
"lang": {
"type": "string",
"enum": [
"id",
"en"
],
"description": "Answer language: id = Bahasa Indonesia, en = English (default)."
}
},
"required": [
"items"
],
"additionalProperties": false
}