-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
draft-next
drop tests asserting empty fragments in $id
are valid
#716
draft-next
drop tests asserting empty fragments in $id
are valid
#716
Conversation
also mentioned in marksparkza/jschon#69 but seems to have not led to any action in the test suite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to remove these. Is there any reason we can't keep them, but change "valid": true
to "valid": false
?
True, that is an option. I question the value of it - it's really just a test of the |
That's a good point. The point of this test suite isn't to test the meta-schema. |
But it is the point of the suite to verify an implementation adheres to the spec. I agree that whether the meta-schema enforces that |
I agree, but I don't think we have the capability to check for that using the test suite. We don't have the ability to test for InvalidSchema type of failures. This test validates a schema against the meta-schema as a kind of workaround for that problem. It doesn't actually check that the implementation is capable of verifying the requirement. It's just testing the meta-schema. |
I'm not sure where that brings us as far as either this PR or the rest of the |
I'd say that they should probably be removed. It might be interesting to have a suite that specifically tests the meta-schema, but that's not what this is. @Julian, @gregsdennis, what do you think? |
Indifferent personally -- the argument for having them (and #354 and #244 in general) is just to help start to collect these tests instead of making no progress there, but I'm not sure we've made meaningful progress there regardless, so it's not much harm removing them either. (Tl;dr weak +0 for leaving+inverting but very weak) |
This is a good point. If an invalid So.... yeah, I say drop them. |
This is a great point that I hadn't thought of. But, I also agree that there's not terribly much there and what is there is pretty basic and unlikely to be missed if we recreate this later when we have the capability to set invalid schemas. So, if no one minds me making the call... @notEthan, would you mind either creating an new PR or updating this one that removes all the meta-schema-based |
Closing, obviated by #718 |
Per json-schema-org/json-schema-spec#1291