Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to access META schemas #520

Closed
manycoding opened this issue Jan 16, 2019 · 1 comment
Closed

How to access META schemas #520

manycoding opened this issue Jan 16, 2019 · 1 comment
Labels
Invalid Not a bug, PEBKAC, or an unsupported setup

Comments

@manycoding
Copy link

manycoding commented Jan 16, 2019

Is there a better way to get a specific meta schema, say draft7, instead of doing this black magic?
I just want to use this in my test suite, since I already have jsonschema dependency.

jsonschema.validators.validator_for(some_schema_here).META_SCHEMA
@Julian
Copy link
Member

Julian commented Jan 16, 2019

validator_for is what you use when you don't know what draft you have.

If you just want the meta schema for a draft, it's just Draft7Validator.META_SCHEMA.

@Julian Julian added the Invalid Not a bug, PEBKAC, or an unsupported setup label Apr 5, 2019
Julian added a commit that referenced this issue Oct 19, 2021
ba3a90534 Merge pull request #523 from olegshtch/extendible-schema-test-suite
458e7ac1e Add test suite to test dynamic reference and anchor link and their independency of order
fe405a119 draft/future -> draft/next in $refs also
3d9d35a2a Merge pull request #522 from json-schema-org/ether/draft-next
11b5076f0 rename draft-future to draft-next
0245dcc94 Merge pull request #521 from olegshtch/add-recursive-ref-test-suite
e9fb9cf45 Merge pull request #517 from ChALkeR/chalker/date-time-leap
f1b230c69 Add test from Appendix C.  Example of recursive schema extension of the draft.
bb2e37317 Test date-time with leap second on a wrong hour/minute
8b797cfe6 Merge pull request #520 from json-schema-org/ether/custom-dialect
5d23f3112 Add tests for invalid date-time past leap second
63f8e93c1 Improve leap seconds test in optional/format/date-time
3d00f593d test the use of the $vocabulary keyword in a custom metaschema

git-subtree-dir: json
git-subtree-split: ba3a9053400dd6237aef9cc63601758b1d266818
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Invalid Not a bug, PEBKAC, or an unsupported setup
Projects
None yet
Development

No branches or pull requests

2 participants