Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(execute): fix encoding of object properties with null value #3726

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

glowcloud
Copy link
Contributor

@glowcloud glowcloud commented Dec 2, 2024

Refs swagger-api/swagger-ui#10226

Fixes the issue with null and undefined values causing errors due to trying to check their length.


expect(req).toEqual({
method: 'POST',
url: `/a=null?b=null`,
Copy link
Member

@char0n char0n Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks weird. Why would anybody want that? Le't think about this, if it make sense

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed this should have the same semantics as undefined - absence of a value, which is represented by ''

Copy link
Member

@char0n char0n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM + please do the change for stringyfiQuery

@glowcloud glowcloud merged commit 42bd8a9 into master Dec 3, 2024
8 checks passed
@glowcloud glowcloud deleted the query-null-property branch December 3, 2024 09:42
swagger-bot pushed a commit that referenced this pull request Dec 3, 2024
## [3.32.2](v3.32.1...v3.32.2) (2024-12-03)

### Bug Fixes

* **execute:** fix encoding of objects and arrays with null and undefined values ([#3726](#3726)) ([42bd8a9](42bd8a9))
@swagger-bot
Copy link
Contributor

🎉 This PR is included in version 3.32.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants