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

WithQueryObject encode empty values to empty string '' #438

Open
sanikoyes opened this issue Dec 21, 2023 · 0 comments
Open

WithQueryObject encode empty values to empty string '' #438

sanikoyes opened this issue Dec 21, 2023 · 0 comments

Comments

@sanikoyes
Copy link

sanikoyes commented Dec 21, 2023

The form.EncodeToValues interface used in the WithQueryObject function will escape the empty value in the query object into an empty string "", such as the number 0, or a length 0 of array/slice/map etc.

Please provide an option to turn off this feature when create httpexpect.Expect, (the form library can create an Encoder and then call KeepZeros(false) to disable this feature)

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

No branches or pull requests

1 participant