diff --git a/src/shared/uriTemplate.ts b/src/shared/uriTemplate.ts index 47671fdd..cd3f46f3 100644 --- a/src/shared/uriTemplate.ts +++ b/src/shared/uriTemplate.ts @@ -30,6 +30,7 @@ export class UriTemplate { ); } } + private readonly template: string; private readonly parts: Array< | string | { name: string; operator: string; names: string[]; exploded: boolean } @@ -37,9 +38,14 @@ export class UriTemplate { constructor(template: string) { UriTemplate.validateLength(template, MAX_TEMPLATE_LENGTH, "Template"); + this.template = template; this.parts = this.parse(template); } + toString(): string { + return this.template; + } + private parse( template: string, ): Array<