amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
12 stars 6 forks source link

Validate API should borrow the data it is validating #214

Open popematt opened 2 months ago

popematt commented 2 months ago

Right now,the API to validate some data takes ownership of the data. It really should be immutably borrowing the Element to avoid unnecessary cloning.

This is a big usability issue, and IMO, this issue must be resolved before the 1.0.0 release.