|
MNX Document Model
|
provides schema- and semantic-level validation functions for MNX documents More...
Classes | |
| struct | SemanticValidationResult |
| Returns the results of semantic validation. More... | |
| struct | ValidationResult |
| Encapsulates a schema validation result. More... | |
Functions | |
| ValidationResult | schemaValidate (const Document &document, const std::optional< std::string > &jsonSchema=std::nullopt) |
| Validates a document against a JSON schema. | |
| SemanticValidationResult | semanticValidate (const Document &document) |
| Validates the semantics of the input MNX document. | |
provides schema- and semantic-level validation functions for MNX documents
| ValidationResult mnx::validation::schemaValidate | ( | const Document & | document, |
| const std::optional< std::string > & | jsonSchema = std::nullopt |
||
| ) |
Validates a document against a JSON schema.
| document | The mnx::Document to validate |
| jsonSchema | The JSON schema to validate against, or std::nullopt for the embedded schema |
| SemanticValidationResult mnx::validation::semanticValidate | ( | const Document & | document | ) |
Validates the semantics of the input MNX document.
| document | The document to validate |