-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Full support for the common test suite #163
Comments
And it might also be worth waiting for the common test suite guys to make their format tests use valid json (not just raw strings) first... (As mentioned in #148 ) |
I have a branch that uses webmock to pass the refRemote specs, but haven't had a chance to send a PR for it. I'll submit it later today. |
I'll look into passing the disallow tests. For the format tests, we aren't far off from full draft4 support if we implement basic draft3 defines more formats, but the test suite only exercises (in addition to
I dunno how I feel about half-baked format validations just to pass the optional tests, tbh. Is it worth the effort / maintenance? |
I think that, rather than putting in validations that we know are awful, we’d do better to continue skipping tests for formats that we don’t want to support. We’d need to update the common test suite test to have more fine-grained filtering of tests (so we can skip individual tests within a test file, rather than just the whole file)= |
I agree with @iainbeeston - many of the formats just don't make any sense (or are ambigious) from a validation perspective. |
@iainbeeston, what about changing the exclusions list for tests to something like this:
Then you can exclude a whole file, or just individual tests within a file. Alternately, if you planned on never ignoring an entire file permanently, I can drop the If that looks reasonable, I can whip up a PR for that pretty quickly. |
My gut feel is go for whichever is easier to implement (I'm guessing the version without all?). It's not something that will change often, and even then only to add or remove one or two tests= |
Yes, that is possible and by unregistering a custom validator the default will be restored. Removing a default validator is not possible. |
@iainbeeston, PR submitted. Let me know if you think the structure of |
This has been resolved since 31f6faf; we now only skip the format tests we are explicitly opting out of. |
Now that json-schema tests itself against the json schema common test suite (great work @mpalmer !) I think we should aim for full compatibility, at least with the non-optional parts of the spec.
Right now we're skipping the followed required tests:
And the following optional tests:
I think at the very least remote ref and format should be fixed up (although format might be tricky because of the variety of optional formats in json-schema)
The text was updated successfully, but these errors were encountered: