diff --git a/test/__snapshots__/index.spec.js.snap b/test/__snapshots__/index.spec.js.snap index be484add..70eed81c 100644 --- a/test/__snapshots__/index.spec.js.snap +++ b/test/__snapshots__/index.spec.js.snap @@ -207,8 +207,9 @@ import { Result } from './Result'; */ export async function request(options: Readonly): Promise { - // 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): Promise { - // 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({