Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

HttpRepl doesn't respect servers:url as a base automatically #148

Description

@shanselman

I've got a simple node app with a swagger.json like this.
swagger.txt

{ "openapi": "3.0.0", "servers": [ { "url": "/api/v1" } ]...

And while it is correct and valid swagger, it's not automatically usable with httpRepl without manual and non-intuitive base url setting.

set base https://MYSITE/api/v1 set swagger https://MYSITE/swagger.json

The base setting should be implied by the single servers:url and this should work without manual set base or manual set swagger.

Second ask - Would be nice to "Set swagger LOCALFILE" as well. Or even "dotnet watch httprep --swagger LOCALFILE" for iterative development.

cc @tlmii

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions