23{
24 "$schema": "http://json-schema.org/draft-07/schema#",
25 "title": "A person",
26 "properties": {
27 "name": {
28 "description": "Name",
29 "type": "string"
30 },
31 "age": {
32 "description": "Age of the person",
33 "type": "number",
34 "minimum": 2,
35 "maximum": 200
36 },
37 "phones": {
38 "type": "array",
39 "items": {
40 "type": "number"
41 }
42 }
43 },
44 "required": [
45 "name",
46 "age"
47 ],
48 "additionalProperties": false,
49 "type": "object"
50})"_json;
54 void error(
const nlohmann::json::json_pointer &ptr,
const json &instance,
const std::string &message)
override
57 std::cerr <<
"ERROR: '" << ptr <<
"' - '" << instance <<
"': " << message <<
"\n";