@@ -195,7 +195,7 @@ export const fakeArrayWithAnyOfProperties = (options?: Options): ArrayWithAnyOfP
195195 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { foo : resolveCondition ( options ?. useDefault ?? false , f ) ? 'test' : f . string . sample ( ) }
196196 } , {
197197 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { bar : f . string . sample ( ) }
198- } ] ) ) ;
198+ } ] ) as any ) ;
199199} ;
200200
201201export const fakeAnyOfAnyAndNull = ( options ?: Options ) : AnyOfAnyAndNull => {
@@ -212,7 +212,7 @@ export const fakeAnyOfArrays = (options?: Options): AnyOfArrays => {
212212 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { foo : f . string . sample ( ) }
213213 } , {
214214 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { bar : f . string . sample ( ) }
215- } ] ) ) }
215+ } ] ) as any ) }
216216 } ;
217217} ;
218218
@@ -428,7 +428,7 @@ export const fakeCompositionWithOneOf = (options?: Options): CompositionWithOneO
428428 fakeModelWithEnum ( options ) ,
429429 fakeModelWithArray ( options ) ,
430430 fakeModelWithDictionary ( options )
431- ] ) }
431+ ] ) as any }
432432 } ;
433433} ;
434434
@@ -441,7 +441,7 @@ export const fakeCompositionWithOneOfAnonymous = (options?: Options): Compositio
441441 } ,
442442 f . string . sample ( ) ,
443443 f . number . int ( )
444- ] ) }
444+ ] ) as any }
445445 } ;
446446} ;
447447
@@ -463,7 +463,7 @@ export const fakeModelSquare = (options?: Options): ModelSquare => {
463463
464464export const fakeCompositionWithOneOfDiscriminator = ( options ?: Options ) : CompositionWithOneOfDiscriminator => {
465465 const f = options ?. faker ?? faker ;
466- return f . helpers . arrayElement ( [ fakeModelCircle ( options ) , fakeModelSquare ( options ) ] ) ;
466+ return f . helpers . arrayElement ( [ fakeModelCircle ( options ) , fakeModelSquare ( options ) ] ) as any ;
467467} ;
468468
469469export const fakeCompositionWithAnyOf = ( options ?: Options ) : CompositionWithAnyOf => {
@@ -474,7 +474,7 @@ export const fakeCompositionWithAnyOf = (options?: Options): CompositionWithAnyO
474474 fakeModelWithEnum ( options ) ,
475475 fakeModelWithArray ( options ) ,
476476 fakeModelWithDictionary ( options )
477- ] ) }
477+ ] ) as any }
478478 } ;
479479} ;
480480
@@ -487,14 +487,14 @@ export const fakeCompositionWithAnyOfAnonymous = (options?: Options): Compositio
487487 } ,
488488 f . string . sample ( ) ,
489489 f . number . int ( )
490- ] ) }
490+ ] ) as any }
491491 } ;
492492} ;
493493
494494export const fakeCompositionWithNestedAnyAndTypeNull = ( options ?: Options ) : CompositionWithNestedAnyAndTypeNull => {
495495 const f = options ?. faker ?? faker ;
496496 return {
497- ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { propA : f . helpers . arrayElement ( [ f . helpers . multiple ( ( ) => f . datatype . boolean ( ) ? fakeModelWithDictionary ( options ) : null ) , f . helpers . multiple ( ( ) => f . datatype . boolean ( ) ? fakeModelWithArray ( options ) : null ) ] ) }
497+ ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { propA : f . helpers . arrayElement ( [ f . helpers . multiple ( ( ) => f . datatype . boolean ( ) ? fakeModelWithDictionary ( options ) : null ) , f . helpers . multiple ( ( ) => f . datatype . boolean ( ) ? fakeModelWithArray ( options ) : null ) ] ) as any }
498498 } ;
499499} ;
500500
@@ -508,7 +508,7 @@ export const fakeConstValue = (): ConstValue => 'ConstValue';
508508export const fakeCompositionWithNestedAnyOfAndNull = ( options ?: Options ) : CompositionWithNestedAnyOfAndNull => {
509509 const f = options ?. faker ?? faker ;
510510 return {
511- ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { propA : f . datatype . boolean ( ) ? f . helpers . multiple ( ( ) => f . helpers . arrayElement ( [ fake3eNum1Период ( options ) , fakeConstValue ( ) ] ) ) : null }
511+ ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { propA : f . datatype . boolean ( ) ? f . helpers . multiple ( ( ) => f . helpers . arrayElement ( [ fake3eNum1Период ( options ) , fakeConstValue ( ) ] ) as any ) : null }
512512 } ;
513513} ;
514514
@@ -523,7 +523,7 @@ export const fakeCompositionWithOneOfAndNullable = (options?: Options): Composit
523523 fakeModelWithArray ( options ) ,
524524 fakeModelWithDictionary ( options ) ,
525525 null
526- ] ) }
526+ ] ) as any }
527527 } ;
528528} ;
529529
@@ -532,7 +532,7 @@ export const fakeCompositionWithOneOfAndSimpleDictionary = (options?: Options):
532532 return {
533533 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { propA : f . helpers . arrayElement ( [ f . datatype . boolean ( ) , ! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } as { } : {
534534 additionalProp : f . number . float ( )
535- } ] ) }
535+ } ] ) as any }
536536 } ;
537537} ;
538538
@@ -541,16 +541,16 @@ export const fakeCompositionWithOneOfAndSimpleArrayDictionary = (options?: Optio
541541 return {
542542 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { propA : f . helpers . arrayElement ( [ f . datatype . boolean ( ) , ! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } as { } : {
543543 additionalProp : f . helpers . multiple ( ( ) => f . datatype . boolean ( ) )
544- } ] ) }
544+ } ] ) as any }
545545 } ;
546546} ;
547547
548548export const fakeCompositionWithOneOfAndComplexArrayDictionary = ( options ?: Options ) : CompositionWithOneOfAndComplexArrayDictionary => {
549549 const f = options ?. faker ?? faker ;
550550 return {
551551 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { propA : f . helpers . arrayElement ( [ f . datatype . boolean ( ) , ! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } as { } : {
552- additionalProp : f . helpers . multiple ( ( ) => f . helpers . arrayElement ( [ f . number . float ( ) , f . string . sample ( ) ] ) )
553- } ] ) }
552+ additionalProp : f . helpers . multiple ( ( ) => f . helpers . arrayElement ( [ f . number . float ( ) , f . string . sample ( ) ] ) as any )
553+ } ] ) as any }
554554 } ;
555555} ;
556556
@@ -574,7 +574,7 @@ export const fakeCompositionWithAnyOfAndNullable = (options?: Options): Composit
574574 fakeModelWithArray ( options ) ,
575575 fakeModelWithDictionary ( options ) ,
576576 null
577- ] ) }
577+ ] ) as any }
578578 } ;
579579} ;
580580
@@ -741,7 +741,7 @@ export const fakeModelWithAdditionalPropertiesEqTrue = (options?: Options): Mode
741741export const fakeNestedAnyOfArraysNullable = ( options ?: Options ) : NestedAnyOfArraysNullable => {
742742 const f = options ?. faker ?? faker ;
743743 return {
744- ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { nullableArray : f . datatype . boolean ( ) ? f . helpers . multiple ( ( ) => f . helpers . arrayElement ( [ f . string . sample ( ) , f . datatype . boolean ( ) ] ) ) : null }
744+ ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { nullableArray : f . datatype . boolean ( ) ? f . helpers . multiple ( ( ) => f . helpers . arrayElement ( [ f . string . sample ( ) , f . datatype . boolean ( ) ] ) as any ) : null }
745745 } ;
746746} ;
747747
@@ -791,7 +791,7 @@ export const fakeModelWithOneOfEnum = (options?: Options): ModelWithOneOfEnum =>
791791 content : [ f . date . recent ( ) . toISOString ( ) , f . date . recent ( ) . toISOString ( ) ] ,
792792 foo : 'Corge'
793793 }
794- ] ) ;
794+ ] ) as any ;
795795} ;
796796
797797export const fakeModelWithNestedArrayEnumsDataFoo = ( options ?: Options ) : ModelWithNestedArrayEnumsDataFoo => {
@@ -852,9 +852,9 @@ export const fakeModelWithConstantSizeArray = (options?: Options): ModelWithCons
852852export const fakeModelWithAnyOfConstantSizeArray = ( options ?: Options ) : ModelWithAnyOfConstantSizeArray => {
853853 const f = options ?. faker ?? faker ;
854854 return [
855- f . helpers . arrayElement ( [ f . number . float ( ) , f . string . sample ( ) ] ) ,
856- f . helpers . arrayElement ( [ f . number . float ( ) , f . string . sample ( ) ] ) ,
857- f . helpers . arrayElement ( [ f . number . float ( ) , f . string . sample ( ) ] )
855+ f . helpers . arrayElement ( [ f . number . float ( ) , f . string . sample ( ) ] ) as any ,
856+ f . helpers . arrayElement ( [ f . number . float ( ) , f . string . sample ( ) ] ) as any ,
857+ f . helpers . arrayElement ( [ f . number . float ( ) , f . string . sample ( ) ] ) as any
858858 ] ;
859859} ;
860860
@@ -864,7 +864,7 @@ export const fakeModelWithPrefixItemsConstantSizeArray = (options?: Options): Mo
864864 fakeModelWithInteger ( options ) ,
865865 f . number . float ( ) ,
866866 f . string . sample ( )
867- ] ) ) ;
867+ ] ) as any ) ;
868868} ;
869869
870870export const fakeModelWithAnyOfConstantSizeArrayNullable = ( options ?: Options ) : ModelWithAnyOfConstantSizeArrayNullable => {
@@ -874,17 +874,17 @@ export const fakeModelWithAnyOfConstantSizeArrayNullable = (options?: Options):
874874 f . number . float ( ) ,
875875 f . string . sample ( ) ,
876876 null
877- ] ) ,
877+ ] ) as any ,
878878 f . helpers . arrayElement ( [
879879 f . number . float ( ) ,
880880 f . string . sample ( ) ,
881881 null
882- ] ) ,
882+ ] ) as any ,
883883 f . helpers . arrayElement ( [
884884 f . number . float ( ) ,
885885 f . string . sample ( ) ,
886886 null
887- ] )
887+ ] ) as any
888888 ] ;
889889} ;
890890
@@ -942,7 +942,7 @@ export const fakeImport = (options?: Options): Import => {
942942
943943export const fakeModelWithAnyOfConstantSizeArrayWithNSizeAndOptions = ( options ?: Options ) : ModelWithAnyOfConstantSizeArrayWithNSizeAndOptions => {
944944 const f = options ?. faker ?? faker ;
945- return [ f . helpers . arrayElement ( [ f . number . float ( ) , fakeImport ( options ) ] ) , f . helpers . arrayElement ( [ f . number . float ( ) , fakeImport ( options ) ] ) ] ;
945+ return [ f . helpers . arrayElement ( [ f . number . float ( ) , fakeImport ( options ) ] ) as any , f . helpers . arrayElement ( [ f . number . float ( ) , fakeImport ( options ) ] ) as any ] ;
946946} ;
947947
948948export const fakeSchemaWithFormRestrictedKeys = ( options ?: Options ) : SchemaWithFormRestrictedKeys => {
@@ -988,14 +988,14 @@ export const fakeIoK8sApimachineryPkgApisMetaV1DeleteOptions = (options?: Option
988988export const fakeAdditionalPropertiesUnknownIssue = ( options ?: Options ) : AdditionalPropertiesUnknownIssue => {
989989 const f = options ?. faker ?? faker ;
990990 return ! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } as { } : {
991- additionalProp : f . helpers . arrayElement ( [ f . string . sample ( ) , f . number . float ( ) ] )
991+ additionalProp : f . helpers . arrayElement ( [ f . string . sample ( ) , f . number . float ( ) ] ) as any
992992 } ;
993993} ;
994994
995995export const fakeAdditionalPropertiesUnknownIssue2 = ( options ?: Options ) : AdditionalPropertiesUnknownIssue2 => {
996996 const f = options ?. faker ?? faker ;
997997 return ! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } as { } : {
998- additionalProp : f . helpers . arrayElement ( [ f . string . sample ( ) , f . number . float ( ) ] )
998+ additionalProp : f . helpers . arrayElement ( [ f . string . sample ( ) , f . number . float ( ) ] ) as any
999999 } ;
10001000} ;
10011001
@@ -1101,13 +1101,13 @@ export const fakeModelWithArrayReadOnlyAndWriteOnlyWritable = (options?: Options
11011101
11021102export const fakeModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = ( options ?: Options ) : ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable => {
11031103 const f = options ?. faker ?? faker ;
1104- return [ f . helpers . arrayElement ( [ f . number . float ( ) , fakeImport ( options ) ] ) , f . helpers . arrayElement ( [ f . number . float ( ) , fakeImport ( options ) ] ) ] ;
1104+ return [ f . helpers . arrayElement ( [ f . number . float ( ) , fakeImport ( options ) ] ) as any , f . helpers . arrayElement ( [ f . number . float ( ) , fakeImport ( options ) ] ) as any ] ;
11051105} ;
11061106
11071107export const fakeAdditionalPropertiesUnknownIssueWritable = ( options ?: Options ) : AdditionalPropertiesUnknownIssueWritable => {
11081108 const f = options ?. faker ?? faker ;
11091109 return ! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } as { } : {
1110- additionalProp : f . helpers . arrayElement ( [ f . string . sample ( ) , f . number . float ( ) ] )
1110+ additionalProp : f . helpers . arrayElement ( [ f . string . sample ( ) , f . number . float ( ) ] ) as any
11111111 } ;
11121112} ;
11131113
@@ -1141,7 +1141,7 @@ export const fakeCompositionWithOneOfAndProperties = (options?: Options): Compos
11411141 foo : fakeSimpleParameter ( options )
11421142 } , {
11431143 bar : fakeNonAsciiStringæøåÆøÅöôêÊ字符串 ( options )
1144- } ] ) , {
1144+ } ] ) as any , {
11451145 baz : f . datatype . boolean ( ) ? f . number . int ( { min : 0 } ) : null ,
11461146 qux : f . number . int ( { min : 0 } )
11471147 } ) ;
@@ -1158,7 +1158,7 @@ export const fakePatchApiVbyApiVersionNoTagResponse = () => undefined;
11581158export const fakeImportRequest = ( options ?: Options ) : Omit < ImportData , 'url' > => {
11591159 const f = options ?. faker ?? faker ;
11601160 return {
1161- body : f . helpers . arrayElement ( [ fakeModelWithReadOnlyAndWriteOnlyWritable ( options ) , fakeModelWithArrayReadOnlyAndWriteOnlyWritable ( options ) ] )
1161+ body : f . helpers . arrayElement ( [ fakeModelWithReadOnlyAndWriteOnlyWritable ( options ) , fakeModelWithArrayReadOnlyAndWriteOnlyWritable ( options ) ] ) as any
11621162 } ;
11631163} ;
11641164
@@ -1551,7 +1551,7 @@ export const fakeComplexParamsRequest = (options?: Options): Omit<ComplexParamsD
15511551 fakeModelWithEnum ( options ) ,
15521552 fakeModelWithArray ( options ) ,
15531553 fakeModelWithDictionary ( options )
1554- ] ) ,
1554+ ] ) as any ,
15551555 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { user : {
15561556 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { id : f . number . int ( ) } ,
15571557 ...! resolveCondition ( options ?. includeOptional ?? true , f ) ? { } : { name : f . datatype . boolean ( ) ? f . person . fullName ( ) : null }
0 commit comments