Skip to content
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-06 support #18

Closed
28 tasks done
Jokipii opened this issue Jun 28, 2018 · 0 comments
Closed
28 tasks done

Draft-06 support #18

Jokipii opened this issue Jun 28, 2018 · 0 comments

Comments

@Jokipii
Copy link
Contributor

Jokipii commented Jun 28, 2018

Here is experimental version that can support different versions of JSON Schema
https://github.com/Jokipii/python-fastjsonschema

All feedback is welcome.

Current version test results against draft-06:

============= 452 passed, 28 xfailed, 14 xpassed in 6.00 seconds ==============

Following tests still fail (done means is already fixed)

  • const.json / const validation / another value is invalid
  • const.json / const validation / another type is invalid
  • const.json / const with object / another object is invalid
  • const.json / const with object / another type is invalid
  • const.json / const with array / another array item is invalid
  • const.json / const with array / array with additional items is invalid
  • const.json / const with null / not null is invalid
  • contains.json / contains keyword validation / array without items matching schema is invalid
  • contains.json / contains keyword validation / empty array is invalid
  • contains.json / contains keyword with const keyword / array without item 5 is invalid
  • contains.json / contains keyword with boolean schema true / empty array is invalid
  • contains.json / contains keyword with boolean schema false / any non-empty array is invalid
  • contains.json / contains keyword with boolean schema false / empty array is invalid
  • dependencies.json / dependencies with empty array / empty object
  • dependencies.json / dependencies with empty array / object with one property
  • dependencies.json / dependencies with boolean subschemas / object with property having schema true is valid
  • dependencies.json / dependencies with boolean subschemas / object with property having schema false is invalid
  • dependencies.json / dependencies with boolean subschemas / object with both properties is invalid
  • dependencies.json / dependencies with boolean subschemas / empty object is valid
  • items.json / items with boolean schemas / array with one item is valid
  • items.json / items with boolean schemas / array with two items is invalid
  • items.json / items with boolean schemas / empty array is valid
  • ecmascript-regex.json / ECMA 262 regex non-compliance / ECMA 262 has no support for \Z anchor from .NET
  • zeroTerminatedFloats.json / some languages do not distinguish between different types of numeric value / a float without fractional part is an integer
  • properties.json / properties with boolean schema / no property present is valid
  • properties.json / properties with boolean schema / only 'true' property present is valid
  • properties.json / properties with boolean schema / only 'false' property present is invalid
  • properties.json / properties with boolean schema / both properties present is invalid
@horejsek horejsek closed this as completed Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants