orbitjs / orbit

Composable data framework for ambitious web applications.
https://orbitjs.com
MIT License
2.33k stars 133 forks source link

Validate that validator exists for attribute type [records] #850

Closed dgeb closed 3 years ago

dgeb commented 3 years ago

Rather than raising an exception when validatorFor(type) returns undefined for an attribute's type as defined in the schema, a type validation issue is returned. This should be a gentler and more informative way to communicate that the type does not have a validator defined.