@@ -3643,6 +3643,9 @@ export { EnumWithExtensions } from './models/EnumWithExtensions';
3643
3643
export { EnumWithNumbers } from './models/EnumWithNumbers';
3644
3644
export { EnumWithStrings } from './models/EnumWithStrings';
3645
3645
export type { File } from './models/File';
3646
+ export type { FreeFormObjectWithAdditionalPropertiesEqEmptyObject } from './models/FreeFormObjectWithAdditionalPropertiesEqEmptyObject';
3647
+ export type { FreeFormObjectWithAdditionalPropertiesEqTrue } from './models/FreeFormObjectWithAdditionalPropertiesEqTrue';
3648
+ export type { FreeFormObjectWithoutAdditionalProperties } from './models/FreeFormObjectWithoutAdditionalProperties';
3646
3649
export type { ModelCircle } from './models/ModelCircle';
3647
3650
export type { ModelSquare } from './models/ModelSquare';
3648
3651
export type { ModelThatExtends } from './models/ModelThatExtends';
@@ -3708,6 +3711,9 @@ export { $EnumWithExtensions } from './schemas/$EnumWithExtensions';
3708
3711
export { $EnumWithNumbers } from './schemas/$EnumWithNumbers';
3709
3712
export { $EnumWithStrings } from './schemas/$EnumWithStrings';
3710
3713
export { $File } from './schemas/$File';
3714
+ export { $FreeFormObjectWithAdditionalPropertiesEqEmptyObject } from './schemas/$FreeFormObjectWithAdditionalPropertiesEqEmptyObject';
3715
+ export { $FreeFormObjectWithAdditionalPropertiesEqTrue } from './schemas/$FreeFormObjectWithAdditionalPropertiesEqTrue';
3716
+ export { $FreeFormObjectWithoutAdditionalProperties } from './schemas/$FreeFormObjectWithoutAdditionalProperties';
3711
3717
export { $ModelCircle } from './schemas/$ModelCircle';
3712
3718
export { $ModelSquare } from './schemas/$ModelSquare';
3713
3719
export { $ModelThatExtends } from './schemas/$ModelThatExtends';
@@ -4334,6 +4340,42 @@ export type File = {
4334
4340
"
4335
4341
`;
4336
4342
4343
+ exports[`v3 should generate: ./test/generated/v3/models/FreeFormObjectWithAdditionalPropertiesEqEmptyObject.ts 1`] = `
4344
+ "/* istanbul ignore file */
4345
+ /* tslint:disable */
4346
+ /* eslint-disable */
4347
+
4348
+ /**
4349
+ * This is a free-form object with additionalProperties: {}.
4350
+ */
4351
+ export type FreeFormObjectWithAdditionalPropertiesEqEmptyObject = Record<string, any>;
4352
+ "
4353
+ `;
4354
+
4355
+ exports[`v3 should generate: ./test/generated/v3/models/FreeFormObjectWithAdditionalPropertiesEqTrue.ts 1`] = `
4356
+ "/* istanbul ignore file */
4357
+ /* tslint:disable */
4358
+ /* eslint-disable */
4359
+
4360
+ /**
4361
+ * This is a free-form object with additionalProperties: true.
4362
+ */
4363
+ export type FreeFormObjectWithAdditionalPropertiesEqTrue = Record<string, any>;
4364
+ "
4365
+ `;
4366
+
4367
+ exports[`v3 should generate: ./test/generated/v3/models/FreeFormObjectWithoutAdditionalProperties.ts 1`] = `
4368
+ "/* istanbul ignore file */
4369
+ /* tslint:disable */
4370
+ /* eslint-disable */
4371
+
4372
+ /**
4373
+ * This is a free-form object without additionalProperties.
4374
+ */
4375
+ export type FreeFormObjectWithoutAdditionalProperties = Record<string, any>;
4376
+ "
4377
+ `;
4378
+
4337
4379
exports[`v3 should generate: ./test/generated/v3/models/ModelCircle.ts 1`] = `
4338
4380
"/* istanbul ignore file */
4339
4381
/* tslint:disable */
@@ -5514,6 +5556,48 @@ export const $File = {
5514
5556
"
5515
5557
`;
5516
5558
5559
+ exports[`v3 should generate: ./test/generated/v3/schemas/$FreeFormObjectWithAdditionalPropertiesEqEmptyObject.ts 1`] = `
5560
+ "/* istanbul ignore file */
5561
+ /* tslint:disable */
5562
+ /* eslint-disable */
5563
+ export const $FreeFormObjectWithAdditionalPropertiesEqEmptyObject = {
5564
+ type: 'dictionary',
5565
+ contains: {
5566
+ properties: {
5567
+ },
5568
+ },
5569
+ } as const;
5570
+ "
5571
+ `;
5572
+
5573
+ exports[`v3 should generate: ./test/generated/v3/schemas/$FreeFormObjectWithAdditionalPropertiesEqTrue.ts 1`] = `
5574
+ "/* istanbul ignore file */
5575
+ /* tslint:disable */
5576
+ /* eslint-disable */
5577
+ export const $FreeFormObjectWithAdditionalPropertiesEqTrue = {
5578
+ type: 'dictionary',
5579
+ contains: {
5580
+ properties: {
5581
+ },
5582
+ },
5583
+ } as const;
5584
+ "
5585
+ `;
5586
+
5587
+ exports[`v3 should generate: ./test/generated/v3/schemas/$FreeFormObjectWithoutAdditionalProperties.ts 1`] = `
5588
+ "/* istanbul ignore file */
5589
+ /* tslint:disable */
5590
+ /* eslint-disable */
5591
+ export const $FreeFormObjectWithoutAdditionalProperties = {
5592
+ type: 'dictionary',
5593
+ contains: {
5594
+ properties: {
5595
+ },
5596
+ },
5597
+ } as const;
5598
+ "
5599
+ `;
5600
+
5517
5601
exports[`v3 should generate: ./test/generated/v3/schemas/$ModelCircle.ts 1`] = `
5518
5602
"/* istanbul ignore file */
5519
5603
/* tslint:disable */
@@ -7148,14 +7232,14 @@ export class TypesService {
7148
7232
*/
7149
7233
public static types(
7150
7234
parameterArray: Array<string> | null,
7151
- parameterDictionary: any,
7235
+ parameterDictionary: Record<string, any> | null ,
7152
7236
parameterEnum: 'Success' | 'Warning' | 'Error' | null,
7153
7237
parameterNumber: number = 123,
7154
7238
parameterString: string | null = 'default',
7155
7239
parameterBoolean: boolean | null = true,
7156
- parameterObject: any = null,
7240
+ parameterObject: Record<string, any> | null = null,
7157
7241
id?: number,
7158
- ): CancelablePromise<number | string | boolean | any> {
7242
+ ): CancelablePromise<number | string | boolean | Record<string, any> > {
7159
7243
return __request(OpenAPI, {
7160
7244
method: 'GET',
7161
7245
url: '/api/v{api-version}/types',
0 commit comments