Enhancement request: provide specific documentation on how to make schema validation use only local files #1309
Replies: 4 comments 6 replies
-
Hi there -- within this library, or as far as |
Beta Was this translation helpful? Give feedback.
-
Hello and thanks for the quick reply. I was specifically using |
Beta Was this translation helpful? Give feedback.
-
Got it, then the docs you should have a look at are here -- specifically as long as you provide your own |
Beta Was this translation helpful? Give feedback.
-
Thanks, but it's still not clear to me how to translate that example into a "just use local files for lookup" example. I tried the following in the spirit of
This gives an error:
Where File2.json is in the same directory as MySchema.json, and referenced from within it as
(And again, I know the schema and referencing is all fine right now, because both online lookup works, and |
Beta Was this translation helpful? Give feedback.
-
I want to make Schema validation use only local files on the filesystem, even if the "$id" field has an HTTP URL. (So that my script doesn't continuously hit the website.) I can't figure out how to do that based on the current documentation. My request is that you include documentation about how to perform this specific type of usage.
(Note: local-file-only validation works for me with
check-jsonschema --base-uri .
, but because thecheck-jsonschema
code is too object-oriented and complicated, I can't figure out how to do the same thing with just.Also note: ChatGPT has absorbed only the older RefResolver approach, which gives a deprecation warning. (Probably from places like StackOverflow where old reference to that from 2019 are the top hit.). And it's not able to figure out / help me with doing this the right way either.)
Beta Was this translation helpful? Give feedback.
All reactions