@@ -3710,6 +3710,7 @@ export type { CompositionWithAllOfAndNullable } from './models/CompositionWithAl
3710
3710
export type { CompositionWithAnyOf } from './models/CompositionWithAnyOf';
3711
3711
export type { CompositionWithAnyOfAndNullable } from './models/CompositionWithAnyOfAndNullable';
3712
3712
export type { CompositionWithAnyOfAnonymous } from './models/CompositionWithAnyOfAnonymous';
3713
+ export type { CompositionWithNestedAnyAndTypeNull } from './models/CompositionWithNestedAnyAndTypeNull';
3713
3714
export type { CompositionWithNestedAnyOfAndNull } from './models/CompositionWithNestedAnyOfAndNull';
3714
3715
export type { CompositionWithOneOf } from './models/CompositionWithOneOf';
3715
3716
export type { CompositionWithOneOfAndComplexArrayDictionary } from './models/CompositionWithOneOfAndComplexArrayDictionary';
@@ -3786,6 +3787,7 @@ export { $CompositionWithAllOfAndNullable } from './schemas/$CompositionWithAllO
3786
3787
export { $CompositionWithAnyOf } from './schemas/$CompositionWithAnyOf';
3787
3788
export { $CompositionWithAnyOfAndNullable } from './schemas/$CompositionWithAnyOfAndNullable';
3788
3789
export { $CompositionWithAnyOfAnonymous } from './schemas/$CompositionWithAnyOfAnonymous';
3790
+ export { $CompositionWithNestedAnyAndTypeNull } from './schemas/$CompositionWithNestedAnyAndTypeNull';
3789
3791
export { $CompositionWithNestedAnyOfAndNull } from './schemas/$CompositionWithNestedAnyOfAndNull';
3790
3792
export { $CompositionWithOneOf } from './schemas/$CompositionWithOneOf';
3791
3793
export { $CompositionWithOneOfAndComplexArrayDictionary } from './schemas/$CompositionWithOneOfAndComplexArrayDictionary';
@@ -3894,11 +3896,14 @@ exports[`v3 should generate: test/generated/v3/models/AnyOfArrays.ts 1`] = `
3894
3896
/* istanbul ignore file */
3895
3897
/* tslint:disable */
3896
3898
/* eslint-disable */
3899
+ /**
3900
+ * This is a simple array with any of properties
3901
+ */
3897
3902
export type AnyOfArrays = {
3898
3903
results?: Array<({
3899
- onePro ?: boolean ;
3904
+ foo ?: string ;
3900
3905
} | {
3901
- anotherProp ?: boolean ;
3906
+ bar ?: string ;
3902
3907
})>;
3903
3908
};
3904
3909
@@ -4167,6 +4172,23 @@ export type CompositionWithAnyOfAnonymous = {
4167
4172
"
4168
4173
`;
4169
4174
4175
+ exports[`v3 should generate: test/generated/v3/models/CompositionWithNestedAnyAndTypeNull.ts 1`] = `
4176
+ "/* generated using openapi-typescript-codegen -- do no edit */
4177
+ /* istanbul ignore file */
4178
+ /* tslint:disable */
4179
+ /* eslint-disable */
4180
+ import type { ModelWithArray } from './ModelWithArray';
4181
+ import type { ModelWithDictionary } from './ModelWithDictionary';
4182
+ /**
4183
+ * This is a model with nested 'any of' property with a type null
4184
+ */
4185
+ export type CompositionWithNestedAnyAndTypeNull = {
4186
+ propA?: ((ModelWithDictionary | null) | (ModelWithArray | null));
4187
+ };
4188
+
4189
+ "
4190
+ `;
4191
+
4170
4192
exports[`v3 should generate: test/generated/v3/models/CompositionWithNestedAnyOfAndNull.ts 1`] = `
4171
4193
"/* generated using openapi-typescript-codegen -- do no edit */
4172
4194
/* istanbul ignore file */
@@ -5110,19 +5132,20 @@ exports[`v3 should generate: test/generated/v3/schemas/$AnyOfArrays.ts 1`] = `
5110
5132
/* tslint:disable */
5111
5133
/* eslint-disable */
5112
5134
export const $AnyOfArrays = {
5135
+ description: \`This is a simple array with any of properties\`,
5113
5136
properties: {
5114
5137
results: {
5115
5138
type: 'any-of',
5116
5139
contains: [{
5117
5140
properties: {
5118
- onePro : {
5119
- type: 'boolean ',
5141
+ foo : {
5142
+ type: 'string ',
5120
5143
},
5121
5144
},
5122
5145
}, {
5123
5146
properties: {
5124
- anotherProp : {
5125
- type: 'boolean ',
5147
+ bar : {
5148
+ type: 'string ',
5126
5149
},
5127
5150
},
5128
5151
}],
@@ -5464,6 +5487,37 @@ export const $CompositionWithAnyOfAnonymous = {
5464
5487
"
5465
5488
`;
5466
5489
5490
+ exports[`v3 should generate: test/generated/v3/schemas/$CompositionWithNestedAnyAndTypeNull.ts 1`] = `
5491
+ "/* generated using openapi-typescript-codegen -- do no edit */
5492
+ /* istanbul ignore file */
5493
+ /* tslint:disable */
5494
+ /* eslint-disable */
5495
+ export const $CompositionWithNestedAnyAndTypeNull = {
5496
+ description: \`This is a model with nested 'any of' property with a type null\`,
5497
+ properties: {
5498
+ propA: {
5499
+ type: 'any-of',
5500
+ contains: [{
5501
+ type: 'any-of',
5502
+ contains: [{
5503
+ type: 'ModelWithDictionary',
5504
+ }, {
5505
+ type: 'null',
5506
+ }],
5507
+ }, {
5508
+ type: 'any-of',
5509
+ contains: [{
5510
+ type: 'ModelWithArray',
5511
+ }, {
5512
+ type: 'null',
5513
+ }],
5514
+ }],
5515
+ },
5516
+ },
5517
+ } as const;
5518
+ "
5519
+ `;
5520
+
5467
5521
exports[`v3 should generate: test/generated/v3/schemas/$CompositionWithNestedAnyOfAndNull.ts 1`] = `
5468
5522
"/* generated using openapi-typescript-codegen -- do no edit */
5469
5523
/* istanbul ignore file */
0 commit comments