KiteJSONValidator
KiteJSONValidator copied to clipboard
A native Objective-C JSON schema validator
- Added error propagation to be able to inspect the reason of validation failure - Fixed schema reference resolving: delegate is now called - Updated project to recommended settings -...
The easiest/best way would be to pass in a reference with the first schema. I don't particularly like the approach in here: https://github.com/fge/json-schema-validator/blob/master/src/main/java/com/github/fge/jsonschema/examples/Example5.java
The delegate isn't called. This shouldn't be a tough fix. I'm not sure the delegate ever worked!
Develop
Merge branch 'master' into develop NSError as a result of validation/schema adding
Hi, Can I get where is failure in Dictionary?
There's an Objective-C project that implements the JSONPointer spec. Rather than use NSURL to manually navigate down the tree, maybe consider using this JSONPath functionality? https://github.com/C-Works/NSDictionary-CWJSONPointer
This will prevent it being revalidated for every validate call. Perhaps submitting it with it's URL and then requesting validation against a URL would be a nice interface.
Add full documentation of the interfaces to the header file
Currently it only returns booleans - error codes detailing the reason for the failure would be preferable