ExodusMovement / schemasafe

A reasonably safe JSON Schema validator with draft-04/06/07/2019-09/2020-12 support.
https://npmjs.com/@exodus/schemasafe
MIT License
161 stars 12 forks source link

Store schemas in a Map, accept object/map/array #93

Closed ChALkeR closed 4 years ago

ChALkeR commented 4 years ago

This allows specifying a list of schemas as an Array instead of an object, which should make consuming easier.

Schema identifiers are taken from $id properties in that case.