Skip to content

Commit

Permalink
Support java code generation for UUIDProperty
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hiveship committed Jan 15, 2016
1 parent 2a5bd0a commit faa4ecd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,8 @@ public String getSwaggerType(Property p) {
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;
Expand Down

0 comments on commit faa4ecd

Please sign in to comment.