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 602a624 commit 05c7eeaCopy full SHA for 05c7eea
packages/openapi-ts/src/ir/pagination.ts
@@ -8,11 +8,14 @@ export const DEFAULT_PAGINATION_KEYWORDS = [
8
'offset',
9
'page',
10
'start',
11
-];
+] as const;
12
13
export function getPaginationKeywordsRegExp({
14
keywords = DEFAULT_PAGINATION_KEYWORDS,
15
}: Config['input']['pagination'] = {}): RegExp {
16
+ if (keywords.length === 0) {
17
+ keywords = DEFAULT_PAGINATION_KEYWORDS;
18
+ }
19
const pattern = `^(${keywords.join('|')})$`;
20
return new RegExp(pattern);
21
}
0 commit comments