salsify/avromatic

related with virtus: "attributes" is not allowed as an attribute name

Opened this issue · 1 comments

Some AVRO data model managed by other team is using field named attributes which collided with virtus restricted attributes name.

ArgumentError: "attributes" is not allowed as an attribute name
        from /Users/ernest.bursa/.rvm/gems/ruby-2.3.1@icet-self-service/gems/virtus-1.0.5/lib/virt
tjwp commented

Some prototyping on a solution for this was done here: #19

It's likely that in a final form the configuration for this will change. Ideally, the renaming or mapping would be driven off fields names within named record types and configured globally, so that configuration does not have to be repeated, and with the possibility of overrides for a specific model.