Skip to content
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

Should PICA::Schema be used as a validator package for Catmandu::Validator? #41

Closed
cKlee opened this issue Apr 13, 2018 · 3 comments
Closed

Comments

@cKlee
Copy link
Member

cKlee commented Apr 13, 2018

catmandu convert PICA --type plus to CSV --fix "validate('', '+PICA::Schema', schema: avram_zdb_picaplus.yaml); retain(errors)" < pica.dat

I guess this requires PICA::Schema to implement some methods like is_valid and validate. See https://metacpan.org/pod/Catmandu::Validator

@cKlee
Copy link
Member Author

cKlee commented Apr 13, 2018

related to LibreCat/Catmandu#274

@cKlee
Copy link
Member Author

cKlee commented Apr 13, 2018

Maybe a Catmandu::Validator::Avram package should handle this?

@cKlee
Copy link
Member Author

cKlee commented Apr 13, 2018

Argh, sorry. There is already a Catmandu::Validator::PICA

@cKlee cKlee closed this as completed Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant