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

Validate JSON document using RapidJSON schema validator before parsing #3

Open
florianbehrens opened this issue Aug 24, 2016 · 0 comments

Comments

@florianbehrens
Copy link

Checking the schema using assert in C++ results in application crash when the input document is not correct. By validating the input document before parsing this should never happen.

Schema validation is available on RapidJSON's master branch, but not yet released.

florianbehrens pushed a commit to florianbehrens/js2model that referenced this issue Aug 29, 2016
- Fix validity checks for nested objects
- Support for allowing any field to carry the type of a variant, not just "type". An example of this usage is in the definition of `OperationCommand` and the use of `operationType` [here](https://github.com/FiftyThree/SyncSchema/blob/feature/bridge-schema/Paper/JSONSchema/Bridge/ChannelCommandDetail.schema.json#L14-L32)
- Bug fix around duplicate class definitions

PTAL ... @jasonreisman ? not sure who wants to look at this code :)
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

1 participant