Closed imolorhe closed 4 weeks ago
Hi Samuel,
thank you for reporting this issue. I can reproduce it and will fix it asap.
Regards, Sascha
The issue has been fixed and a patch is released with json-schema-library@v9.3.5
. Can you verify that this solves your problem?
Thank you!
I've confirmed that the issue is fixed. Thanks!
This issue was raised originally in https://github.com/acao/codemirror-json-schema/issues/69
While trying to tackle the issue, I discovered that the issue comes from
json-schema-library
.Here's a diff showing a test case I added to reproduce the issue. https://github.com/sagold/json-schema-library/compare/main...imolorhe:json-schema-library:main
I'm not sure if this is expected (or perhaps there's some additional config that can be passed to force it to strictly validate the property type) but given the following schema:
and given the following data:
foo.number
should fail with a type error (expected "number", got "string") but it doesn't.