java -cp MyJaxRSCustom-swagger-codegen-

1.0.0.jar:swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen 
generate -i MyYaml.yaml -c MyConfig.json -l 
com.mycompany.swagger.codegen.MyJaxRSCustomGenerator -t 
${CODEGEN_LOCATION}/output/src/main/resources/MyJaxRSCustom/ -o 
${SWAGGER_OUTPUT}


The reason for the custom template is because I modified some mustache 
files to add a few small things I need, I just copy the 
swagger-codegen/src/main/resources/JavaJaxRS/ folder (which includes the 
Jersey1 library) and add my changes.


I guess the question becomes if you can specify a library to use in your 
custom template directory. 

Thanks

On Wednesday, January 25, 2017 at 3:56:42 PM UTC-6, tony tam wrote:
>
> Please share the command that you’re using to do the generation
>
> On Jan 25, 2017, at 1:55 PM, Brian <[email protected] <javascript:>> 
> wrote:
>
> Hello,
>
> I upgraded to swagger-codegen 2.2.1 and I noticed that when I generate the 
> code my models are now using a glass fish dependency.
>
> "
> import org.glassfish.jersey.media.multipart.FormDataContentDisposition; 
> import org.glassfish.jersey.media.multipart.FormDataParam;
> "
>
>  I looked into the models templates and noticed the jersey1 library models 
> has the old dependencies.
>
> "
> import com.sun.jersey.core.header.FormDataContentDisposition; 
> import com.sun.jersey.multipart.FormDataParam;
> "
>
> I tried specifying library:jersey1 in my config file but I'm still getting 
> models pulling in glassfish. How do I get version 2.2.1 to generate with 
> jersey1 models?
>
>
>
>
> Thanks
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to