Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Create separate validation module #451
If we separate the validation logic into a separate package, we're able to perform the same validation in API and consumer applications (such as Publish). This package would take a collection/field schema and a candidate value/document and return a set of validation errors if they are found.