@@ -3682,6 +3682,7 @@ export type { CompositionWithAllOfAndNullable } from './models/CompositionWithAl
3682
3682
export type { CompositionWithAnyOf } from './models/CompositionWithAnyOf';
3683
3683
export type { CompositionWithAnyOfAndNullable } from './models/CompositionWithAnyOfAndNullable';
3684
3684
export type { CompositionWithAnyOfAnonymous } from './models/CompositionWithAnyOfAnonymous';
3685
+ export type { CompositionWithNestedAnyAndTypeNull } from './models/CompositionWithNestedAnyAndTypeNull';
3685
3686
export type { CompositionWithOneOf } from './models/CompositionWithOneOf';
3686
3687
export type { CompositionWithOneOfAndComplexArrayDictionary } from './models/CompositionWithOneOfAndComplexArrayDictionary';
3687
3688
export type { CompositionWithOneOfAndNullable } from './models/CompositionWithOneOfAndNullable';
@@ -3752,6 +3753,7 @@ export { $CompositionWithAllOfAndNullable } from './schemas/$CompositionWithAllO
3752
3753
export { $CompositionWithAnyOf } from './schemas/$CompositionWithAnyOf';
3753
3754
export { $CompositionWithAnyOfAndNullable } from './schemas/$CompositionWithAnyOfAndNullable';
3754
3755
export { $CompositionWithAnyOfAnonymous } from './schemas/$CompositionWithAnyOfAnonymous';
3756
+ export { $CompositionWithNestedAnyAndTypeNull } from './schemas/$CompositionWithNestedAnyAndTypeNull';
3755
3757
export { $CompositionWithOneOf } from './schemas/$CompositionWithOneOf';
3756
3758
export { $CompositionWithOneOfAndComplexArrayDictionary } from './schemas/$CompositionWithOneOfAndComplexArrayDictionary';
3757
3759
export { $CompositionWithOneOfAndNullable } from './schemas/$CompositionWithOneOfAndNullable';
@@ -4101,6 +4103,23 @@ export type CompositionWithAnyOfAnonymous = {
4101
4103
"
4102
4104
`;
4103
4105
4106
+ exports[`v3 should generate: test/generated/v3/models/CompositionWithNestedAnyAndTypeNull.ts 1`] = `
4107
+ "/* generated using openapi-typescript-codegen -- do no edit */
4108
+ /* istanbul ignore file */
4109
+ /* tslint:disable */
4110
+ /* eslint-disable */
4111
+ import type { ModelWithArray } from './ModelWithArray';
4112
+ import type { ModelWithDictionary } from './ModelWithDictionary';
4113
+ /**
4114
+ * This is a model with nested 'any of' property with a type null
4115
+ */
4116
+ export type CompositionWithNestedAnyAndTypeNull = {
4117
+ propA?: (Array<(ModelWithDictionary | null)> | Array<(ModelWithArray | null)>);
4118
+ };
4119
+
4120
+ "
4121
+ `;
4122
+
4104
4123
exports[`v3 should generate: test/generated/v3/models/CompositionWithOneOf.ts 1`] = `
4105
4124
"/* generated using openapi-typescript-codegen -- do no edit */
4106
4125
/* istanbul ignore file */
@@ -5299,6 +5318,43 @@ export const $CompositionWithAnyOfAnonymous = {
5299
5318
"
5300
5319
`;
5301
5320
5321
+ exports[`v3 should generate: test/generated/v3/schemas/$CompositionWithNestedAnyAndTypeNull.ts 1`] = `
5322
+ "/* generated using openapi-typescript-codegen -- do no edit */
5323
+ /* istanbul ignore file */
5324
+ /* tslint:disable */
5325
+ /* eslint-disable */
5326
+ export const $CompositionWithNestedAnyAndTypeNull = {
5327
+ description: \`This is a model with nested 'any of' property with a type null\`,
5328
+ properties: {
5329
+ propA: {
5330
+ type: 'any-of',
5331
+ contains: [{
5332
+ type: 'array',
5333
+ contains: {
5334
+ type: 'any-of',
5335
+ contains: [{
5336
+ type: 'ModelWithDictionary',
5337
+ }, {
5338
+ type: 'null',
5339
+ }],
5340
+ },
5341
+ }, {
5342
+ type: 'array',
5343
+ contains: {
5344
+ type: 'any-of',
5345
+ contains: [{
5346
+ type: 'ModelWithArray',
5347
+ }, {
5348
+ type: 'null',
5349
+ }],
5350
+ },
5351
+ }],
5352
+ },
5353
+ },
5354
+ } as const;
5355
+ "
5356
+ `;
5357
+
5302
5358
exports[`v3 should generate: test/generated/v3/schemas/$CompositionWithOneOf.ts 1`] = `
5303
5359
"/* generated using openapi-typescript-codegen -- do no edit */
5304
5360
/* istanbul ignore file */
0 commit comments