@@ -3507,7 +3507,10 @@ export type { CompositionWithAnyOf } from './models/CompositionWithAnyOf';
3507
3507
export type { CompositionWithAnyOfAndNullable } from './models/CompositionWithAnyOfAndNullable';
3508
3508
export type { CompositionWithAnyOfAnonymous } from './models/CompositionWithAnyOfAnonymous';
3509
3509
export type { CompositionWithOneOf } from './models/CompositionWithOneOf';
3510
+ export type { CompositionWithOneOfAndComplexArrayDictionary } from './models/CompositionWithOneOfAndComplexArrayDictionary';
3510
3511
export type { CompositionWithOneOfAndNullable } from './models/CompositionWithOneOfAndNullable';
3512
+ export type { CompositionWithOneOfAndSimpleArrayDictionary } from './models/CompositionWithOneOfAndSimpleArrayDictionary';
3513
+ export type { CompositionWithOneOfAndSimpleDictionary } from './models/CompositionWithOneOfAndSimpleDictionary';
3511
3514
export type { CompositionWithOneOfAnonymous } from './models/CompositionWithOneOfAnonymous';
3512
3515
export type { CompositionWithOneOfDiscriminator } from './models/CompositionWithOneOfDiscriminator';
3513
3516
export type { DictionaryWithArray } from './models/DictionaryWithArray';
@@ -3568,7 +3571,10 @@ export { $CompositionWithAnyOf } from './schemas/$CompositionWithAnyOf';
3568
3571
export { $CompositionWithAnyOfAndNullable } from './schemas/$CompositionWithAnyOfAndNullable';
3569
3572
export { $CompositionWithAnyOfAnonymous } from './schemas/$CompositionWithAnyOfAnonymous';
3570
3573
export { $CompositionWithOneOf } from './schemas/$CompositionWithOneOf';
3574
+ export { $CompositionWithOneOfAndComplexArrayDictionary } from './schemas/$CompositionWithOneOfAndComplexArrayDictionary';
3571
3575
export { $CompositionWithOneOfAndNullable } from './schemas/$CompositionWithOneOfAndNullable';
3576
+ export { $CompositionWithOneOfAndSimpleArrayDictionary } from './schemas/$CompositionWithOneOfAndSimpleArrayDictionary';
3577
+ export { $CompositionWithOneOfAndSimpleDictionary } from './schemas/$CompositionWithOneOfAndSimpleDictionary';
3572
3578
export { $CompositionWithOneOfAnonymous } from './schemas/$CompositionWithOneOfAnonymous';
3573
3579
export { $CompositionWithOneOfDiscriminator } from './schemas/$CompositionWithOneOfDiscriminator';
3574
3580
export { $DictionaryWithArray } from './schemas/$DictionaryWithArray';
@@ -3902,6 +3908,20 @@ export type CompositionWithOneOf = {
3902
3908
"
3903
3909
`;
3904
3910
3911
+ exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAndComplexArrayDictionary.ts 1`] = `
3912
+ "/* istanbul ignore file */
3913
+ /* tslint:disable */
3914
+ /* eslint-disable */
3915
+
3916
+ /**
3917
+ * This is a model that contains a dictionary of complex arrays (composited) within composition
3918
+ */
3919
+ export type CompositionWithOneOfAndComplexArrayDictionary = {
3920
+ propA?: (boolean | Record<string, Array<(number | string)>>);
3921
+ };
3922
+ "
3923
+ `;
3924
+
3905
3925
exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAndNullable.ts 1`] = `
3906
3926
"/* istanbul ignore file */
3907
3927
/* tslint:disable */
@@ -3922,6 +3942,34 @@ export type CompositionWithOneOfAndNullable = {
3922
3942
"
3923
3943
`;
3924
3944
3945
+ exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAndSimpleArrayDictionary.ts 1`] = `
3946
+ "/* istanbul ignore file */
3947
+ /* tslint:disable */
3948
+ /* eslint-disable */
3949
+
3950
+ /**
3951
+ * This is a model that contains a dictionary of simple arrays within composition
3952
+ */
3953
+ export type CompositionWithOneOfAndSimpleArrayDictionary = {
3954
+ propA?: (boolean | Record<string, Array<boolean>>);
3955
+ };
3956
+ "
3957
+ `;
3958
+
3959
+ exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAndSimpleDictionary.ts 1`] = `
3960
+ "/* istanbul ignore file */
3961
+ /* tslint:disable */
3962
+ /* eslint-disable */
3963
+
3964
+ /**
3965
+ * This is a model that contains a simple dictionary within composition
3966
+ */
3967
+ export type CompositionWithOneOfAndSimpleDictionary = {
3968
+ propA?: (boolean | Record<string, number>);
3969
+ };
3970
+ "
3971
+ `;
3972
+
3925
3973
exports[`v3 should generate: ./test/generated/v3/models/CompositionWithOneOfAnonymous.ts 1`] = `
3926
3974
"/* istanbul ignore file */
3927
3975
/* tslint:disable */
@@ -4928,6 +4976,36 @@ export const $CompositionWithOneOf = {
4928
4976
} as const;"
4929
4977
`;
4930
4978
4979
+ exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAndComplexArrayDictionary.ts 1`] = `
4980
+ "/* istanbul ignore file */
4981
+ /* tslint:disable */
4982
+ /* eslint-disable */
4983
+ export const $CompositionWithOneOfAndComplexArrayDictionary = {
4984
+ description: \`This is a model that contains a dictionary of complex arrays (composited) within composition\`,
4985
+ properties: {
4986
+ propA: {
4987
+ type: 'one-of',
4988
+ contains: [{
4989
+ type: 'boolean',
4990
+ }, {
4991
+ type: 'dictionary',
4992
+ contains: {
4993
+ type: 'array',
4994
+ contains: {
4995
+ type: 'one-of',
4996
+ contains: [{
4997
+ type: 'number',
4998
+ }, {
4999
+ type: 'string',
5000
+ }],
5001
+ },
5002
+ },
5003
+ }],
5004
+ },
5005
+ },
5006
+ } as const;"
5007
+ `;
5008
+
4931
5009
exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAndNullable.ts 1`] = `
4932
5010
"/* istanbul ignore file */
4933
5011
/* tslint:disable */
@@ -4956,6 +5034,53 @@ export const $CompositionWithOneOfAndNullable = {
4956
5034
} as const;"
4957
5035
`;
4958
5036
5037
+ exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAndSimpleArrayDictionary.ts 1`] = `
5038
+ "/* istanbul ignore file */
5039
+ /* tslint:disable */
5040
+ /* eslint-disable */
5041
+ export const $CompositionWithOneOfAndSimpleArrayDictionary = {
5042
+ description: \`This is a model that contains a dictionary of simple arrays within composition\`,
5043
+ properties: {
5044
+ propA: {
5045
+ type: 'one-of',
5046
+ contains: [{
5047
+ type: 'boolean',
5048
+ }, {
5049
+ type: 'dictionary',
5050
+ contains: {
5051
+ type: 'array',
5052
+ contains: {
5053
+ type: 'boolean',
5054
+ },
5055
+ },
5056
+ }],
5057
+ },
5058
+ },
5059
+ } as const;"
5060
+ `;
5061
+
5062
+ exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAndSimpleDictionary.ts 1`] = `
5063
+ "/* istanbul ignore file */
5064
+ /* tslint:disable */
5065
+ /* eslint-disable */
5066
+ export const $CompositionWithOneOfAndSimpleDictionary = {
5067
+ description: \`This is a model that contains a simple dictionary within composition\`,
5068
+ properties: {
5069
+ propA: {
5070
+ type: 'one-of',
5071
+ contains: [{
5072
+ type: 'boolean',
5073
+ }, {
5074
+ type: 'dictionary',
5075
+ contains: {
5076
+ type: 'number',
5077
+ },
5078
+ }],
5079
+ },
5080
+ },
5081
+ } as const;"
5082
+ `;
5083
+
4959
5084
exports[`v3 should generate: ./test/generated/v3/schemas/$CompositionWithOneOfAnonymous.ts 1`] = `
4960
5085
"/* istanbul ignore file */
4961
5086
/* tslint:disable */
0 commit comments