Description
This is a question if there is any good way to solve seperate projects/namespacing while still being able to reference one project schema from the other without using a domain
"$id": "https://mydomain.com/schema/MyNamepsace/TheSchema.json"
or using fixes filepathing between them. E.g. some form of relative namespacing that when generating can more easily be overriden to the root of the other project. Tools could then configure this for how to resolve that namespace.
Basically if you make a project that you share with multiple other organization & then make an adaptation for another that reference data in the first today I need domain or we need same relative filepaths or accept they are mixed. This is from development perspective to create easy mapping & reuse of custom schemas where each project schemas are not self containing.
How to set it up I have not really any great idea, more example of intention:
"namespaces": {
"A": "MyNamespace"
}
"$ref": "@A/TheSchema.json#MyObject"
or just
"$ref": "@MyNamespace/TheSchema#MyObject"
@A can be found in file root: C:\MyProject\MyNamespace\