@@ -3686,19 +3686,22 @@ 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 { CompositionWithNestedAnyOfAndNull } from './models/CompositionWithNestedAnyOfAndNull';
3689
3690
export type { CompositionWithOneOf } from './models/CompositionWithOneOf';
3690
3691
export type { CompositionWithOneOfAndComplexArrayDictionary } from './models/CompositionWithOneOfAndComplexArrayDictionary';
3691
3692
export type { CompositionWithOneOfAndNullable } from './models/CompositionWithOneOfAndNullable';
3692
3693
export type { CompositionWithOneOfAndSimpleArrayDictionary } from './models/CompositionWithOneOfAndSimpleArrayDictionary';
3693
3694
export type { CompositionWithOneOfAndSimpleDictionary } from './models/CompositionWithOneOfAndSimpleDictionary';
3694
3695
export type { CompositionWithOneOfAnonymous } from './models/CompositionWithOneOfAnonymous';
3695
3696
export type { CompositionWithOneOfDiscriminator } from './models/CompositionWithOneOfDiscriminator';
3697
+ export type { ConstValue } from './models/ConstValue';
3696
3698
export type { DeprecatedModel } from './models/DeprecatedModel';
3697
3699
export type { DictionaryWithArray } from './models/DictionaryWithArray';
3698
3700
export type { DictionaryWithDictionary } from './models/DictionaryWithDictionary';
3699
3701
export type { DictionaryWithProperties } from './models/DictionaryWithProperties';
3700
3702
export type { DictionaryWithReference } from './models/DictionaryWithReference';
3701
3703
export type { DictionaryWithString } from './models/DictionaryWithString';
3704
+ export { Enum1 } from './models/Enum1';
3702
3705
export type { EnumFromDescription } from './models/EnumFromDescription';
3703
3706
export { EnumWithExtensions } from './models/EnumWithExtensions';
3704
3707
export { EnumWithNumbers } from './models/EnumWithNumbers';
@@ -3757,19 +3760,22 @@ export { $CompositionWithAllOfAndNullable } from './schemas/$CompositionWithAllO
3757
3760
export { $CompositionWithAnyOf } from './schemas/$CompositionWithAnyOf';
3758
3761
export { $CompositionWithAnyOfAndNullable } from './schemas/$CompositionWithAnyOfAndNullable';
3759
3762
export { $CompositionWithAnyOfAnonymous } from './schemas/$CompositionWithAnyOfAnonymous';
3763
+ export { $CompositionWithNestedAnyOfAndNull } from './schemas/$CompositionWithNestedAnyOfAndNull';
3760
3764
export { $CompositionWithOneOf } from './schemas/$CompositionWithOneOf';
3761
3765
export { $CompositionWithOneOfAndComplexArrayDictionary } from './schemas/$CompositionWithOneOfAndComplexArrayDictionary';
3762
3766
export { $CompositionWithOneOfAndNullable } from './schemas/$CompositionWithOneOfAndNullable';
3763
3767
export { $CompositionWithOneOfAndSimpleArrayDictionary } from './schemas/$CompositionWithOneOfAndSimpleArrayDictionary';
3764
3768
export { $CompositionWithOneOfAndSimpleDictionary } from './schemas/$CompositionWithOneOfAndSimpleDictionary';
3765
3769
export { $CompositionWithOneOfAnonymous } from './schemas/$CompositionWithOneOfAnonymous';
3766
3770
export { $CompositionWithOneOfDiscriminator } from './schemas/$CompositionWithOneOfDiscriminator';
3771
+ export { $ConstValue } from './schemas/$ConstValue';
3767
3772
export { $DeprecatedModel } from './schemas/$DeprecatedModel';
3768
3773
export { $DictionaryWithArray } from './schemas/$DictionaryWithArray';
3769
3774
export { $DictionaryWithDictionary } from './schemas/$DictionaryWithDictionary';
3770
3775
export { $DictionaryWithProperties } from './schemas/$DictionaryWithProperties';
3771
3776
export { $DictionaryWithReference } from './schemas/$DictionaryWithReference';
3772
3777
export { $DictionaryWithString } from './schemas/$DictionaryWithString';
3778
+ export { $Enum1 } from './schemas/$Enum1';
3773
3779
export { $EnumFromDescription } from './schemas/$EnumFromDescription';
3774
3780
export { $EnumWithExtensions } from './schemas/$EnumWithExtensions';
3775
3781
export { $EnumWithNumbers } from './schemas/$EnumWithNumbers';
@@ -4107,6 +4113,23 @@ export type CompositionWithAnyOfAnonymous = {
4107
4113
"
4108
4114
`;
4109
4115
4116
+ exports[`v3 should generate: test/generated/v3/models/CompositionWithNestedAnyOfAndNull.ts 1`] = `
4117
+ "/* generated using openapi-typescript-codegen -- do no edit */
4118
+ /* istanbul ignore file */
4119
+ /* tslint:disable */
4120
+ /* eslint-disable */
4121
+ import type { ConstValue } from './ConstValue';
4122
+ import type { Enum1 } from './Enum1';
4123
+ /**
4124
+ * This is a model with one property with a 'any of' relationship where the options are not $ref
4125
+ */
4126
+ export type CompositionWithNestedAnyOfAndNull = {
4127
+ propA?: ((Enum1 | ConstValue) | null);
4128
+ };
4129
+
4130
+ "
4131
+ `;
4132
+
4110
4133
exports[`v3 should generate: test/generated/v3/models/CompositionWithOneOf.ts 1`] = `
4111
4134
"/* generated using openapi-typescript-codegen -- do no edit */
4112
4135
/* istanbul ignore file */
@@ -4223,6 +4246,15 @@ export type CompositionWithOneOfDiscriminator = (ModelCircle | ModelSquare);
4223
4246
"
4224
4247
`;
4225
4248
4249
+ exports[`v3 should generate: test/generated/v3/models/ConstValue.ts 1`] = `
4250
+ "/* generated using openapi-typescript-codegen -- do no edit */
4251
+ /* istanbul ignore file */
4252
+ /* tslint:disable */
4253
+ /* eslint-disable */
4254
+ export type ConstValue = "ConstValue";
4255
+ "
4256
+ `;
4257
+
4226
4258
exports[`v3 should generate: test/generated/v3/models/DeprecatedModel.ts 1`] = `
4227
4259
"/* generated using openapi-typescript-codegen -- do no edit */
4228
4260
/* istanbul ignore file */
@@ -4308,6 +4340,18 @@ export type DictionaryWithString = Record<string, string>;
4308
4340
"
4309
4341
`;
4310
4342
4343
+ exports[`v3 should generate: test/generated/v3/models/Enum1.ts 1`] = `
4344
+ "/* generated using openapi-typescript-codegen -- do no edit */
4345
+ /* istanbul ignore file */
4346
+ /* tslint:disable */
4347
+ /* eslint-disable */
4348
+ export enum Enum1 {
4349
+ BIRD = 'Bird',
4350
+ DOG = 'Dog',
4351
+ }
4352
+ "
4353
+ `;
4354
+
4311
4355
exports[`v3 should generate: test/generated/v3/models/EnumFromDescription.ts 1`] = `
4312
4356
"/* generated using openapi-typescript-codegen -- do no edit */
4313
4357
/* istanbul ignore file */
@@ -5320,6 +5364,32 @@ export const $CompositionWithAnyOfAnonymous = {
5320
5364
"
5321
5365
`;
5322
5366
5367
+ exports[`v3 should generate: test/generated/v3/schemas/$CompositionWithNestedAnyOfAndNull.ts 1`] = `
5368
+ "/* generated using openapi-typescript-codegen -- do no edit */
5369
+ /* istanbul ignore file */
5370
+ /* tslint:disable */
5371
+ /* eslint-disable */
5372
+ export const $CompositionWithNestedAnyOfAndNull = {
5373
+ description: \`This is a model with one property with a 'any of' relationship where the options are not $ref\`,
5374
+ properties: {
5375
+ propA: {
5376
+ type: 'any-of',
5377
+ contains: [{
5378
+ type: 'any-of',
5379
+ contains: [{
5380
+ type: 'Enum1',
5381
+ }, {
5382
+ type: 'ConstValue',
5383
+ }],
5384
+ }, {
5385
+ type: 'null',
5386
+ }],
5387
+ },
5388
+ },
5389
+ } as const;
5390
+ "
5391
+ `;
5392
+
5323
5393
exports[`v3 should generate: test/generated/v3/schemas/$CompositionWithOneOf.ts 1`] = `
5324
5394
"/* generated using openapi-typescript-codegen -- do no edit */
5325
5395
/* istanbul ignore file */
@@ -5505,6 +5575,17 @@ export const $CompositionWithOneOfDiscriminator = {
5505
5575
"
5506
5576
`;
5507
5577
5578
+ exports[`v3 should generate: test/generated/v3/schemas/$ConstValue.ts 1`] = `
5579
+ "/* generated using openapi-typescript-codegen -- do no edit */
5580
+ /* istanbul ignore file */
5581
+ /* tslint:disable */
5582
+ /* eslint-disable */
5583
+ export const $ConstValue = {
5584
+ type: '"ConstValue"',
5585
+ } as const;
5586
+ "
5587
+ `;
5588
+
5508
5589
exports[`v3 should generate: test/generated/v3/schemas/$DeprecatedModel.ts 1`] = `
5509
5590
"/* generated using openapi-typescript-codegen -- do no edit */
5510
5591
/* istanbul ignore file */
@@ -5605,6 +5686,17 @@ export const $DictionaryWithString = {
5605
5686
"
5606
5687
`;
5607
5688
5689
+ exports[`v3 should generate: test/generated/v3/schemas/$Enum1.ts 1`] = `
5690
+ "/* generated using openapi-typescript-codegen -- do no edit */
5691
+ /* istanbul ignore file */
5692
+ /* tslint:disable */
5693
+ /* eslint-disable */
5694
+ export const $Enum1 = {
5695
+ type: 'Enum',
5696
+ } as const;
5697
+ "
5698
+ `;
5699
+
5608
5700
exports[`v3 should generate: test/generated/v3/schemas/$EnumFromDescription.ts 1`] = `
5609
5701
"/* generated using openapi-typescript-codegen -- do no edit */
5610
5702
/* istanbul ignore file */
0 commit comments