ruby-grape / ruby-grape/grape-swagger
Setting add_base_path without base_path explicitly specified, returned an error
Open
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.1k
- Forks
- 479
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 6
Description
example configuration:
add_swagger_documentation add_base_path: true
this will returns undefined method script_name' for nil:NilClass`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with add_swagger_documentation add_base_path: true, then trace how add_base_path is handled when base_path is omitted. Done means this configuration no longer raises the undefined method `script_name' for nil:NilClass error and produces the expected Swagger documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100