{
  "title": "World Bank Commodity Prices – Monthly Changes & Revisions",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "commodities": {
      "title": "Commodity basket",
      "type": "array",
      "editor": "select",
      "items": {
        "type": "string",
        "enum": [
          "copper",
          "aluminum",
          "nickel",
          "tin",
          "zinc",
          "natural-gas-us",
          "natural-gas-europe",
          "crude-oil-brent",
          "crude-oil-wti",
          "crude-oil-average",
          "maize",
          "urea"
        ],
        "enumTitles": [
          "Copper",
          "Aluminum",
          "Nickel",
          "Tin",
          "Zinc",
          "Natural gas, US",
          "Natural gas, Europe",
          "Crude oil, Brent",
          "Crude oil, WTI",
          "Crude oil, average",
          "Maize",
          "Urea"
        ]
      },
      "default": [
        "copper",
        "aluminum",
        "natural-gas-europe"
      ],
      "prefill": [
        "copper",
        "aluminum",
        "natural-gas-europe"
      ],
      "minItems": 1,
      "maxItems": 5,
      "description": "Choose one to five benchmark series. These are monthly nominal USD observations, not live executable prices."
    },
    "months": {
      "title": "Number of monthly observations per commodity",
      "type": "integer",
      "default": 1,
      "minimum": 1,
      "maximum": 12,
      "description": "Select this many consecutive published months, ending at endMonth or the workbook latest month."
    },
    "endMonth": {
      "title": "End month (optional)",
      "type": "string",
      "editor": "textfield",
      "default": "",
      "description": "Leave blank for the latest month actually published in the workbook. Or use YYYY-MM, such as 2026-09, to revisit historical revisions."
    },
    "maxResults": {
      "title": "Maximum saved results",
      "type": "integer",
      "default": 3,
      "minimum": 1,
      "maximum": 100,
      "description": "Rows are newest month first, then your basket order. For five commodities across 12 months, set 60. The default saves three rows."
    },
    "comparePrevious": {
      "title": "Compare with saved observations",
      "type": "boolean",
      "default": false,
      "description": "Compare matching commodity-month values from earlier complete runs. Monthly changes and source revisions are separate fields."
    },
    "onlyChanges": {
      "title": "Save only new or changed observations",
      "type": "boolean",
      "default": false,
      "description": "Enables comparison. Unchanged rows are skipped without result charges."
    },
    "snapshotName": {
      "title": "Private history name",
      "type": "string",
      "editor": "textfield",
      "default": "default",
      "description": "Use 1–80 letters, digits, underscores or hyphens. Keep the same input scope for repeat comparisons."
    },
    "maxRunSeconds": {
      "title": "Run time budget (seconds)",
      "type": "integer",
      "default": 120,
      "minimum": 30,
      "maximum": 120,
      "description": "Bounded requests and parsing. Incomplete runs do not replace comparison history."
    }
  }
}
