Skip to content

Commit

Permalink
fix: mark http_method property as optional (#12872)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpgrailsdev committed Jun 18, 2024
1 parent c446a1a commit 264cf6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ private void testStreamReadForProject(final ConnectorBuilderProject project, fin
final String responseBody = "[" + Jsons.serialize(record1) + "," + Jsons.serialize(record2) + "]";
final String requestUrl = "https://api.com/users";
final int responseStatus = 200;
final HttpRequest httpRequest = new HttpRequest(requestUrl, HttpMethod.GET, null, null);
final HttpRequest httpRequest = new HttpRequest(requestUrl, null, null, HttpMethod.GET);
final HttpResponse httpResponse = new HttpResponse(responseStatus, responseBody, null);
final StreamRead streamRead = new StreamRead(Collections.emptyList(), List.of(
new StreamReadSlicesInner(List.of(new StreamReadSlicesInnerPagesInner(List.of(record1, record2), httpRequest, httpResponse)), null, null)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ components:
type: object
required:
- url
- http_method
properties:
url:
type: string
Expand All @@ -228,6 +227,7 @@ components:
type: string
enum: ["GET", "POST", "PUT", "PATCH"]
description: The http method of the request ("GET", "POST", "PUT", or "PATCH")
default: "GET"
HttpResponse:
type: object
required:
Expand Down

0 comments on commit 264cf6d

Please sign in to comment.