@@ -3661,7 +3661,10 @@ export type { CompositionWithAnyOf } from './models/CompositionWithAnyOf';
3661
3661
export type { CompositionWithAnyOfAndNullable } from './models/CompositionWithAnyOfAndNullable';
3662
3662
export type { CompositionWithAnyOfAnonymous } from './models/CompositionWithAnyOfAnonymous';
3663
3663
export type { CompositionWithOneOf } from './models/CompositionWithOneOf';
3664
+ export type { CompositionWithOneOfAndComplexArrayDictionary } from './models/CompositionWithOneOfAndComplexArrayDictionary';
3664
3665
export type { CompositionWithOneOfAndNullable } from './models/CompositionWithOneOfAndNullable';
3666
+ export type { CompositionWithOneOfAndSimpleArrayDictionary } from './models/CompositionWithOneOfAndSimpleArrayDictionary';
3667
+ export type { CompositionWithOneOfAndSimpleDictionary } from './models/CompositionWithOneOfAndSimpleDictionary';
3665
3668
export type { CompositionWithOneOfAnonymous } from './models/CompositionWithOneOfAnonymous';
3666
3669
export type { CompositionWithOneOfDiscriminator } from './models/CompositionWithOneOfDiscriminator';
3667
3670
export type { DictionaryWithArray } from './models/DictionaryWithArray';
@@ -3722,7 +3725,10 @@ export { $CompositionWithAnyOf } from './schemas/$CompositionWithAnyOf';
3722
3725
export { $CompositionWithAnyOfAndNullable } from './schemas/$CompositionWithAnyOfAndNullable';
3723
3726
export { $CompositionWithAnyOfAnonymous } from './schemas/$CompositionWithAnyOfAnonymous';
3724
3727
export { $CompositionWithOneOf } from './schemas/$CompositionWithOneOf';
3728
+ export { $CompositionWithOneOfAndComplexArrayDictionary } from './schemas/$CompositionWithOneOfAndComplexArrayDictionary';
3725
3729
export { $CompositionWithOneOfAndNullable } from './schemas/$CompositionWithOneOfAndNullable';
3730
+ export { $CompositionWithOneOfAndSimpleArrayDictionary } from './schemas/$CompositionWithOneOfAndSimpleArrayDictionary';
3731
+ export { $CompositionWithOneOfAndSimpleDictionary } from './schemas/$CompositionWithOneOfAndSimpleDictionary';
3726
3732
export { $CompositionWithOneOfAnonymous } from './schemas/$CompositionWithOneOfAnonymous';
3727
3733
export { $CompositionWithOneOfDiscriminator } from './schemas/$CompositionWithOneOfDiscriminator';
3728
3734
export { $DictionaryWithArray } from './schemas/$DictionaryWithArray';
@@ -4056,6 +4062,20 @@ export type CompositionWithOneOf = {
4056
4062
"
4057
4063
`;
4058
4064
4065
+ exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAndComplexArrayDictionary.ts 1`] = `
4066
+ "/* istanbul ignore file */
4067
+ /* tslint:disable */
4068
+ /* eslint-disable */
4069
+
4070
+ /**
4071
+ * This is a model that contains a dictionary of complex arrays (composited) within composition
4072
+ */
4073
+ export type CompositionWithOneOfAndComplexArrayDictionary = {
4074
+ propA?: (boolean | Record<string, Array<(number | string)>>);
4075
+ };
4076
+ "
4077
+ `;
4078
+
4059
4079
exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAndNullable.ts 1`] = `
4060
4080
"/* istanbul ignore file */
4061
4081
/* tslint:disable */
@@ -4076,6 +4096,34 @@ export type CompositionWithOneOfAndNullable = {
4076
4096
"
4077
4097
`;
4078
4098
4099
+ exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAndSimpleArrayDictionary.ts 1`] = `
4100
+ "/* istanbul ignore file */
4101
+ /* tslint:disable */
4102
+ /* eslint-disable */
4103
+
4104
+ /**
4105
+ * This is a model that contains a dictionary of simple arrays within composition
4106
+ */
4107
+ export type CompositionWithOneOfAndSimpleArrayDictionary = {
4108
+ propA?: (boolean | Record<string, Array<boolean>>);
4109
+ };
4110
+ "
4111
+ `;
4112
+
4113
+ exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAndSimpleDictionary.ts 1`] = `
4114
+ "/* istanbul ignore file */
4115
+ /* tslint:disable */
4116
+ /* eslint-disable */
4117
+
4118
+ /**
4119
+ * This is a model that contains a simple dictionary within composition
4120
+ */
4121
+ export type CompositionWithOneOfAndSimpleDictionary = {
4122
+ propA?: (boolean | Record<string, number>);
4123
+ };
4124
+ "
4125
+ `;
4126
+
4079
4127
exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAnonymous.ts 1`] = `
4080
4128
"/* istanbul ignore file */
4081
4129
/* tslint:disable */
@@ -5084,6 +5132,36 @@ export const $CompositionWithOneOf = {
5084
5132
} as const;"
5085
5133
`;
5086
5134
5135
+ exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAndComplexArrayDictionary.ts 1`] = `
5136
+ "/* istanbul ignore file */
5137
+ /* tslint:disable */
5138
+ /* eslint-disable */
5139
+ export const $CompositionWithOneOfAndComplexArrayDictionary = {
5140
+ description: \`This is a model that contains a dictionary of complex arrays (composited) within composition\`,
5141
+ properties: {
5142
+ propA: {
5143
+ type: 'one-of',
5144
+ contains: [{
5145
+ type: 'boolean',
5146
+ }, {
5147
+ type: 'dictionary',
5148
+ contains: {
5149
+ type: 'array',
5150
+ contains: {
5151
+ type: 'one-of',
5152
+ contains: [{
5153
+ type: 'number',
5154
+ }, {
5155
+ type: 'string',
5156
+ }],
5157
+ },
5158
+ },
5159
+ }],
5160
+ },
5161
+ },
5162
+ } as const;"
5163
+ `;
5164
+
5087
5165
exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAndNullable.ts 1`] = `
5088
5166
"/* istanbul ignore file */
5089
5167
/* tslint:disable */
@@ -5112,6 +5190,53 @@ export const $CompositionWithOneOfAndNullable = {
5112
5190
} as const;"
5113
5191
`;
5114
5192
5193
+ exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAndSimpleArrayDictionary.ts 1`] = `
5194
+ "/* istanbul ignore file */
5195
+ /* tslint:disable */
5196
+ /* eslint-disable */
5197
+ export const $CompositionWithOneOfAndSimpleArrayDictionary = {
5198
+ description: \`This is a model that contains a dictionary of simple arrays within composition\`,
5199
+ properties: {
5200
+ propA: {
5201
+ type: 'one-of',
5202
+ contains: [{
5203
+ type: 'boolean',
5204
+ }, {
5205
+ type: 'dictionary',
5206
+ contains: {
5207
+ type: 'array',
5208
+ contains: {
5209
+ type: 'boolean',
5210
+ },
5211
+ },
5212
+ }],
5213
+ },
5214
+ },
5215
+ } as const;"
5216
+ `;
5217
+
5218
+ exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAndSimpleDictionary.ts 1`] = `
5219
+ "/* istanbul ignore file */
5220
+ /* tslint:disable */
5221
+ /* eslint-disable */
5222
+ export const $CompositionWithOneOfAndSimpleDictionary = {
5223
+ description: \`This is a model that contains a simple dictionary within composition\`,
5224
+ properties: {
5225
+ propA: {
5226
+ type: 'one-of',
5227
+ contains: [{
5228
+ type: 'boolean',
5229
+ }, {
5230
+ type: 'dictionary',
5231
+ contains: {
5232
+ type: 'number',
5233
+ },
5234
+ }],
5235
+ },
5236
+ },
5237
+ } as const;"
5238
+ `;
5239
+
5115
5240
exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAnonymous.ts 1`] = `
5116
5241
"/* istanbul ignore file */
5117
5242
/* tslint:disable */
0 commit comments