Azure / Azure/data-api-builder
[Bug]: Inconsistent REST Path Validation Between `init` and `configure`
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 370
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 9
Description
## Expected:
Both should behave the same, either reject or normalize consistently.
```
# This silently succeeds (prepends /):
dab init --database-type mssql --connection-string "test" --rest.path "noslash" --config test.json
# This correctly fails:
dab configure --runtime.graphql.path "noslash"
# fail: Path must start with a '/'
```
Contributor guide
Research direction
Start with the `dab init` and `dab configure` command entry points and reproduce both path-validation behaviors from the issue. Trace where `rest.path` and `runtime.graphql.path` are validated, then run the relevant CLI tests or commands to confirm both reject or normalize paths consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100