inspector/core/json
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall d334710d6f fix: address Copilot review round 20 — malformed applicators, const-null under anyOf
- rootUnion reads every composition keyword through `membersOf` and every
  `required` through `requiredOf`. These schemas describe the wire and each
  member arrives as `unknown`, so `anyOf: {}` or `required: "x"` really
  can arrive — and reading them as lists threw, taking all three clients down
  rather than declining one malformed tool. Both web and TUI required-field
  checks are guarded the same way.
- admitsNull evaluates a sibling `anyOf` beside a `const: null` instead of
  refusing outright: the union decides in both directions, and
  `{ const: null, anyOf: [{ type: "null" }] }` admits null as plainly as an
  all-string union rejects it. Refusing it left a read-only required field
  seeded with the only value it accepts and submit permanently disabled.

Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-26 07:26:49 -04:00
..
jsonUtils.ts fix: address Copilot review round 17 — shared branch narrowing, null admissibility 2026-08-26 06:38:46 -04:00
nullableUnion.ts fix: address Copilot review round 20 — malformed applicators, const-null under anyOf 2026-08-26 07:26:49 -04:00
rootUnion.ts fix: address Copilot review round 20 — malformed applicators, const-null under anyOf 2026-08-26 07:26:49 -04:00
schemaLint.ts fix: stop claiming a bare-true replacement narrows the contract 2026-08-25 03:41:17 -04:00
xMcpHeader.ts fix(core): mirror SEP-2243 x-mcp-header args to Mcp-Param-* on tools/call (#1847) 2026-07-28 19:19:48 -04:00