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

Unmarshal: Node names with uppercase letters don't match #9

Open
jdrowell opened this issue May 17, 2024 · 0 comments
Open

Unmarshal: Node names with uppercase letters don't match #9

jdrowell opened this issue May 17, 2024 · 0 comments

Comments

@jdrowell
Copy link

Every time I have a node that contains an uppercase letter (e.g. "Node"), it will not be matched, returning an error like no struct field into which to unmarshal node "Node". So the kdl annotation works for node names with hyphens (e.g. "magic-numbers") but not for anything with uppercase characters (e.g. "Magic-Numbers").

I could not find anything in the KDL site that mentions a restriction to only lowercase. The kdl_test.go file here only has tests using lowercase characters though.

So in cases where we can't control the format of the KDL, how to Unmarshal nodes that contain uppercase characters in their names?

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

1 participant