ValidationResult

Result of validating one instance.

@safe
struct ValidationResult {
bool valid;
ValidationError[] errors;
}

Members

Functions

toString
string toString()

Render the errors as a single string, one per line, each formatted as instanceLocation ~ " " ~ keywordLocation ~ ": " ~ message. Returns the empty string when the instance is valid.