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

bug: Compile fails when a schema avsc has a record name with underscores in it #73

Open
eljeko opened this issue May 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@eljeko
Copy link
Collaborator

eljeko commented May 18, 2023

An Avro schema with underscores in the name of record brakes the compile, eg:

{
  "type" : "record",
  "namespace" : "",
  "name" : "my_name",
  "fields" : [...]
}

In the go generate phase produces a my_name.go with a struct named my_name but the template in generateRegistry.go will create a declaration like this:

var my_name MyName

Because is used function {{camel .}} that removes the underscores.

The current workaround is to remove underscores from names.

@eljeko eljeko added the bug Something isn't working label May 18, 2023
@ugol ugol changed the title Compile fails when a schema avsc has a record name with underscores in it bug: Compile fails when a schema avsc has a record name with underscores in it Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant