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

Support of string pointers in blob-lang expressions #92

Closed
wants to merge 1 commit into from

Conversation

cblach
Copy link

@cblach cblach commented Feb 21, 2025

protoc-gen-go generates string pointers when a string is optional.
protoc-gen-go-temporal currently does not support string pointers in blob-lang expressions.

This PR adds support for that and add tests. Note that there is no need to check for a nil string pointer, as that is handled automatically. There is for a non-nil string pointer id and a test for a nil string pointer id.

NOTE: I did not regenerate the generated files in this PR, as the generated code used new versions and the formatting was changed quite a bit. I will leave that to you, unless you want me to do it.

@cblach
Copy link
Author

cblach commented Feb 23, 2025

Closed the PR as this is not actually an issue, which I realized after fixing another bug in our project.
An optional field (generating a string pointer) will translate to a string in the switch case.

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.

1 participant