Skip to content

Commit df26046

Browse files
committed
feat: add allowReserved keyword
1 parent cde888e commit df26046

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/parameter.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ interface ParameterOptionsBase<TName extends string | number | symbol> {
1010
description?: string;
1111
deprecated?: boolean;
1212
allowEmptyValue?: boolean;
13+
allowReserved?: boolean;
1314
style?: 'simple';
1415
}
1516

@@ -51,6 +52,12 @@ export class Parameter<
5152
return {
5253
name: this.options.name.toString(),
5354
in: this.options.in,
55+
...(this.options.description && {
56+
description: this.options.description,
57+
}),
58+
...(this.options.allowReserved && {
59+
allowReserved: this.options.allowReserved,
60+
}),
5461
required: this.options.required,
5562
...(this.options.allowEmptyValue && {
5663
allowEmptyValue: this.options.allowEmptyValue,

0 commit comments

Comments
 (0)