-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the Catmandu::Validator part of the command line tools #274
Comments
This will probably be implemented as a fix condition |
dev has a new Fix::Condition::validate |
Validation is still complicated to set up. Workflows based on validation results can be created with fixes but the basic use case "are these records valid or not (and if not why)?" is still difficult to set up. The best I could find is:
But the exit code is not set on validation error. A dedicated
If no errors are found, I expect no output (Null exporter), otherwise error exit code. |
Validating on the command line is also not feasible because the
Same with
|
E.g. something like
This will send all items, after optional fixes, before being stored in MongoDB, through a JSONSchema validator and reject any records that are not valid.
The text was updated successfully, but these errors were encountered: