oa_gateway_uci::validate::rules

Function check_value

Source
fn check_value(
    text: &str,
    schema: &Schema,
    type_name: &str,
    path: &str,
    out: &mut Vec<Violation>,
)
Expand description

Check a leaf against the facets of the type it was declared as.

Length is counted in characters for the string types, which is what XSD means there. On xs:hexBinary a length counts octets — two hex digits each — so A-GRA’s 32-character UUID is 16 octets, not a violation of length="16".