gbv / jskos-validate

Validation for JSKOS data.
MIT License
0 stars 1 forks source link

Avoid dependency on ajv #5

Closed nichtich closed 5 years ago

nichtich commented 5 years ago

See https://github.com/epoberezkin/ajv-pack to minimize the size if used in a browser bundle

stefandesu commented 5 years ago

ajv-pack currently does not support recursive references which are used in JSKOS validation.

nichtich commented 5 years ago

So we need to work around it, e.g. create shallow schemas without recursive references and add code to step into nested structures for validating.

stefandesu commented 5 years ago

I'm only wondering why we should spend the effort at all. Right now, we're not using jskos-validate anywhere in the browser, and I'm not sure if we really need it back in Cocoda. Do you have any specific use case for it?