tv4 icon indicating copy to clipboard operation
tv4 copied to clipboard

Tiny Validator for JSON Schema v4

Results 102 tv4 issues
Sort by recently updated
recently updated
newest added

Hello, I was wondering if there was a a possible way to do this with the current code. When validating objects, I'm trying to display human readable error messages. schema:...

Using grunt-tv4, I'm trying to validate my schema files. One of them is topicName.json: ``` json { "$schema": "http://json-schema.org/draft-04/schema#", "id": "http://host.com/schema/topicName", "type": "string", "minLength": 1 } ``` Running it with...

Merry Christmas in advance ! Taken the sample from below (WIP) try to change the postalCode in the `data` to something invalid. The subErrors array also has a message >...

The minifier doesn't shrink property/method names, even if those names are never accessible to the outside world. From a rough inspection, if we replaced the `validate*`, `createError` and `prefixWith` methods...

I was trying to validate an instance against the [tincan.schema.json](https://github.com/adlnet/tincanschema/blob/master/tincan.schema.json) schema. My instance is: ``` { "id" : "fd41c918-b88b-4b20-a0a5-a4c32391aaa0", "actor" : { "objectType" : "Blowup", "name" : "Project Tin Can...

The JSON draft-4 schema suggests that if the optional support for the format keywords is available then the validator _should_ (not must) also support a number of default formats. tv4...

As far as I can tell this isn't a feature and thus I'm requesting it (or perhaps how to achieve it if it is already possible). I'd like to validate...

It would be useful if the json pointer were available to user-defined custom format and keyword validation functions. Looking at the code, I can see that `dataPointerPath` is already being...

enhancement

Instead of filling out the message from a particular language template when it's found, how about the error just contains a code and a set of fixed/documented parameters? Then, if...

What do you think to give the developers the ability to use the title property on the errors messages? For instance: ``` javascript var schema = { ... "properties": {...