Skip to content

Conversation

@ajcamilo
Copy link
Contributor

When RAML spec builder tries to parse a POJO that has a property of type UUID, it tries to parse like a normal class.

But the output should be something like this:

types:
  UUID:
    type: string
    pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

(reference: raml-org/raml-spec#483 (comment))

This is what this PR resolves for the java.util.UUID.

@jknack jknack added this to the 1.1.2 milestone May 15, 2017
enums.add(((Enum) value).name());
}
complex.values = enums;
} else if(UUID.class.isAssignableFrom(rawType)){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add space after if before closing {

@jknack jknack merged commit a4f4a61 into jooby-project:master May 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants