Skip to content

Commit 579e5b7

Browse files
jamietannaGreyXor
andcommitted
sq
Co-authored-by: GreyXor <[email protected]>
1 parent 3f73f48 commit 579e5b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oapi_validate_example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ paths:
944944
data, err := json.Marshal(body)
945945
must(err)
946946

947-
req, err := http.NewRequest(http.MethodPost, "/public-api/resource", bytes.NewReader(data))
947+
req, err := http.NewRequest(http.MethodPost, "/public-api/v1/resource", bytes.NewReader(data))
948948
must(err)
949949
req.Header.Set("Content-Type", "application/json")
950950

@@ -957,6 +957,6 @@ paths:
957957

958958
// Output:
959959
// # A request that is well-formed is passed through to the Handler
960-
// POST /public-api/resource was called
960+
// POST /public-api/v1/resource was called
961961
// Received an HTTP 204 response. Expected HTTP 204
962962
}

0 commit comments

Comments
 (0)