You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've spent the last couple of hours debugging an issue we've run into where the hash of the request body sent (using go-swagger/go-openapi) isn't what it's supposed to be (using other common tools).
I've narrowed it down to the JSON producer, which adds a newline char at the end...
So I go and have a look at the unit tests. And they seem cheat by appending a newline char in the assert:
I've spent the last couple of hours debugging an issue we've run into where the hash of the request body sent (using go-swagger/go-openapi) isn't what it's supposed to be (using other common tools).
I've narrowed it down to the JSON producer, which adds a newline char at the end...
So I go and have a look at the unit tests. And they seem cheat by appending a newline char in the assert:
https://github.com/go-openapi/runtime/blob/master/json_test.go#L61
What the...?
ping @casualjim
The text was updated successfully, but these errors were encountered: