Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid default value for duration field of type long #86

Open
StarpTech opened this issue Jan 27, 2017 · 4 comments
Open

Invalid default value for duration field of type long #86

StarpTech opened this issue Jan 27, 2017 · 4 comments

Comments

@StarpTech
Copy link

Hi,
why is 1 an invalid default value for a long type? For int its the same. Thanks!

{
    "name": "Packet",
    "type": "record",
    "fields": [{
                "name": "duration",
                "type": "long",
                "default": 1
    }]
}
E:\Repositorys\hemera-golang>go run codegen.go --schema schemas/packet.avsc --out foo.go
Invalid default value for duration field of type long
exit status 1
@marcosrmendezthd
Copy link

getting the same thing... 😄

@StarpTech
Copy link
Author

StarpTech commented Mar 3, 2017

@serejja anybody ?

@crast
Copy link
Contributor

crast commented Apr 25, 2017

This repository is unmaintained since April 2016, so I've created a fork that has already a couple bugfixes and 5-6 performance improvements, here: https://github.com/go-avro/avro

@StarpTech
Copy link
Author

Hi @crast thanks for the info. Is this issue resolved in your fork?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants