Skip to main content

Module params

Module params 

Source
Expand description

Strong parameters: a Rails-style allowlist over untyped request params.

Deserializing straight into a typed struct is the common path in doido, but when you hold an untyped params object (e.g. a nested form) Params lets you require a key and permit an explicit set of fields before use, so unexpected keys can never be mass-assigned.

Structsยง

Params
A wrapper around a JSON params object supporting require/permit.