gogen-avro icon indicating copy to clipboard operation
gogen-avro copied to clipboard

Generate Go code to serialize and deserialize Avro schemas

Results 39 gogen-avro issues
Sort by recently updated
recently updated
newest added

Don't generate union classes when a simple union contains only two elements, one of which is null. Instead, generate pointers to the types. (Golang built-in nullability) https://github.com/actgardner/gogen-avro/issues/184

Basically same issue as [here](https://github.com/actgardner/gogen-avro/issues/167) on v10.2.1 Error: ``` "Runtime error: Unexpected value for enum, frame: {false 0 4 0 0 [] false}, pc: 0xc000302e10" ``` Expected: default "UNKNOWN" symbol...

Hi, I'm attempting to parse the following avro schema: ``` { "namespace": "com.compass.common.entities.v1", "name": "ResourceRef", "type": "record", "doc": "Representation of a specific resource with its id and its type", "fields":...

Hello! I found such case: We have field named "foo" in our schema and gogen-avro makes constructor method named NewFoo() Also we have field named "newFoo". After code generating we...

This PR attempts to address https://github.com/actgardner/gogen-avro/issues/172

Unions with null in code should be replaced by pointers or option types. For example: ```json { "name": "Name", "type": [ "null", "string" ] }, ``` Generates a NameUnion, which...

#193 Since avro field order is important, and json.Marshal doesn't preserve the same ordering as struct has, I added this approach (which does generate a fair amount of code) but...

Hello, I am using this library as a validator before streaming data to PubSub, and since avro requires a strict order I assumed that MarshalJSON is ment to respect that...

# Feature Request for Deep Namespacing ## Problem Statement Generating all files in one package may lead to errors related to different namespaces sharing the same schema name. This [issue](https://github.com/actgardner/gogen-avro#naming)...