Closed lud-wj closed 1 year ago
Oh, yeah, that doesn't look right at all. And that logic has been there a while, which means schema validation is probably not tested for all drafts but the current one. Let me have a look, it doesn't look like it would be a difficult fix.
Thanks!
Ok, fixed (and tested now). Thank you for reporting the bug and pinpointing the faulty implementation, that saved me some time 🙇
It's on hex.pm as 0.10.1
now: https://hex.pm/packages/ex_json_schema/0.10.1
Great, thank you! :racing_car:
The following code passes without problem:
But I guess it should not.
I was trying to debug this, but saw that you have this code :
It specifically prevent validation of schemas with a known meta-schema.
But as far as I understand you cannot have a
false
in thewith
because the following code will throw:(I know I could use the "latest" URL but that does not work for me. I want a defined spec).
What do you think?