这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adapters/humachi/humachi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func TestChiRouterPrefix(t *testing.T) {
// The docs HTML should point to the full URL including base path.
resp = tapi.Get("/api/docs")
assert.Equal(t, http.StatusOK, resp.Code)
assert.Contains(t, resp.Body.String(), "/api/openapi.yaml")
assert.Contains(t, resp.Body.String(), "/api/openapi.json")
}

func TestPathParamDecoding(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func NewAPI(config Config, a Adapter) API {
<body style="height: 100vh;">

<elements-api
apiDescriptionUrl="` + openAPIPath + `.yaml"
apiDescriptionUrl="` + openAPIPath + `.json"
router="hash"
layout="sidebar"
tryItCredentialsPolicy="same-origin"
Expand Down
Loading