Skip to main content

Crate golem_schema

Crate golem_schema 

Source
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.

Re-exports§

pub use model::*;
pub use schema::*;

Modules§

http
Shared HTTP path and file-mapping grammar for metadata producers and consumers.
model
schema
Recursive in-memory mirror of the golem:core@2.0.0 schema model.