Skip to content

Preserve literal strings in JSON response fields - #1130

Draft
intel352 wants to merge 1 commit into
mainfrom
fix/json-response-literal-string-contract-20261127
Draft

intel352 wants to merge 1 commit into
mainfrom
fix/json-response-literal-string-contract-20261127

Conversation

@intel352

Copy link
Copy Markdown
Contributor

Summary

  • Preserve literal strings in response body fields even when their text looks like a JSON object or array.
  • Retain explicit template rendering, whole-body parsing and typed references.
  • Document the contract and add nested, literal, typed and structured-output regression controls.

Verification

  • Confirmed the literal/nested cases fail before the fix and pass after it.
  • Go 1.27.4 on Darwin: 28 JSON-response tests (16 subtests) plus the response alias test passed. Markdown-only final refinement did not alter the tested Go files.
  • Independently reviewed tree a8c2837a3a2f291d25f48c3712c21ede7a4a512d. Full hosted CI and Linux qualification are pending; this does not claim any downstream deployment or HTTP acceptance.

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