swagger-api / swagger-api/swagger-codegen

CustomInstantDeserializer.java was generated but does not compile due to missing method _peelDTE(e)

Open
#8,718 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.