Skip to content

Instantly share code, notes, and snippets.

@fehguy
Created May 13, 2014 04:32
Show Gist options
  • Save fehguy/551ceeb14cdb417ebfc7 to your computer and use it in GitHub Desktop.
Save fehguy/551ceeb14cdb417ebfc7 to your computer and use it in GitHub Desktop.
import com.wordnik.swagger.converter.*;
String jsonString = "{" +
" \"id\": \"Date\"," +
" \"properties\": {" +
" \"value\": {" +
" \"required\": true," +
" \"description\": \"UUID in string format\"," +
" \"type\": \"string\","
" }" +
" }" +
"}";
OverrideConverter converter = new OverrideConverter();
converter.add("java.util.UUID", jsonString);
ModelConverters.addConverter(converter, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment