Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][Java] Generated code still using deprecated Jackson code in RFC3339DateFormat #5779

Closed
4 of 6 tasks
jonfreedman opened this issue Apr 1, 2020 · 0 comments
Closed
4 of 6 tasks

Comments

@jonfreedman
Copy link
Contributor

jonfreedman commented Apr 1, 2020

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

Beginning from 2.9.0 of com.fasterxml.jackson.databind ISO8601DateFormat is deprecated.
This class is used by RFC3339DateFormat.

This issue is reported against swagger-codegen but does not seem to have been moved across.

openapi-generator version

openapi-generator-maven-plugin 4.3.0 - needs to be fixed in master

OpenAPI declaration file content or url

https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/Java/RFC3339DateFormat.mustache

Command line used for generation

n/a - this is present in your samples

Steps to reproduce

n/a - this is present in your samples

Related issues/PRs

swagger-api/swagger-codegen#8575

Suggest a fix

FasterXML/jackson-databind#1786 discusses options, expected output is no deprecation warnings.

@jonfreedman jonfreedman changed the title [BUG][JAVA] Generated code still using deprecated Jackson code in RFC3339DateFormat [BUG][Java] Generated code still using deprecated Jackson code in RFC3339DateFormat Apr 1, 2020
jonfreedman added a commit to jonfreedman/openapi-generator that referenced this issue Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant