Problem types
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:
Code
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), 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.
Last modified on