Skip to content

Expose SchemaStore as a referencing.Registry.#2

Merged
Julian merged 3 commits intomainfrom
registry
Feb 21, 2024
Merged

Expose SchemaStore as a referencing.Registry.#2
Julian merged 3 commits intomainfrom
registry

Conversation

@Julian
Copy link
Copy Markdown
Member

@Julian Julian commented Oct 1, 2023

This makes e.g.:

    import jsonschema
    import schemastore
    jsonschema.validate(
        instance={},
        schema={
            "$ref": "https://json.schemastore.org/github-action.json",
        },
        registry=schemastore.registry(),
    )

work with no additional twiddling.

@ssbarnea I mentioned briefly wanting to do something with this package ages ago but completely got tied up with other things. How involved do you want to be?

I think you added me to this repo, are you OK with me simply refactoring things even beyond this PR, or do you want to look at them? Are you willing to add me to PyPI as well? And/or are you OK with moving this to the python-jsonschema org?

Julian added 3 commits October 1, 2023 11:02
This makes e.g.:

    ```python
    import jsonschema
    import schemastore
    jsonschema.validate(
        instance={},
        schema={
            "$ref": "https://json.schemastore.org/github-action.json",
        },
        registry=schemastore.registry(),
    )
    ```

work with no additional twiddling.
@Julian
Copy link
Copy Markdown
Member Author

Julian commented Feb 21, 2024

Going to assume you're good with anything here! Will be making a few more changes, and doing the transfer -- if you have any ideas/preferences always feel free to mention!

@Julian Julian merged commit 0869dac into main Feb 21, 2024
@Julian Julian deleted the registry branch February 22, 2024 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant