How to refer another schema from one schema?

Hello, Can anyone help me on how can I refer to another JSON schema from a JSON schema. I am using “$ref” keyword but something is not working fine for me.

My schema.json:
{

“id”: “https://example.com/schemas/schema”,
“type”: “object”,
“properties”: {
“road_street_block_sector_of_landlord”: {
“$ref”: “/schemas/address#/properties/road_street_block_sector_of_landlord”
},
“flat_Door_Building_of_landlord”: {
“$ref”: “/schemas/address#/properties/flat_Door_Building_of_landlord”
}
}

My location.json:

{

“id”: “https://example.com/schemas/address”,

“type”: “object”,

“properties”: {

"flat_Door_Building_of_landlord": { "type": "string" },

"road_street_block_sector_of_landlord": { "type": "string" }

},

“required”: [“flat_Door_Building_of_landlord”]

}

Hi!

Most internal references can be handled just fine by JSON Forms, see this example. External references can only be handled by JSON Forms React Material renderers < v3.0 and was removed completely from JSON Forms with version 3.0.

The recommended approach is to use a resolver library of your choice and hand over the resolved schema to JSON Forms. You can find the documentation for the new approach here, for the old approach here.