Skip to main content

Module valita

Module valita 

Source
Expand description

A small interpreter of valita schemas (packages/shared/src/valita.ts), for messages kept as JSON rather than decoded into Rust types.

Schema::parse accepts what valita accepts in passthrough mode and returns what it returns in strip mode: objects lose the keys their schema doesn’t name. A union picks its first option that accepts.

Enums§

Field
Schema