richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raise error when wrong controller action is provide in <model name>_doc file

toshitapandey opened this issue · comments

Is it possible that I get an error when I enter the wrong controller action name in the _doc file in swagger_docs folder?

For e.g., if I have following office_doc.rb

image

And I do not have an index in offices_controller.rb, the rake task should raise an error for the same.