You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ogen has different casing rules than ent/entoas. If you have a field with any of the following, generation will fail because the ent/entoas casing is different.
For instance, having a field called "md5" results in ret.Md5 = e.Md5 , but it should generate ret.MD5 = e.Md5.
I looked for an easy way to convert a string to the ogen format, but it doesn't seem like there are any exported functions from ogen to apply the naming rules.
I am going to work around it by adding a lookup table in my fork, but I'm not sure if that is the full solution to the issue.
The text was updated successfully, but these errors were encountered:
Ogen has different casing rules than ent/entoas. If you have a field with any of the following, generation will fail because the ent/entoas casing is different.
From: https://github.com/ogen-go/ogen/blob/425b5bb1ce73a9e48065457b7abcd9e424f8b2b5/internal/naming/rules.go#L14
For instance, having a field called "md5" results in
ret.Md5 = e.Md5
, but it should generateret.MD5 = e.Md5
.I looked for an easy way to convert a string to the ogen format, but it doesn't seem like there are any exported functions from ogen to apply the naming rules.
I am going to work around it by adding a lookup table in my fork, but I'm not sure if that is the full solution to the issue.
The text was updated successfully, but these errors were encountered: