Expand description
OMS JSON → instance tree → OMS JSON.
The root is a single-key object whose key is a global element.
$type selects a concrete type. An undeclared field is carried as
xs:string rather than refused — validation is where that is named.
null is refused. Nesting past crate::MAX_DEPTH is
crate::UciError::TooDeep.
Functions§
- Parses OMS JSON into a
Message. - Parses
sas a number whentype_nameis an XSD numeric primitive. - Walks one JSON value as
type_name.$typeoverrides the declared type. An undeclared key is treated asxs:string. - Maps a JSON scalar onto
Simple.nullis refused. A numeric string is parsed when the declared primitive is numeric. - Serializes
messageas a single-key OMS JSON object.