swagger-codegen-generators icon indicating copy to clipboard operation
swagger-codegen-generators copied to clipboard

Fix missing jackson annotations for enum

Open mcassidygamma opened this issue 3 years ago • 1 comments

I encountered an issue when using the jaxrs-spec generator. For a pojo which used an enum, the enum was trying to use @JsonCreator and @JsonValue which were never being imported, thus compilation would fail.

I've added the imports and added a test also. Resubmitting after grabbing all the most recent master branch changes.

mcassidygamma avatar May 26 '22 10:05 mcassidygamma

This would be nice - Is there a SNAPSHOT of maven-plugin with this somewhere ? I can test :-)

blaukvik avatar Jun 20 '22 09:06 blaukvik