#include <nlohmann/json.hpp>
#include <nlohmann/json-schema.hpp>
#include <iostream>
Go to the source code of this file.
◆ main()
◆ schema
Initial value:= R"(
{
"id": "http://localhost:1234/scope_change_defs2.json",
"type" : "object",
"properties": {
"list": {"$ref": "#/definitions/baz/definitions/bar"}
},
"definitions": {
"baz": {
"id": "folder/",
"definitions": {
"bar": {
"type": "array",
"items": {"$ref": "folderInteger.json"}
}
}
}
}
})"_json
Definition at line 69 of file id-ref.cpp.
◆ schema_draft
Initial value:= R"(
{
"$id": "http://example.com/root.json",
"definitions": {
"A": { "$id": "#foo" },
"B": {
"$id": "other.json",
"definitions": {
"X": { "$id": "#bar" },
"Y": { "$id": "t/inner.json" }
}
},
"C": {
"$id": "urn:uuid:ee564b8a-7a87-4125-8c96-e9f123d6766f",
"definitions": {
"Z": { "$id": "#bar" },
"9": { "$id": "http://example.com/drole.json" }
}
}
}
}
)"_json
Definition at line 9 of file id-ref.cpp.
Referenced by main().