richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.
MIT License
749 stars 150 forks source link

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

Open toshitapandey opened 5 years ago

toshitapandey commented 5 years ago

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.