richhollis / swagger-docs

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

fixed generate docs errors when just setting base_path #142

Open Code-Farmer-Ming opened 8 years ago

Code-Farmer-Ming commented 8 years ago

When just setting base_path,

Swagger::Docs::Config.register_apis({ '1.0' => { base_path: 'http://localhost:3000' } })

$: rails swagger:docs —————————————————— TypeError: no implicit conversion of nil into String ……/lib/swagger/docs/generator.rb:243:in `create_output_paths' ——————————————————