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

Created on 19 Apr 2018  路  1Comment  路  Source: swagger-api/swagger-codegen

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 ?

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings