-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: requestBuilder schema validation and numeric value handling issues
- Loading branch information
1 parent
42e868d
commit 010b21c
Showing
4 changed files
with
63 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { HttpRequest, RequestOptions } from './httpRequest'; | ||
import { HttpResponse } from './httpResponse'; | ||
|
||
/** | ||
* Interface defining the contract for an HTTP client. | ||
* Implementations of this interface should handle making HTTP requests | ||
* and returning promises that resolve to HTTP responses. | ||
* @param request The HTTP request to be sent. | ||
* @param requestOptions Optional additional options for the request. | ||
* @returns A promise that resolves to an HTTP response. | ||
*/ | ||
export type HttpClientInterface = ( | ||
request: HttpRequest, | ||
requestOptions?: RequestOptions | ||
) => Promise<HttpResponse>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters