Expand description
Schema representation, canonical encoding, and validation.
regex enables the Rust regex crate’s complete existing dialect for text
restrictions and union discriminators. url enables WHATWG URL validation
(including IDNA) and conversions for url::Url. rich-validation enables
both; it is included by default and by host and full.
With default features disabled, the schema representation and fixed MIME, quantity-unit, and tool-identifier grammars remain available. Validation requiring a disabled feature returns an explicit unsupported-feature error; it never accepts a value by skipping its regex or URL restriction. Regex union rendering also fails explicitly. Enable the needed features in guests that validate these rich values. URL schema structure and canonical encoding do not require URL parsing; value validation does.