DebugParam

class DebugParam<T>

The handle of a declared parameter. The handler reads the parameter's value with DebugCall.get: call[param]. T is nullable for an optional parameter.

Properties

Link copied to clipboard

The parameter's name.

Functions

Link copied to clipboard

Makes the parameter required, and returns its handle with a type that is not nullable. A request without it gets a 400 with the parameter's name as field.

Link copied to clipboard
fun withDefault(value: T & Any): DebugParam<T & Any>

Gives the parameter the value value when the request does not give it, and returns its handle with a type that is not nullable. The OpenAPI document shows it as the default.