Skip to content

fix: classify malformed JSON scalar wire payloads - #282

Merged
apstndb merged 2 commits into
mainfrom
fix/json-wire-errors-20260923
Sep 22, 2026
Merged

apstndb merged 2 commits into
mainfrom
fix/json-wire-errors-20260923

Conversation

@apstndb

@apstndb apstndb commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Preserve ErrMalformedWire classification when JSON's special INT64, ENUM, and JSON paths reject a wrong wire kind or invalid payload. Retain wrapped strconv errors for errors.Is/errors.As and leave accepted wire strings unchanged.

Add classification, parse-cause, and pass-through regression tests. Validation: make check, race tests, Example tests, and dbsqlrows/gospanner tests with Go 1.25.13.

Fixes #276.

@apstndb
apstndb merged commit e0d2ce2 into main Sep 22, 2026
5 checks passed
@apstndb
apstndb deleted the fix/json-wire-errors-20260923 branch September 22, 2026 22:24
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.

JSON: preserve ErrMalformedWire classification in special scalar validation

1 participant