You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fields: [
%{
type: [:null, @v1_namespace_prefix <> ".example.MetaData"],
default: nil,
name: :metadata,
doc: "Metadata for example - to be deprecated"
},
%{
type: %{type: :array, items: @v2_namespace_prefix <> ".example.MetaData"},
name: :metadata_records,
doc:
"A list of one metadata for each example in this chain, sorted chronologically (earliest first)."
},
...
]
Due to the name clash of the last module part (MetaData), the first alias is overridden.
The generated code actually always expects V2 MetaData despite the avro schema itself expecting V1:
Here's a snippet of an Avro schema definition:
This generates the following aliases:
Due to the name clash of the last module part (
MetaData
), the first alias is overridden.The generated code actually always expects V2
MetaData
despite the avro schema itself expecting V1:We need to either
lib/avrogen/avro/types/record.ex
to make and use aliases that don't clash orRelated cards:
The text was updated successfully, but these errors were encountered: