{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.percentage.input.json",
  "title": "Percentage — input",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "of",
        "is-what",
        "what",
        "of-what",
        "change",
        "adjust-up",
        "adjust-down",
        "difference"
      ]
    },
    "p": {
      "type": "number"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    },
    "oldV": {
      "type": "number"
    },
    "newV": {
      "type": "number"
    },
    "a": {
      "type": "number"
    },
    "b": {
      "type": "number"
    },
    "pInput": {
      "type": "number"
    },
    "xInput": {
      "type": "number"
    }
  },
  "description": "Phrase modes: P% of X, what percent, of-what, percent change, adjust ±P%, and percentage difference. (calculation_version 1.1.1) Provide at least 1 of: p, x, y, oldV, newV, a, b, pInput, xInput."
}
