DebugBodyParams
Declares the fields of a route's request body (DebugRoute.body): the members of a JSON object, or the fields of a form when DebugRoute.acceptsForm is on.
Functions
Declares a parameter named name that is true or false.
Declares a decimal parameter named name, such as 0.35 or 1e-3, as a Double, in the range of DebugNumberSpec.min and DebugNumberSpec.max when they are set. A whole number, such as 2, is a decimal too. NaN, the infinities, and a number too large for a Double get a 400: JSON can't carry them. In the query or a form, the value is written as a JSON number, optionally with a leading +, so 0x1p3 and 1d get a 400.
Declares a whole-number parameter named name, from Int.MIN_VALUE to Int.MAX_VALUE unless DebugIntegerSpec.min and DebugIntegerSpec.max narrow it.
Declares a field named name that takes any JSON value. The handler gets the value as JSON text, such as ["a","b"] or "text", and parses it itself. Set DebugParamSpec.schema to describe the value in the OpenAPI document.
Declares a string parameter named name.