ruby-grape / ruby-grape/grape-swagger

Setting add_base_path without base_path explicitly specified, returned an error

Open
#935 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.