forked from loafle/openapi-generator-original
Support java code generation for UUIDProperty
A property defined as "type: string & format: uuid" is now generated in Java using "java.util.UUID" class instead of a classical String. In the Java, the UUID class do not provide a constructor. You may use the method UUID.fromString(<uuid_string>) to construct your UUID object.
This commit is contained in:
parent
2a5bd0a80e
commit
faa4ecd0cd
@ -651,6 +651,8 @@ public class DefaultCodegen {
|
||||
datatype = "map";
|
||||
} else if (p instanceof DecimalProperty) {
|
||||
datatype = "number";
|
||||
} else if ( p instanceof UUIDProperty) {
|
||||
datatype = "UUID";
|
||||
} else if (p instanceof RefProperty) {
|
||||
try {
|
||||
RefProperty r = (RefProperty) p;
|
||||
|
Loading…
x
Reference in New Issue
Block a user