[ 
https://issues.apache.org/jira/browse/CAMEL-12828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16628737#comment-16628737
 ] 

Claus Ibsen commented on CAMEL-12828:
-------------------------------------

The DTOs are generated with imports of some 3rd party libraries that needs to 
be added in the pom

    <dependency>
      <groupId>com.google.code.gson</groupId>
      <artifactId>gson</artifactId>
      <version>2.8.5</version>
    </dependency>
    <dependency>
      <groupId>org.threeten</groupId>
      <artifactId>threetenbp</artifactId>
      <version>1.3.7</version>
    </dependency>


> camel-restdsl-swagger:generate - Add option to generate dto objects
> -------------------------------------------------------------------
>
>                 Key: CAMEL-12828
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12828
>             Project: Camel
>          Issue Type: New Feature
>          Components: tooling
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 2.23.0
>
>
> We should add an option to generete DTO objects defined in the swagger json 
> file. But we should not create our own logic that does that, but execute the 
> existing swagger-codegen maven plugin and then have some default convention. 
> And make this useable for 90% of the use-cases, and if people need more 
> advanced dto generation then they can use the swagger-codegen maven plugin 
> as-is.
> We should add some documentation on both situations and maybe a little 
> example as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to