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 spent a few hours today trying to figure out why I was getting JSON encoding errors on my multipart-upload post doc specs. I eventually found an issue here: #202 detailing that it should be stripped out and replaced with [upload data]. I am super glad that rspec_api_documentation handles this for me, as every attempt I tried to do on my own to strip the data out via regex was coming up short.
Now that I know rspec_api_documentation was supposed to handle this form. I am still running into an issue where it is not properly stripping. I have have tracked it down to this line
I spent a few hours today trying to figure out why I was getting JSON encoding errors on my multipart-upload post doc specs. I eventually found an issue here: #202 detailing that it should be stripped out and replaced with
[upload data]
. I am super glad that rspec_api_documentation handles this for me, as every attempt I tried to do on my own to strip the data out via regex was coming up short.Now that I know rspec_api_documentation was supposed to handle this form. I am still running into an issue where it is not properly stripping. I have have tracked it down to this line
rspec_api_documentation/lib/rspec_api_documentation/rack_test_client.rb
Line 47 in 2c8f4df
When my test hits that line I have no
Content-Type
header, I have aContent_type
header.My spec looks roughly like this:
I can look into this more tomorrow. I wanted to drop the issue here though incase someone knew off hand what was going on.
The text was updated successfully, but these errors were encountered: