Skip to content

fix: don't strip empty arrays/objects - #391

Merged
Justin Hammond (Justintime50) merged 2 commits into
masterfrom
dont_strip_empty
Aug 11, 2026
Merged

fix: don't strip empty arrays/objects#391
Justin Hammond (Justintime50) merged 2 commits into
masterfrom
dont_strip_empty

Conversation

@Justintime50

Copy link
Copy Markdown
Member

Description

Empty arrays/objects are valid JSON and we should respect what the user passes. This is necessary for a niche UPS option that needs an empty array passed on the request which was previously being stripped

Testing

Tweaked a test and investigated cassette output. Previous to fix got 500 and stripped value, now empty array is passed through.

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc)

@Justintime50
Justin Hammond (Justintime50) merged commit 4fb960f into master Aug 11, 2026
9 checks passed
@Justintime50
Justin Hammond (Justintime50) deleted the dont_strip_empty branch August 11, 2026 19:50
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.

2 participants