salsify / avromatic

Generate Ruby models from Avro schemas
MIT License
89 stars 17 forks source link

Validation passes for required fields that are nil #123

Closed tomchipchase closed 4 years ago

tomchipchase commented 4 years ago

When calling .valid? on an avromatic model with a missing field that is required, the validation passes with no errors.

However, when we then try to call avro_message_value on the object, it raises a Avro::IO::AvroTypeError (as expected).

tomchipchase commented 4 years ago

Apologies, this appears to be fixed in a newer version, we were on 1.0.0.