referencing
referencing copied to clipboard
Cross-specification JSON referencing (JSON Schema, OpenAPI, and the one you just made up!)
This is a potential performance enhancement / laziness enhancement -- we could stop crawling a registry when a particular URI of desire is found -- perhaps relatedly we could store...
This is useful for debugging what's in a registry -- show some unicode-box-drawing output which breaks down all the resources in the registry. Probably this should print URLs in some...
This is probably a useful way to quickly save/load registries, usable by projects like [`jsonschema-specifications`](https://github.com/python-jsonschema/jsonschema-specifications/). A minor thing to decide is whether to automatically call `.crawl` when serializing or not.
I'm trying to build a registry ```python self.registry = Registry().with_resources( (f"#/components/schemas/{k}", Resource.from_contents(v, referencing.jsonschema.DRAFT202012) for k, v in openapi["components"]["schemas"].items() ) ``` but then it fails during validation ```python jsonschema.Draft202012Validator(registry=registry, schema=schema).validate(dict) ```...
updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.7 → v0.6.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.7...v0.6.8)
Hello! I have a [library](https://github.com/Benchling-Open-Source/allotropy/) that formats scientific data into a JSON schema called the `Allotrope Standard Model` ([ASM](https://www.allotrope.org/introduction-to-allotrope-simple-model#:~:text=The%20Allotrope%20Simple%20Model%20(ASM,by%20any%20modern%20software%20system.))) The validation schemas are fairly large and complicated compared to other...
We've been using jsonschema for a while now, and it has introduced `referencing` as a new dependency. We are reluctant to introduce an unstable dependency, but don't went to get...
The `pytest-subtests` is deprecated (see https://github.com/pytest-dev/pytest-subtests) because it was merged to Pytest recently. Please remove dependency on `pytest-subtests` and switch to Pytest 9.
Hi! I'm writing a documentation tool for our configs. Basically I'm iterating over a json schema and resolve `$ref`s via a resolver. Whenever I resolve a new `$ref`, I need...