inspector/core/json
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall c8c5442dcf fix: address Copilot review round 27 — unconstrained null branches, typed discriminators
- anyOfAdmitsNull recognizes a branch that constrains nothing (`{}`, or
  annotations only): it admits every value, null among them, so a field pinned
  to `const: null` beside such a union stays submittable. `admitsNull`
  cannot say that on its own — an unconstrained schema tells it nothing either
  way and it declines rather than guesses — but here the question is narrower.
- convertToolParameters sends a matched `const` as the schema's own typed
  value: `kind=2` selects a branch pinned to `const: 2` and was then sent
  `"2"`, which that same branch rejects. Only an exact match is
  substituted; anything else is the user's input and is left alone.

Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-26 10:07:35 -04:00
..
jsonUtils.ts fix: address Copilot review round 27 — unconstrained null branches, typed discriminators 2026-08-26 10:07:35 -04:00
nullableUnion.ts fix: address Copilot review round 27 — unconstrained null branches, typed discriminators 2026-08-26 10:07:35 -04:00
rootUnion.ts fix: address Copilot review round 26 — a false property schema declines the branch 2026-08-26 09:42:50 -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