Repository navigation
fix: preserve nested JSON Schema grouping in TypeScript - #17
Merged
Merged
Conversation
Contributor
Author
🤖 Automated Review PanelReviewer AAPPROVE
No remaining correctness or acceptance blockers found. Reviewer BAPPROVE
No blocking findings. |
shivros
marked this pull request as ready for review
September 23, 2026 08:10
Contributor
Author
Auto-Merge GateConfidence: 0.95 The implementation directly satisfies COD-521: it replaces precedence-blind TypeScript schema rendering with an explicit precedence model and adds real generated-output, strict TypeScript, determinism, and CI coverage for the reported nested union/intersection bug. Checks observed: CI Scope reviewed: Hydra code-generation correctness plus focused fixtures and CI invocation only. |
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.
Summary
hydra check, and CI invocation.Linear
COD-521 — Hydra: preserve nested JSON Schema union/intersection grouping in TypeScript.
Baseline evidence
The pre-fix fixture was generated from Hydra
origin/mainatb210ff55147dbf5667b2c098c833a94a96126fbaand compiled with the pinned TypeScript 5.9.2 toolchain. The compiler exited 2 with fourTS2578: Unused '@ts-expect-error' directivefailures attype-tests.tslines 21, 24, 26, and 29, proving the ungrouped renderer accepted invalid values. The reproducible record is committed atcrates/hydra-codegen/tests/fixtures/nested-ts-schema/baseline.md.Verification
cargo build --all-targetscargo test --all-targets— 59 codegen tests plus Notes/Security Scan suites passedcargo clippy --all-targets -- -D warningscargo fmt --all -- --checkcargo run -p hydra-codegen --bin hydra-codegen -- checkinexamples/notes,examples/security-scan, andexamples/ts-clientnpm run test:nested-schema— two writes byte-identical across CLI/HTTP/MCP/TypeScript,hydra checkpassed, strict TypeScript 5.9.2 positive/negative assignments passednpm run typechecknpm run buildcreed diffgit diff --checkcargo metadata --locked --no-deps --format-version 1No consumer repin, release/tag, npm publication, deployment, credential, or runtime transport behavior is included.