-
Notifications
You must be signed in to change notification settings - Fork 6k
Add support for isUuid #6382
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
Add support for isUuid #6382
Conversation
What do you think @JFCote?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments for suggested changes.
By the way, also check my comment in the issue itself. I'm not sure we want to implements all "custom format" available. Will need the stamp from people like @wing328
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a change in the very generic CodegenParameter, this will need the stamps from other collaborator since it can have effects on other generators.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems dangerous to me. You should at least keep the isString = true and add your line just after. But, that would be strange because it would be the first case where the "is" field could be true for 2 variables. For example, right now you can't be isString and isDate at the same time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also suggest keeping isString = true to make the change backward compatible as we don't have the resource to review all the templates due to this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, you need to remove the "isString", it is not needed since it's always a string when the conversionBegin is called. If you need this for you case when isUuid and isString are true at the same time, please put the (String) in the isUUid section only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here, remove the isString section, not needed.
Ok, i'll wait the second opinion. This looks like a deeper change on the code that involves the codegen in general, and not just the javaplayframework codegen.
@tzimisce012 Yeah, exactly. It involves all generators.
This will not break previous code
@wing328 The latest changes seems good to me. If the fact that we deal with "custom" format like guid is ok with you, then it's a go for the merge.
Thanks @tzimisce012 for the great work.
Thanks @tzimisce012 for the enhancement, which has been merged into master.
Uh oh!
There was an error while loading. Please reload this page.
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.3.0.0branch for breaking (non-backward compatible) changes.Description of the PR
This will fix issue #6381