Skip to content

fix: find a definition in whichever schema tree it is authored in - #34

Merged
geodro merged 1 commit into
mainfrom
fix/render-every-schema-tree
Sep 20, 2026
Merged

geodro merged 1 commit into
mainfrom
fix/render-every-schema-tree

Conversation

@geodro

@geodro geodro commented Sep 20, 2026

Copy link
Copy Markdown
Member

The renderer looked for authored definitions in the newest schema tree alone, which is correct only while there is exactly one of them. Add schema 3 and a definition authored at schema 2, which is where it stays, belongs to neither the authored set nor the plain one: it would be rendered nowhere and dropped from the published trees entirely. Spamassassin, adminer, kafka-ui, pgadmin and redisinsight all sit at schema 2 today, so all five would go.

Every schema tree is searched now, newest first, and a definition belongs to the highest tree it appears in. Its own tree keeps its bytes and every tree below renders down from it, exactly as before.

Nothing moves in the published trees: with one schema tree the search finds what it always found, and the render is byte for byte what main already carries.

The checks gain a three schema case, which fails against the current renderer with "it stays listed in the schema that introduced it" and passes here. The matching fix on the binary side, where the fallback chain jumped from the newest schema straight to the unprefixed path and skipped everything between, is in lerd-env/lerd#1913.

The renderer looked for authored definitions in the newest schema tree alone, which is right only while there is exactly one. A definition authored at schema 2 stays at schema 2 when schema 3 arrives, and looking only at the top would put it in neither the authored set nor the plain one: it would be rendered nowhere and dropped from the published trees.

Every schema tree is searched now, newest first, and a definition belongs to the highest one it appears in. Its own tree keeps its bytes and every tree below renders down from it, as before.

Nothing moves today, where one schema tree means the search finds exactly what it found before.
@geodro
geodro requested a review from a team as a code owner September 20, 2026 19:40
@geodro
geodro merged commit 848bce3 into main Sep 20, 2026
2 checks passed
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