-
Notifications
You must be signed in to change notification settings - Fork 761
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
Conversation
test/oas3/execute/main.js
Outdated
|
||
expect(req).toEqual({ | ||
method: 'POST', | ||
url: `/a=null?b=null`, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ''
There was a problem hiding this 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
## [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))
🎉 This PR is included in version 3.32.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Refs swagger-api/swagger-ui#10226
Fixes the issue with
null
andundefined
values causing errors due to trying to check their length.