Hello dear Vert.x community,
I want to use the vertx-json-schema (
JSON Schema | Eclipse Vert.x (vertx.io)) to validate a Json thnaks to a schema that refers second schema
within the same File.I could verify when second schema is outside, in an External File;
This is a sample of JSON schema file below.
----------------------------------
{
"schema": {
"$ref": "#/components/schemas/Caller"
},
"components": {
"schemas": {
"Caller": {
"type": "object",
"required": [
"name"
],
"description": "Name of the caller.",
"properties": {
"name": {
"description": "Name of the caller",
"type": "string"
}
}
}
}
}
}
-----------------------------
I guess, I have to parse the "#/components/schemas/Caller" schema first with providing a correct JsonPointer for registration in schemaRouter.
However, I cannot find how :/
Any Help?
Thanks,
David