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

paramgen sets the type 'string' for array fields #137

Open
hariso opened this issue Nov 14, 2024 · 2 comments
Open

paramgen sets the type 'string' for array fields #137

hariso opened this issue Nov 14, 2024 · 2 comments
Labels
bug Something isn't working triage Needs to be triaged

Comments

@hariso
Copy link
Contributor

hariso commented Nov 14, 2024

Bug description

If a config struct contains an array field, e.g.

MyIntArray   [3]int

then paramgen generates the type string for this field.

Steps to reproduce

See description.

Version

v0.5.0

@simonl2002
Copy link
Member

@hariso is this related to current work? Should we pull this in?

@hariso
Copy link
Contributor Author

hariso commented Dec 3, 2024

@simonl2002 It isn't, the issue is present when specgen is not used too. To my knowledge, arrays are rarely used in Go code, so no need to pull this in right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs to be triaged
Projects
Status: No status
Development

No branches or pull requests

2 participants