Swagger-codegen: [JAVA] Client generated with deprecated code.

Created on 14 Sep 2018  路  2Comments  路  Source: swagger-api/swagger-codegen

Description

I use wagger to define my API and generate clients form the swagger spec. When I generated the Java client using swagger-codegen a class called RFC3339DateFormat.java was generated and it extends ISO8601DateFormat which is deprecated.

Do suggest that I replace it manually with the preferred class StdDateFormat? Or is there configuration that I should set to use StdDateFormat rather.

Swagger-codegen version

2.3.1

Most helpful comment

Didn't have to close this issue. Swagger-codegen and openapi-generator are different projects. The problem should also be fixed here.

All 2 comments

Moving this issue to OpenAPI generator: https://github.com/OpenAPITools/openapi-generator/issues/1053

Didn't have to close this issue. Swagger-codegen and openapi-generator are different projects. The problem should also be fixed here.

Was this page helpful?
0 / 5 - 0 ratings