json-schema icon indicating copy to clipboard operation
json-schema copied to clipboard

JSON Schema specifications, reference schemas, and a CommonJS implementation

Results 30 json-schema issues
Sort by recently updated
recently updated
newest added

If I have allowAdditionalProperties: false, I always have validation message with empty property name ``` json { "property": "", "message": "stringThe property categoryName is not defined in the schema and...

``` javascript sch = { type: 'object', "properties": { "str1": { "type": "string", "id": "#strref" }, "str2": { $ref: '#strref' } } }; obj = { str1: 'sss', str2: 21...

['a','b','b'] should fail against schema { type:'array', uniqueItems:true} but there is no checking of uniqueItems in the library.

changing https://github.com/kriszyp/json-schema/blob/master/lib/validate.js#L91 to be ``` js !(type == 'integer' && value%1===0 && value !== null) ``` seems to fix it for me

json-schema appears to be a valid node.js module. ``` tmpmac:lib tmpvar$ pwd /Users/tmpvar/work/javascript/json-schema/lib tmpmac:lib tmpvar$ node > require('./validate'); { [Function: validate] Integer: { type: 'integer' }, validate: [Circular], checkPropertyChange: [Function],...

validating the core schema [validate(schema)] causes validate to choke on the '$schema' instance property; [validate(schema,schema)], which should be equivalent, adds an extra 'null' entry to the result. Deleting the $schema...

Hi! Wouldn't it be better to apply coercion (if defined in the schema and available in exports) only if the value hadn't passed type test, and not unconditionally? Best regards,...

Hi! How about reducing error messages to single english words: "type", "missing", "requires", "minimum", ... This would help i18n, plus chances high that the user of json-schema would want to...

Currently I'm using json-schema version 0.2.3, but can't find a LICENSE file in the repo of ver 0.2.3. Could you add the LICENSE file in the repo of ver 0.2.3?...