tv4 icon indicating copy to clipboard operation
tv4 copied to clipboard

Validating with things that are not schemas

Open iheOnwuka opened this issue 11 years ago • 1 comments

Regarding https://groups.google.com/forum/#!searchin/json-schema/tv4/json-schema/M-lpFqUJ3ok/hpXhPodk7MUJ

Should you be returning true if the thing passed in as the schema is not even JSON

iheOnwuka avatar Nov 18 '13 05:11 iheOnwuka

@geraintluff This is related to https://github.com/geraintluff/tv4/issues/59

I personally think some basic data type checking and human friendly error messages on the user-facing API would be pro (many libs do it).

Bartvds avatar Nov 18 '13 16:11 Bartvds