Skip to content

fix: feed the generator JSON, the spec outgrew SnakeYAML's code point limit - #2

Merged
mikipalet merged 1 commit into
mainfrom
fix/spec-json-over-yaml-limit
Sep 11, 2026
Merged

mikipalet merged 1 commit into
mainfrom
fix/spec-json-over-yaml-limit

Conversation

@mikipalet

Copy link
Copy Markdown
Member

Why

Every regen since 2026-09-09 18:17 UTC fails at parse: The incoming YAML document exceeds the limit: 3145728 code points. The normalized spec is now larger than swagger-parser's SnakeYAML cap, so no Java SDK has shipped since.

What

  • normalize-spec-for-java.py writes JSON instead of YAML (JSON goes through Jackson, no code point cap).
  • generate.yml feeds openapi-java.json to the generator.

Verified locally with openapi-generator 7.25.0 on the current spec: generation exits 0, 2027 models, no limit errors.

🤖 Generated with Claude Code

https://claude.ai/code/session_011xXCyV3bWuwGP6t6RkcVVv

… limit

swagger-parser rejects YAML over 3,145,728 code points, so every regen has
failed at parse since 2026-09-09 18:17 UTC. Emit the normalized spec as JSON.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011xXCyV3bWuwGP6t6RkcVVv
@mikipalet
mikipalet merged commit 29d801e into main Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant