Skip to content

fixed generate docs errors when just setting base_path#142

Open
Code-Farmer-Ming wants to merge 1 commit intorichhollis:masterfrom
Code-Farmer-Ming:master
Open

fixed generate docs errors when just setting base_path#142
Code-Farmer-Ming wants to merge 1 commit intorichhollis:masterfrom
Code-Farmer-Ming:master

Conversation

@Code-Farmer-Ming
Copy link
Copy Markdown

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'
——————————————————

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'
——————————————————
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants