tv4 icon indicating copy to clipboard operation
tv4 copied to clipboard

Missing references should not return true, IMO.

Open sprugman opened this issue 9 years ago • 3 comments

I just noticed that this was by design, based on the tv4.missing demo. Is that in the spec? It seems backwards to me -- I want missing reference definitions to fail. Is it possible to make that an option? Do you know of another (good), browser compatible validator library that works that way?

TIA.

sprugman avatar Feb 06 '15 04:02 sprugman

This is a problem for me too. And if the reference do not contains a full uri (which is permitted in the spec) the external reference doesn't appear using getMissingUris so I cannot neither know an external reference is missing.

ramiel avatar Mar 26 '15 14:03 ramiel

Nice suggestion making it an option - I'll work on that.

geraintluff avatar Mar 28 '15 18:03 geraintluff

+1 for this - any kind of silent failure in a validator is a bad idea... the default assumption has to be that the schema is invalid unless proven otherwise; an invalid reference certainly doesn't suggest that everything is fine.

sanear avatar May 04 '15 19:05 sanear