JSON-Schema-Test-Suite icon indicating copy to clipboard operation
JSON-Schema-Test-Suite copied to clipboard

Add some meta schema tests

Open Julian opened this issue 6 years ago • 2 comments
trafficstars

We should have some tests whose schema is a meta schema and whose instances are schemas.

This would constitute essentially a test suite for the meta schemas, but is also likely useful for downstream implementors (like well, me!).

(This is a note to basically move these two tests here, along with some more, after deciding how to represent these in the suite).

Julian avatar Jan 04 '19 08:01 Julian

https://github.com/Julian/jsonschema/pull/383/files was a PR from a user way back when who PM'ed me offering to add these, but who I didn't finish explaining how to send upstream here, so possibly we can cherry pick those commits onto this repo as a start.

Julian avatar Jan 06 '19 09:01 Julian

Random likely-doable idea: the meta schema is a finite document, so we can likely at very least compute coverage over it (and make sure each property is covered).

Julian avatar Feb 26 '19 00:02 Julian

Considering we backed some of these out (in #718 via https://github.com/json-schema-org/JSON-Schema-Test-Suite/pull/716#issuecomment-1932765403) it actually probably makes sense to close these I think.

Thanks for giving it a shot though.

Julian avatar Apr 06 '24 13:04 Julian