@@ -3686,6 +3686,7 @@ export type { CompositionWithAllOfAndNullable } from './models/CompositionWithAl
3686
3686
export type { CompositionWithAnyOf } from './models/CompositionWithAnyOf';
3687
3687
export type { CompositionWithAnyOfAndNullable } from './models/CompositionWithAnyOfAndNullable';
3688
3688
export type { CompositionWithAnyOfAnonymous } from './models/CompositionWithAnyOfAnonymous';
3689
+ export type { CompositionWithNestedAnyAndTypeNull } from './models/CompositionWithNestedAnyAndTypeNull';
3689
3690
export type { CompositionWithOneOf } from './models/CompositionWithOneOf';
3690
3691
export type { CompositionWithOneOfAndComplexArrayDictionary } from './models/CompositionWithOneOfAndComplexArrayDictionary';
3691
3692
export type { CompositionWithOneOfAndNullable } from './models/CompositionWithOneOfAndNullable';
@@ -3756,6 +3757,7 @@ export { $CompositionWithAllOfAndNullable } from './schemas/$CompositionWithAllO
3756
3757
export { $CompositionWithAnyOf } from './schemas/$CompositionWithAnyOf';
3757
3758
export { $CompositionWithAnyOfAndNullable } from './schemas/$CompositionWithAnyOfAndNullable';
3758
3759
export { $CompositionWithAnyOfAnonymous } from './schemas/$CompositionWithAnyOfAnonymous';
3760
+ export { $CompositionWithNestedAnyAndTypeNull } from './schemas/$CompositionWithNestedAnyAndTypeNull';
3759
3761
export { $CompositionWithOneOf } from './schemas/$CompositionWithOneOf';
3760
3762
export { $CompositionWithOneOfAndComplexArrayDictionary } from './schemas/$CompositionWithOneOfAndComplexArrayDictionary';
3761
3763
export { $CompositionWithOneOfAndNullable } from './schemas/$CompositionWithOneOfAndNullable';
@@ -4105,6 +4107,23 @@ export type CompositionWithAnyOfAnonymous = {
4105
4107
"
4106
4108
`;
4107
4109
4110
+ exports[`v3 should generate: test/generated/v3/models/CompositionWithNestedAnyAndTypeNull.ts 1`] = `
4111
+ "/* generated using openapi-typescript-codegen -- do no edit */
4112
+ /* istanbul ignore file */
4113
+ /* tslint:disable */
4114
+ /* eslint-disable */
4115
+ import type { ModelWithArray } from './ModelWithArray';
4116
+ import type { ModelWithDictionary } from './ModelWithDictionary';
4117
+ /**
4118
+ * This is a model with nested 'any of' property with a type null
4119
+ */
4120
+ export type CompositionWithNestedAnyAndTypeNull = {
4121
+ propA?: (Array<(ModelWithDictionary | null)> | Array<(ModelWithArray | null)>);
4122
+ };
4123
+
4124
+ "
4125
+ `;
4126
+
4108
4127
exports[`v3 should generate: test/generated/v3/models/CompositionWithOneOf.ts 1`] = `
4109
4128
"/* generated using openapi-typescript-codegen -- do not edit */
4110
4129
/* istanbul ignore file */
@@ -5303,6 +5322,43 @@ export const $CompositionWithAnyOfAnonymous = {
5303
5322
"
5304
5323
`;
5305
5324
5325
+ exports[`v3 should generate: test/generated/v3/schemas/$CompositionWithNestedAnyAndTypeNull.ts 1`] = `
5326
+ "/* generated using openapi-typescript-codegen -- do no edit */
5327
+ /* istanbul ignore file */
5328
+ /* tslint:disable */
5329
+ /* eslint-disable */
5330
+ export const $CompositionWithNestedAnyAndTypeNull = {
5331
+ description: \`This is a model with nested 'any of' property with a type null\`,
5332
+ properties: {
5333
+ propA: {
5334
+ type: 'any-of',
5335
+ contains: [{
5336
+ type: 'array',
5337
+ contains: {
5338
+ type: 'any-of',
5339
+ contains: [{
5340
+ type: 'ModelWithDictionary',
5341
+ }, {
5342
+ type: 'null',
5343
+ }],
5344
+ },
5345
+ }, {
5346
+ type: 'array',
5347
+ contains: {
5348
+ type: 'any-of',
5349
+ contains: [{
5350
+ type: 'ModelWithArray',
5351
+ }, {
5352
+ type: 'null',
5353
+ }],
5354
+ },
5355
+ }],
5356
+ },
5357
+ },
5358
+ } as const;
5359
+ "
5360
+ `;
5361
+
5306
5362
exports[`v3 should generate: test/generated/v3/schemas/$CompositionWithOneOf.ts 1`] = `
5307
5363
"/* generated using openapi-typescript-codegen -- do not edit */
5308
5364
/* istanbul ignore file */
0 commit comments