Skip to content

Commit 258511a

Browse files
committed
restoring previous limit in Documentation.
1 parent a6a6482 commit 258511a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

express-zod-api/src/documentation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export class Documentation extends OpenApiBuilder {
173173
composition = "inline",
174174
}: DocumentationParams) {
175175
super();
176+
const prevLimit = combinations.limit;
176177
combinations.limit = maxCombinations;
177178
this.addInfo({ title, version });
178179
for (const url of typeof serverUrl === "string" ? [serverUrl] : serverUrl)
@@ -282,5 +283,6 @@ export class Documentation extends OpenApiBuilder {
282283
onEndpoint: hasHeadMethod ? withHead(onEndpoint) : onEndpoint,
283284
});
284285
if (tags) this.rootDoc.tags = depictTags(tags);
286+
combinations.limit = prevLimit; // restore previous limit
285287
}
286288
}

0 commit comments

Comments
 (0)