Lines Matching defs:schema
9 #include <valijson/schema.hpp>
58 << "Cannot open schema file, cannot validate JSON, exiting\n\n";
62 nlohmann::json schema =
64 if (schema.is_discarded())
67 << "Illegal schema file detected, cannot validate JSON, exiting\n";
89 if (!validateJson(schema, data))
137 // validates a given input(configuration) with a given json schema file.
140 valijson::Schema schema;
143 parser.populateSchema(schemaAdapter, schema);
146 return validator.validate(schema, targetAdapter, nullptr);