goavro icon indicating copy to clipboard operation
goavro copied to clipboard

Results 79 goavro issues
Sort by recently updated
recently updated
newest added

There is an issue when writing OCR with a schema containing union type. I've changed your example like this: ```go avroSchema := ` { "type": "record", "name": "test_schema", "fields": [...

`NewCodecForUnambiguousJSON provides` full serialization/deserialization for json that is unambiguous in terms of what the field will contain. This means that avro Union types containing only a single concrete type e.g....

The current Codec standard json addition (e.g. `NewCodecForStandardJSONFull()`) only seems to support long datetimes and int dates respectively... When passing a date as ISO8601 (e.g. `2024-01-02T19:55:36.654287-08:00`), it throws the following...

Fixes a bug which caused positive integers between 2^63 to 2^64-1 stored in a bytes.decimal to erroneously decode as negative numbers. To understand the bug, note that big.Int.BitLen returns the...

add codec full name to allow use of TopicRecordNameStrategy, retrieving name from codec

https://github.com/linkedin/goavro/blob/8eb9f0e2d756cea165f593f80c6780f4b0b4dbb6/record.go#L112 This line treats `"null"` and `null` as equivalent for default values, however that is not the case. Having a default value that is actually the string `"null"` will fail...

[input.json](https://github.com/linkedin/goavro/files/12929937/input.json) package main import ( "bytes" "encoding/json" "fmt" "io/ioutil" "os" "github.com/linkedin/goavro/v2" ) func main() { jsonFile, err := os.Open("input.json") if err != nil { fmt.Println(err) } defer jsonFile.Close() // read...

I have next code: ```go package main import ( "log" "github.com/linkedin/goavro/v2" ) const schema = `{ "type": "record", "name": "Payload", "fields": [ { "name": "image", "default": "null", "type": [ "null",...

If the record has avro type, the codec is not recognized. ```avro { "type": "record", "name": "Parent", "fields" : [ {"name": "child", "type": "Child"} ] } ``` To solve this...

Particularly, for the issue with bytes.decimal. Might not be a security flaw. But any suggestions on how to get this blocked from being used or tagged via Dependabot or Code...