getty-zig / getty

A (de)serialization framework for Zig
https://getty.so
MIT License
183 stars 14 forks source link

Fully unit test (de)serialize functions in blocks #130

Open ibokuri opened 1 year ago

ibokuri commented 1 year ago

For example, duplicate fields during deserialization should return error.DuplicateField.

This includes errors from attributes. For example, renaming a field and then not correctly having that field in the input data should return an UnknownVariant or MissingField or whatever.