mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Updated test cases
This commit is contained in:
parent
e873a1a762
commit
bc1bf9aa42
@ -207,8 +207,9 @@ import { Result } from './Result';
|
||||
*/
|
||||
export async function request(options: Readonly<RequestOptions>): Promise<Result> {
|
||||
|
||||
// Create the request URL
|
||||
let url = \`\${OpenAPI.BASE}\${options.path}\`;
|
||||
// Escape path (RFC3986) and create the request URL
|
||||
let path = options.path.replace(/[:]/g, '_');
|
||||
let url = \`\${OpenAPI.BASE}\${path}\`;
|
||||
|
||||
// Create request headers
|
||||
const headers = new Headers({
|
||||
@ -2316,8 +2317,9 @@ import { Result } from './Result';
|
||||
*/
|
||||
export async function request(options: Readonly<RequestOptions>): Promise<Result> {
|
||||
|
||||
// Create the request URL
|
||||
let url = \`\${OpenAPI.BASE}\${options.path}\`;
|
||||
// Escape path (RFC3986) and create the request URL
|
||||
let path = options.path.replace(/[:]/g, '_');
|
||||
let url = \`\${OpenAPI.BASE}\${path}\`;
|
||||
|
||||
// Create request headers
|
||||
const headers = new Headers({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user