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

[Java][Spring][Server] When java8 and interfaceOnly are true, generated interface default methods

Open inidona opened this issue 8 years ago • 1 comments

In issue #5895 is a discussion about generation default methods when parameter java8=true and interfaceOnly=true. I don't understand the value of this default methods, it is clearer only generating a plain interface and have to implement this defined methods in my implementation. There is imho no usecase to throw an not_implemented http code, a compile error in the projects is error enough. @wing328 what do you think ?

inidona avatar Apr 19 '18 19:04 inidona

I agree with @inidona. At least there should be a paramater to turn the generation of default implementations off.

ralfhecktor avatar May 14 '18 19:05 ralfhecktor