Repository navigation
Spec: Regenerate the bundled spec and restore its license header - #5559
Merged
Merged
Conversation
The generated bundle drifted from its sources twice, both times because a manual step did not happen. The ASF license header, which redocly drops with every other comment, was lost in the 2025-05-30 regeneration and none of the seven later changes to the file put it back. The semantic-model API reached the source specs on 2026-07-01 and never reached the bundle: the two changes to it since were one line each, so the bundle is 367 lines behind. spec/bundle.sh regenerates the bundle and restores the header it extracts from the source spec, and make spec-bundle wraps it. spec/README.md points at the target instead of asking for the header to be pasted back by hand. Regenerating needed one more thing. In 53 places a JSON-style value closed its brace or bracket at the same indentation as its own key, which redocly stopped accepting in 2.40.0, so any current version refused to parse the sources. Those 53 lines are reindented by one space here. The change is whitespace only, and 1.34.3, 2.0.0 and the current 2.52.1 all bundle these sources to the same bytes as the committed file.
flyingImer
force-pushed
the
spec/bundle-header-and-script
branch
from
September 20, 2026 18:25
6f08301 to
6435cd4
Compare
flyingImer
marked this pull request as ready for review
September 20, 2026 18:45
adutra
approved these changes
Sep 24, 2026
dimas-b
approved these changes
Sep 24, 2026
dimas-b
left a comment
Contributor
There was a problem hiding this comment.
Nice catch, @flyingImer 👍
6 tasks
3 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The generated bundle has drifted from its sources twice, both times because a manual step did not happen.
spec/README.md asks for the ASF license header to be put back after every bundle, because redocly drops it
along with every other comment. It was lost in the 2025-05-30 regeneration and none of the seven later
changes restored it. The semantic-model API reached the source specs on 2026-07-01 and never reached the
bundle: the two changes to the bundle since were one line each, so it sits 367 lines behind its own sources.
Nothing catches either problem: RAT reads the OpenAPI info.license.url field inside the generated file as an
Apache license, so the license check stays green on a file with no header, and nothing compares the bundle
against its sources.
What
spec/bundle.sh bundles, then restores the header it extracts from spec/polaris-catalog-service.yaml rather
than keeping a copy of it. make spec-bundle wraps the script, and the README points at the target. The
committed bundle is the script's own output: run make spec-bundle here and git diff comes back empty.
Regenerating needed one more fix. In 53 places a JSON-style value closed its brace or bracket at the same
indentation as its own key, which redocly stopped accepting in 2.40.0, so no current version could parse the
sources at all. Those 53 lines are reindented by one space. The change is whitespace only. Of the 53, 42 are in
the vendored Iceberg spec.
Checklist
CHANGELOG.md(if needed)site/content/in-dev/unreleased(if needed)