flipp-oss / deimos

Framework to work with Kafka, Avro and ActiveRecord
Other
60 stars 22 forks source link

Better error message when a required field is missing #176

Open dorner opened 1 year ago

dorner commented 1 year ago

Schema classe code (e.g. Record) assumes that a field is there if it's not optional - but it doesn't explicitly check this, resulting in an error like

undefined method map for nil

We should be explicitly checking at least that things are not null if we expect them to be.