Stranger6667 / jsonschema

A high-performance JSON Schema validator for Rust
https://docs.rs/jsonschema
MIT License
520 stars 94 forks source link

Rework errors #114

Open Stranger6667 opened 4 years ago

Stranger6667 commented 4 years ago
hoijui commented 3 years ago

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)

Stranger6667 commented 3 years ago

@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