OpenAPITools / OpenAPITools/openapi-generator
[BUG][JAVA] Crash generating Spring server from OpenBanking swagger
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
I'm trying to generate a SpringBoot server using an OpenBanking swagger and I get the following error:
java.lang.RuntimeException: Could not process model 'CreditInterest'.Please make sure that your schema is correct!
I think the schema is correct, it is just very complex.
openapi-generator version
4.1.1
OpenAPI declaration file content or url
Command line used for generation
java -jar openapi-generator-cli.jar generate -i account-info-openapi.3.yaml -g spring -o openapi-generator-openbanking3-test
Steps to reproduce
Download the swagger file and try to generate a spring server with -g spring
Related issues/PRs
N/A
Suggest a fix
The CreditInterest object has several nested objects. I'm trying to pinpoint what exactly make the generate fails
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
Start by downloading the OpenBanking declaration from the linked URL and rerun the Java command with generator version 4.1.1 and the spring target. Trace processing of the CreditInterest model and its nested objects to identify where generation fails. Done means the Spring server generation completes for this declaration without the reported RuntimeException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi, spring
- Domain
- api, backend, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100