jsonschema-rs
jsonschema-rs copied to clipboard
Rework errors
- [ ] Avoid lifetimes. There is already
Arcinside validators, this might be a way to avoid refs to the schema. - [ ] Rename
validatetoiter_errorsand addvalidatethat will return the first error
I am here mainly for the second part (Owned version of errors). without this, I do not know how to wrap ValidationError within my own thiserror enum. I Can get it to work somehow, but It would be a lot of lines of code.
(I am still a rust newb)
@hoijui There is a pub(crate) to_owned function which surely could be replaced by the ToOwned implementation - though, I am not yet sure if it will be sufficient. Let me know if I can help