Package dev.metaschema.core.model.validation


package dev.metaschema.core.model.validation
Schema-based content validation for Metaschema instances.

This package provides validators for checking Metaschema-based content against generated XML Schema and JSON Schema documents. It supports validating content files to ensure they conform to the structure defined by a Metaschema module.

Key Interfaces and Classes

Usage Context

This validation framework differs from constraint validation (IConstraint) in that it:

  • Validates against schema documents (XSD/JSON Schema) rather than constraint rules
  • Checks structural conformance and data type compliance
  • Is typically used for validating external content files before databinding
  • Provides lower-level validation compared to Metaschema constraint validation

For constraint-based validation (e.g., allowed values, uniqueness, cardinality), use the IConstraint instead.

See Also: