tdegrunt/jsonschema

Validate throw error with `additionalProperties: true`

ThibaudAV opened this issue · 1 comments

If I set additionalProperties to true I get this error during validation:

Uncaught TypeError: Parameter 'url' must be a string, not function

If I understand correctly additionalProperties should never be true but only false | Schema .
In my case i need to init them to {} right ?

Source : #57 (comment)
Code :

var additionalProperties = schema.additionalProperties || {};

Types :
additionalProperties?: boolean | Schema

@ThibaudAV Can you please provide some example code with the expected and actual output?

As far as I know, the validator passes the relevant tests, but I need to see the exact context.