Skip to content

fix: stop checkbox normalization on response deserialize - #4

Merged
ziptied merged 1 commit into
mainfrom
fix/php-checkbox-response-normalize
Jul 23, 2026
Merged

ziptied merged 1 commit into
mainfrom
fix/php-checkbox-response-normalize

Conversation

@ziptied

@ziptied ziptied commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Generated from Bidsketch/signwell-sdk-generator.

SW-003 checkbox normalization ran on response field models too. Deserializing documents with checkbox fields threw InvalidArgumentException, including for API wire value "t".

Removes response-path normalization from DocumentResponseFieldsInnerInner and DocumentFromTemplateResponseFieldsInnerInner. Request models still normalize. Adds a regression test for response deserialize of "t".

Verification

  • Repro deserialize of checkbox "t" passes
  • composer validate --strict, composer check, PHPUnit 50/50, composer audit, package archive contents OK

Regenerated from signwell-sdk-generator so create/get/list document
calls no longer throw when API checkbox values are "t"/"f".

Co-authored-by: Cursor <cursoragent@cursor.com>
@ziptied
ziptied merged commit 3f6d907 into main Jul 23, 2026
4 checks passed
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