Open Tybot204 opened 8 years ago
As an update to this, it appears to work fine when the documentation files are included after the body of the controller.
app/controllers/v2/comments_controller.rb
module V2
class CommentsController < ApplicationController
def create
# Body of create
end
include V2::CommentsDoc
end
end
Interesting, I plan to touch the dsl definitions (to be able to extend exising documentation from external plugins: I can try to cover this as well)
I get the same problem.
I have a large API that I am developing. Many controllers have custom actions inside of them, and I decided to move all of my Apipie documentation into concerns to make the controller's more readable. However, the param validation Apipie provides does not seem to be raising any errors like it does when the documentation is inside of the controller.
My setup: app/docs/v2/comments_doc.rb
app/controllers/v2/comments_controller.rb