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

Missing json schema features #2

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Conversation

albertored
Copy link

Hi, I have added some missing features for correctly parsing JSON schemas Draft 4, in particular:

  • support for type null
  • support for type number
  • support for type as array
  • handling of multipleOf, exclusiveMinimum and exclusiveMaximum for integers and numbers
  • handling of array minItems, maxItems and uniqueItems
  • support for string custom formats
  • handling of allOf, oneOf and anyOf
  • support for schemas with $ref
  • handling of additionalProperties, patternProperties, minProperties and maxProperties
  • handling of additionalItems, minItems and maxItems
  • support for array items as list of schemas
  • support for not

The only missing feature at the moment is the support for dependencies but it is hard to do with StreamData without incurring in FilterTooNarrowError exceptions.

albertored added 30 commits May 31, 2021 18:32
we should use a generator that can understand and adapt to size
otherwise when used in an array with uniqueItems we can incur in
StreamData.TooManyDuplicatesError
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

Successfully merging this pull request may close these issues.

1 participant