While using the rspec-api-documentation gem in markdown mode (config.format = [:markdown]
) I noticed that the documentation generated is lacking the response body.
Is there a permanent fix for this?
While using the rspec-api-documentation gem in markdown mode (config.format = [:markdown]
) I noticed that the documentation generated is lacking the response body.
Is there a permanent fix for this?
The problem is documented in this issue and there does not seem to be a permanent fix at the moment. A workaround has been posted in the issues comment and it involves monkey-patching:
Adding the code in the initializer (
rspec_api_docs.rb
) before generating the documentation seems to solve the issue.