Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !7919

Fix abstract method withLeniency(java.lang.Boolean) in com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase issue.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/rafaelsousa/fix-custom-instant-deserializer-implementation into master Nov 10, 2020
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: rafaelsousa

Fixes #5444

When generating apis from the code, I was getting this issue :

[ERROR] /home/rsousa/Code/personalmanager/api/target/generated-sources/openapi/src/main/java/ca/renardnumerique/personalmanager/invoker/CustomInstantDeserializer.java:[31,8] ca.renardnumerique.personalmanager.invoker.CustomInstantDeserializer is not abstract and does not override abstract method withLeniency(java.lang.Boolean) in com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase [ERROR] /home/rsousa/Code/personalmanager/api/target/generated-sources/openapi/src/main/java/ca/renardnumerique/personalmanager/invoker/CustomInstantDeserializer.java:[150,33] withDateFormat(org.threeten.bp.format.DateTimeFormatter) in ca.renardnumerique.personalmanager.invoker.CustomInstantDeserializer cannot override withDateFormat(org.threeten.bp.format.DateTimeFormatter) in com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase return type com.fasterxml.jackson.databind.JsonDeserializer is not compatible with com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase [ERROR] /home/rsousa/Code/personalmanager/api/target/generated-sources/openapi/src/main/java/ca/renardnumerique/personalmanager/invoker/CustomInstantDeserializer.java:[149,3] method does not override or implement a method from a supertype [INFO] 3 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.595 s [INFO] Finished at: 2020-11-10T13:50:37-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project api: Compilation failure: Compilation failure: [ERROR] /home/rsousa/Code/personalmanager/api/target/generated-sources/openapi/src/main/java/ca/renardnumerique/personalmanager/invoker/CustomInstantDeserializer.java:[31,8] ca.renardnumerique.personalmanager.invoker.CustomInstantDeserializer is not abstract and does not override abstract method withLeniency(java.lang.Boolean) in com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase [ERROR] /home/rsousa/Code/personalmanager/api/target/generated-sources/openapi/src/main/java/ca/renardnumerique/personalmanager/invoker/CustomInstantDeserializer.java:[150,33] withDateFormat(org.threeten.bp.format.DateTimeFormatter) in ca.renardnumerique.personalmanager.invoker.CustomInstantDeserializer cannot override withDateFormat(org.threeten.bp.format.DateTimeFormatter) in com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase [ERROR] return type com.fasterxml.jackson.databind.JsonDeserializer is not compatible with com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase [ERROR] /home/rsousa/Code/personalmanager/api/target/generated-sources/openapi/src/main/java/ca/renardnumerique/personalmanager/invoker/CustomInstantDeserializer.java:[149,3] method does not override or implement a method from a supertype [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I modified the Mustache template in order to fix that.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/rafaelsousa/fix-custom-instant-deserializer-implementation