Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The incoming YAML document exceeds the limit: 3145728 code points. #21008

Open
6 tasks
PiotrMarekPtk opened this issue Apr 1, 2025 · 0 comments
Open
6 tasks

Comments

@PiotrMarekPtk
Copy link

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.

Image

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:

Image

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
  1. Install Intellij IDEA 2023.3.2 Community
  2. Intellij OpenAPI Swagger 1.95 or 1.99
  3. Try to open a large spec file
  4. Cry
Related issues/PRs

[](#14096)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant