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

tmpl: Fix template fixed variable name in validateParam #104

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

owarai
Copy link
Collaborator

@owarai owarai commented Nov 12, 2020

Please check commit message for the details.

this potential bug is found when review PR 103.
So a code re-generation in that PR is expected after merge this change.

If there are multiple fields of string type present in one typeModel,
all those fields will use the same variable name `value` in generated code,
cause compile failure. So instead, we define variable name extracted from
get/set{{Field}} and use it around.
@owarai owarai requested a review from Xuanwo November 12, 2020 09:20
@Xuanwo Xuanwo merged commit 640c55d into qingstor:master Nov 12, 2020
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.

2 participants