| 12345678910111213141516171819202122232425 |
- #pragma once
- #include <jvalidate/forward.h>
- namespace jvalidate {
- struct ValidationConfig {
- // This property controls our willingness to engage in type coercion
- // in order to label any two documents as equal to one another.
- // If set to true, a best effort will be made to coerce the scalar type
- // of documents to match the typing of their pairs.
- // We'll also pretend that the empty array ([]) and empty object ({}) are
- // equal to one another.
- bool strict_equality = true;
- // When enabled, if a property is "Missing", but the associated subschema in
- // PropertiesConstraint has a default associated with it - then we construct
- // that object into the document.
- bool construct_default_values = false;
- // When enabled, we will validate format constraints on the document, instead
- // of using them purely as annotations.
- // TODO(samjaffe): A schema can also indicate this using $vocabulary
- bool validate_format = false;
- };
- }
|