Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. "DocumentDto" : {
  2. "type" : "object",
  3. "properties" : {
  4. "uuid" : {
  5. "type" : "string",
  6. "format" : "uuid"
  7. },
  8. "creationDate" : {
  9. "type" : "string",
  10. "format" : "date-time"
  11. }
  12. }
  13. }
  14.  
  15. @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-05-21T13:07:21.639+02:00[Europe/Zurich]")
  16. public class DocumentDto {
  17. public static final String SERIALIZED_NAME_UUID = "uuid";
  18. @SerializedName(SERIALIZED_NAME_UUID)
  19. private UUID uuid;
  20.  
  21.  
  22. public static final String SERIALIZED_NAME_TEST = "creationDate";
  23. @SerializedName(SERIALIZED_NAME_TEST)
  24. private OffsetDateTime creationDate;
  25. }
  26.  
  27. <plugin>
  28. <groupId>org.openapitools</groupId>
  29. <artifactId>openapi-generator-maven-plugin</artifactId>
  30. <version>3.3.4</version>
  31. <executions>
  32. <execution>
  33. <id>test-service</id>
  34. <phase>validate</phase>
  35. <goals>
  36. <goal>generate</goal>
  37. </goals>
  38. <configuration>
  39. <inputSpec>
  40. ${project.build.directory}/open-api/swagger.json
  41. </inputSpec>
  42. <generatorName>java</generatorName>
  43. <validateSpec>false</validateSpec>
  44. <generateApis>false</generateApis>
  45. <groupId>com.test</groupId>
  46. <artifactId>test-service</artifactId>
  47. <modelPackage>test.model</modelPackage>
  48. <apiPackage>test.api</apiPackage>
  49. <configOptions>
  50. <sourceFolder>src/gen/java/main</sourceFolder>
  51. <dateLibrary>java8</dateLibrary>
  52. <java8>true</java8>
  53. </configOptions>
  54. </configuration>
  55. </execution>
  56. </executions>
  57. </plugin>
  58.  
  59. <typeMappings>DateTime=Instant</typeMappings>
  60. <importMappings>Instant=java.time.Instant</importMappings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement