Custom annotation in Swagger CodeGen - java

I am using swagger-codegen-maven-plugin for generating java pojo classes. I need to use a custom annotation for validation. How can I ask code gen to annotate a field with my custom annotation.

1 answer

  • answered 2018-02-13 01:32 Logan Pickup

    Swagger codegen isn't able to do this. I have seen people work around similar problems by adding an exec-maven-plugin task to run a script after codegen that adds what you need.