near / borsh-rs

Rust implementation of Binary Object Representation Serializer for Hashing
https://borsh.io/
Apache License 2.0
299 stars 65 forks source link

chore!: split `ValidationError` from `MaxSizeError`; `validate` and `max_serialized_size` made `BorshSchemaContainer`'s methods #219

Closed dj8yfo closed 11 months ago

dj8yfo commented 11 months ago
dj8yfo commented 11 months ago

a valid alternative might be to remove second commit and newly added module borsh/src/schema/container_ext/validate.rs, and just remove MaxSizeError::ZSTSequenceNotArray variant and corresponding check