Azure / Azure/data-api-builder

[Bug]: Inconsistent REST Path Validation Between `init` and `configure`

Open Beginner friendly
#3,535 0 comments 0 reactions 0 assignees View on GitHub
2.0 cli
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.