-
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(response-validation): request builder schema validation and numer…
…ic value handling issues (#183)
- Loading branch information
1 parent
74b5483
commit ad18ad0
Showing
4 changed files
with
69 additions
and
55 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