Java: Fix UUID mapping to a UUID instead of a string#3732
Java: Fix UUID mapping to a UUID instead of a string#3732brentryan wants to merge 4 commits intoswagger-api:masterfrom cvent:cvent-fixes2
Conversation
|
The commit you mention didn't change the behavior regarding UUID : the line you want to remove was already there in JavaClientCodegen. |
|
Acutally, the UUID mapping was added in #2754 |
|
@cbornet I don't see anything referencing UUID in JavaClientCodegen. I know that when I remove that line in AbstractJavaCodegen.java that it works fine now for me. Without removing that line it always maps to a string type. |
|
Thank you. |
|
@brentryan thanks for the PR. I did some tests and the result looks good. Please run the following to update Java API clients and server stubs so that the CIs can verify the change: Java API clients Java server stubs: |
|
Also I think this is a breaking change as UUID will no longer be a |
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)2.3.0branch for breaking (non-backward compatible) changes.Description of the PR
It looks like there was a commit back in January that reverted a previous fix that added UUID types for java. The commit is 7aac639.
This fixes the issue by allowing UUID to be used in generated code.