Skip to main content

validate_with_mode

Function validate_with_mode 

Source
pub fn validate_with_mode(
    document: &EureDocument,
    schema: &SchemaDocument,
    mode: UnionTagMode,
) -> ValidationOutput
Expand description

Validate a document against a schema with the specified union tag mode.

ยงArguments

  • document - The document to validate
  • schema - The schema to validate against
  • mode - The union tag mode to use:
    • UnionTagMode::Eure: Use $variant extension or untagged matching (native Eure documents)
    • UnionTagMode::Repr: Use only VariantRepr patterns (JSON/YAML imports)