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

nullable flag may be causing some problems #631 #636

Closed

Conversation

yyyayyy188
Copy link

Problem:
long(args: ToAminoJSONMethod) function did not consider when gogoproto.nullable is true , the field could be null .

fix:
use optionalCallExpression / optionalMemberExpression . when gogoproto.nullable is true,which means field may be undefined , add "?" to propName.

@Zetazzz
Copy link
Collaborator

Zetazzz commented Jul 15, 2024

Please excuse to close this.

The format of the change is hard to review, and the solution's not accurate.
And it needs more tests.

Thank you very much!

@Zetazzz Zetazzz closed this Jul 15, 2024
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

Successfully merging this pull request may close these issues.

3 participants