Skip to content

Enhancement request: provide specific documentation on how to make schema validation use only local files #1308

@rohan0rtiz0

Description

@rohan0rtiz0

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 the check-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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions