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 51a682d commit 58bf985Copy full SHA for 58bf985
packages/openapi-ts/src/openApi/3.1.x/parser/pagination.ts
@@ -85,10 +85,8 @@ export const paginationField = ({
85
(schema) => schema.type !== 'null',
86
);
87
if (nonNullCompositionSchemas.length === 1) {
88
- const firstSchema = nonNullCompositionSchemas[0]!;
89
-
90
const schemaTypes = getSchemaTypes({
91
- schema: firstSchema,
+ schema: nonNullCompositionSchemas[0]!,
92
});
93
if (isPaginationType(schemaTypes)) {
94
return name;
0 commit comments