You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Currently I have json_schema which defines "ref" variables which point to other schema files from a top level directory. For example:
"$ref": "/core/subdir/my_ref"
However, sometimes I define refs that are "relative" paths. This means I have a "schema" file that lives in the folder /core/subdir that defines refs as:
However, what I really need is a loader function that can resolve these "relative refs" based on the folder it lives in and to check if it exists or not. Is there a way to easily implement all of this using this library?
The text was updated successfully, but these errors were encountered:
You actually need to first convert a relative-iri to an absolute-iri using a base-iri indicated by $id or if missing by its retrieval-iri. This absolute-iri is actually just an identifier and doesn't necessarily map to a retrieval-iri.
@justin-tay I'm so dumb.... That makes complete sense! Thanks for helping me out. Sorry about posting in the wrong forum, I sometimes accidentally pull the JAVA github page VS the c++ one and didn't double check to make sure it was the correct place.
Hey! Currently I have json_schema which defines "ref" variables which point to other schema files from a top level directory. For example:
"$ref": "/core/subdir/my_ref"
However, sometimes I define refs that are "relative" paths. This means I have a "schema" file that lives in the folder
/core/subdir
that defines refs as:"$ref": "my_ref"
Currently my loader functions looks like:
However, what I really need is a loader function that can resolve these "relative refs" based on the folder it lives in and to check if it exists or not. Is there a way to easily implement all of this using this library?
The text was updated successfully, but these errors were encountered: