@@ -55,7 +55,6 @@ interface ReqResCommons {
5555 ) => ReferenceObject ;
5656 path : string ;
5757 method : ClientMethod ;
58- maxCombinations ?: number ;
5958}
6059
6160export interface OpenAPIContext extends ReqResCommons {
@@ -127,9 +126,9 @@ export const depictUnion: Depicter = ({ zodSchema, jsonSchema }) => {
127126} ;
128127
129128export const depictIntersection = R . tryCatch < Depicter > (
130- ( { jsonSchema } , { maxCombinations } ) => {
129+ ( { jsonSchema } ) => {
131130 if ( ! jsonSchema . allOf ) throw "no allOf" ;
132- return flattenIO ( jsonSchema , { isStrict : true , maxCombinations } ) ;
131+ return flattenIO ( jsonSchema , { isStrict : true } ) ;
133132 } ,
134133 ( _err , { jsonSchema } ) => jsonSchema ,
135134) ;
@@ -283,7 +282,6 @@ export const depictRequestParams = ({
283282 composition,
284283 isHeader,
285284 securityHeaders,
286- maxCombinations,
287285 description = `${ method . toUpperCase ( ) } ${ path } Parameter` ,
288286} : ReqResCommons & {
289287 composition : "inline" | "components" ;
@@ -293,7 +291,7 @@ export const depictRequestParams = ({
293291 isHeader ?: IsHeader ;
294292 securityHeaders ?: Set < string > ;
295293} ) => {
296- const flat = flattenIO ( request , { maxCombinations } ) ;
294+ const flat = flattenIO ( request ) ;
297295 const pathParams = getRoutePathParams ( path ) ;
298296 const isQueryEnabled = inputSources . includes ( "query" ) ;
299297 const areParamsEnabled = inputSources . includes ( "params" ) ;
@@ -456,7 +454,6 @@ export const depictResponse = ({
456454 hasMultipleStatusCodes,
457455 statusCode,
458456 brandHandling,
459- maxCombinations,
460457 description = `${ method . toUpperCase ( ) } ${ path } ${ ucFirst ( variant ) } response ${
461458 hasMultipleStatusCodes ? statusCode : ""
462459 } `. trim ( ) ,
@@ -474,7 +471,7 @@ export const depictResponse = ({
474471 const response = asOAS (
475472 depict ( schema , {
476473 rules : { ...brandHandling , ...depicters } ,
477- ctx : { isResponse : true , makeRef, path, method, maxCombinations } ,
474+ ctx : { isResponse : true , makeRef, path, method } ,
478475 } ) ,
479476 ) ;
480477 const examples = [ ] ;
@@ -590,14 +587,13 @@ export const depictRequest = ({
590587 makeRef,
591588 path,
592589 method,
593- maxCombinations,
594590} : ReqResCommons & {
595591 schema : IOSchema ;
596592 brandHandling ?: BrandHandling ;
597593} ) =>
598594 depict ( schema , {
599595 rules : { ...brandHandling , ...depicters } ,
600- ctx : { isResponse : false , makeRef, path, method, maxCombinations } ,
596+ ctx : { isResponse : false , makeRef, path, method } ,
601597 } ) ;
602598
603599export const depictBody = ( {
@@ -609,7 +605,6 @@ export const depictBody = ({
609605 makeRef,
610606 composition,
611607 paramNames,
612- maxCombinations,
613608 description = `${ method . toUpperCase ( ) } ${ path } Request body` ,
614609} : ReqResCommons & {
615610 schema : IOSchema ;
@@ -636,7 +631,7 @@ export const depictBody = ({
636631 examples : enumerateExamples (
637632 examples . length
638633 ? examples
639- : flattenIO ( request , { maxCombinations } )
634+ : flattenIO ( request )
640635 . examples ?. filter (
641636 ( one ) : one is FlatObject => isObject ( one ) && ! Array . isArray ( one ) ,
642637 )
0 commit comments