orbitjs/orbit

Introduce `autoValidate` setting for `RecordSource` and `RecordCache`

dgeb opened this issue · 0 comments

dgeb commented

This setting will mirror autoUpgrade and autoActivate in that if it is left undefined it should be treated as true.

RecordCache and RecordSource will use this to determine whether to build validators if none are provided.

SyncRecordCache and AsyncRecordCache should also use this option to control whether a schema validation processor is included by default.

This will provide more fine-tuned control over whether validators are built and used by a source / cache than checking Orbit.debug.