File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
packages/openapi-ts/src/openApi Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,7 @@ export const paginationField = ({
88
88
paginationRegExp . lastIndex = 0 ;
89
89
90
90
if ( paginationRegExp . test ( name ) ) {
91
- const property = schema . properties [ name ] ;
92
-
93
- // Skip if property doesn't exist
94
- if ( ! property ) continue ;
91
+ const property = schema . properties [ name ] ! ;
95
92
96
93
if ( typeof property !== 'boolean' && ! ( '$ref' in property ) ) {
97
94
const schemaType = getSchemaType ( { schema : property } ) ;
Original file line number Diff line number Diff line change @@ -85,10 +85,7 @@ export const paginationField = ({
85
85
( schema ) => schema . type !== 'null' ,
86
86
) ;
87
87
if ( nonNullCompositionSchemas . length === 1 ) {
88
- const firstSchema = nonNullCompositionSchemas [ 0 ] ;
89
-
90
- // Skip if schema doesn't exist
91
- if ( ! firstSchema ) continue ;
88
+ const firstSchema = nonNullCompositionSchemas [ 0 ] ! ;
92
89
93
90
const schemaTypes = getSchemaTypes ( {
94
91
schema : firstSchema ,
You can’t perform that action at this time.
0 commit comments