swagger-api / swagger-api/swagger-codegen
CustomInstantDeserializer.java was generated but does not compile due to missing method _peelDTE(e)
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
We have developed a OPENAPI spec using openapi: 3.0.0 and are trying to generate objects with swagger codegen (see maven excerpt)
Swagger-codegen version
<plugin>
<groupId>io.swagger.codegen.v3</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>swagger-generate-client-code</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/testing.yml</inputSpec>
<language>spring</language>
<configOptions>
<sourceFolder>src/gen/java/main</sourceFolder>
</configOptions>
<modelPackage>com.model</modelPackage>
<apiPackage>com.client</apiPackage>
<!--<library>jersey2</library>-->
</configuration>
</execution>
</executions>
</plugin>
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
run the install from maven
get following error
CustomInstantDeserializer.java:[198,17] cannot find symbol
symbol: method _peelDTE(org.threeten.bp.DateTimeException)
Related issues/PRs
Suggest a fix/enhancement
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce generation with the swagger-codegen Maven plugin at version 3.0.0 using the spring language, then inspect the generated CustomInstantDeserializer.java around line 198. Confirm that the generated Java compiles without the missing _peelDTE(org.threeten.bp.DateTimeException) method.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100