diff --git a/.changeset/tough-forks-give.md b/.changeset/tough-forks-give.md new file mode 100644 index 0000000..4316523 --- /dev/null +++ b/.changeset/tough-forks-give.md @@ -0,0 +1,5 @@ +--- +'openapi-ts-request': patch +--- + +fix: fix bug #467 diff --git a/src/index.ts b/src/index.ts index 191ef4a..622d5b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -327,9 +327,7 @@ export async function generateService({ ? [/.*/g] : null, includePaths: includePaths - ? map(includePaths, (item) => - isString(item) ? item.toLowerCase() : item - ) + ? includePaths : priorityRule === PriorityRule.include || priorityRule === PriorityRule.both ? [/.*/g] @@ -339,11 +337,7 @@ export async function generateService({ isString(item) ? item.toLowerCase() : item ) : null, - excludePaths: excludePaths - ? map(excludePaths, (item) => - isString(item) ? item.toLowerCase() : item - ) - : null, + excludePaths: excludePaths ? excludePaths : null, requestOptionsType: '{[key: string]: unknown}', namespace: 'API', isGenReactQuery: false,