Open
Description
Sub-issue 24 of 26 from the 2026-11-21 bot-review-comment audit. Parent issue: #179 (Bot review comment tidy up).
Audited origin/main HEAD: 2e5cf37. Audit date: 2026-11-21.
== Finding 24 (verbatim from the audit findings file) ==
- PR Port jtd-esm-codegen onto the incubator main #169 — ESM parser silently picks the first form of a multi-form schema instead of rejecting it.
Author: chatgpt-codex-connector[bot], 2026-08-31. Comment: Port jtd-esm-codegen onto the incubator main #169 (comment)
Source: jtd-esm-codegen/src/main/java/io/github/simbo1905/json/jtd/codegen/JtdParser.java:125. Current: jtd-esm-codegen/src/main/java/io/github/simbo1905/json/jtd/codegen/JtdParser.java:125-152 (if/else-if chain on type/enum/elements/values/discriminator; no count of present form selectors).
Flagged: "When a schema contains multiple form keywords, such as {"type":"string","enum":["x"]}, this if/else if chain silently chooses the first form and generates a validator instead of rejecting the invalid JTD schema... count the present form selectors before dispatching".
Still applies: unchanged; the Java-side JtdSchema compiler rejects multi-form schemas, the ESM generator accepts them — inconsistent and non-conforming.
Metadata
Metadata
Assignees
Labels
No labels
Activity