We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e040e9 commit e4b3820Copy full SHA for e4b3820
src/shared/uriTemplate.ts
@@ -30,16 +30,22 @@ export class UriTemplate {
30
);
31
}
32
33
+ private readonly template: string;
34
private readonly parts: Array<
35
| string
36
| { name: string; operator: string; names: string[]; exploded: boolean }
37
>;
38
39
constructor(template: string) {
40
UriTemplate.validateLength(template, MAX_TEMPLATE_LENGTH, "Template");
41
+ this.template = template;
42
this.parts = this.parse(template);
43
44
45
+ toString(): string {
46
+ return this.template;
47
+ }
48
+
49
private parse(
50
template: string,
51
): Array<
0 commit comments