From f2faf5701ee64849742abf03e09d38326571c021 Mon Sep 17 00:00:00 2001 From: Kiyan Date: Tue, 29 Jul 2025 10:30:10 +0800 Subject: [PATCH 1/2] feat: use openapi.json by default --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index e93c88fd..76572161 100644 --- a/api.go +++ b/api.go @@ -496,7 +496,7 @@ func NewAPI(config Config, a Adapter) API { Date: Tue, 29 Jul 2025 10:41:02 +0800 Subject: [PATCH 2/2] fix unit test --- adapters/humachi/humachi_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/humachi/humachi_test.go b/adapters/humachi/humachi_test.go index 0b9314c6..7e036099 100644 --- a/adapters/humachi/humachi_test.go +++ b/adapters/humachi/humachi_test.go @@ -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) {