Created
May 13, 2014 04:32
-
-
Save fehguy/551ceeb14cdb417ebfc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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