OpenAPITools / OpenAPITools/openapi-generator
[BUG] The incoming YAML document exceeds the limit: 3145728 code points.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Some info to start with. My previous configuration was Intellij 2022.3 and the plugin OpenAPI Swagger 1.52. With this, the issue doesn't exist.
For various reasons, we have a particularly large spec. For different reasons, I needed to install Intellij IDEA 2023.3.2 (or newer). Previously mentioned plugin doesn't seem to be compatible with that Intelllij version - the Show OpenAPI preview button would be greyed out.
I've literally went through each version listed as compatible with Intellij 2023.3.2 one by one, from oldest to newest, with only 1.95 and 1.99. actually showing the button as enabled (1.98 just kept crashing). However, these plugin versions show this, when opened:
The incoming YAML document exceeds the limit: 3145728 code points.
I've read up on multiple solutions. I've added -DmaxYamlCodePoints=99999999 to the VM options (which is was what allowed plugin 1.52 to work), I've added it to Intellij runner parameters, I've added it even as a system property. No effect.
openapi-generator version
7.4.0
Steps to reproduce
- Install Intellij IDEA 2023.3.2 Community
- Intellij OpenAPI Swagger 1.95 or 1.99
- Try to open a large spec file
- Cry
Related issues/PRs
[](https://github.com/OpenAPITools/openapi-generator/issues/14096)
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 reproducing the error in IntelliJ IDEA 2023.3.2 with OpenAPI Swagger plugin 1.95 or 1.99 and the large specification. Compare the behavior with plugin 1.52 and investigate how maxYamlCodePoints is handled; done means the large spec opens without the 3145728-code-point limit error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100