
# invalid-inputs

**422 · Invalid inputs**

The calculator refused the inputs. `errors` lists each one: `pointer` (a JSON Pointer to the input),
`keyword` (the rule it broke: `type`, `minimum`, `maximum`, `enum`, `required`, `additionalProperties`),
`detail`, and sometimes a `hint`:

```json
{
  "type": "https://developers.fincalc.com/problems/invalid-inputs",
  "title": "Invalid inputs",
  "status": 422,
  "detail": "The calculator refused the inputs: errors lists each one.",
  "errors": [
    {
      "pointer": "/interestRate",
      "keyword": "maximum",
      "detail": "must have a maximum value of 0.4",
      "hint": "A percentage, sent as a decimal: 0.065 for 6.5%."
    }
  ]
}
```

**What to do:** Correct each input it names and call again. `GET /v2/calculators/{slug}` describes every
input: its type, range and default. An input you leave out is filled for you (see
[Answers](/answers)), so `required` means it has no default to fill it from.

The same type, with no `errors`, refuses a body that wraps the inputs in an `inputs` object
(`{"inputs": {...}}`): send the inputs as the body itself. Nothing is calculated or counted.
