code property
final
Optional machine‑readable code (e.g. 'type_mismatch', 'required_missing')
Each expectation can include a code
(namespaced, e.g. type.mismatch
, value.range_out_of_bounds
) and
a structured data
payload for machine processing (localization, analytics, conditional UI, etc.).
See docs/expectation_codes.md for the authoritative mapping of built-in validators to codes & data shapes.
Implementation
final String? code;