@@ -3650,6 +3650,9 @@ export { EnumWithExtensions } from './models/EnumWithExtensions';
3650
3650
export { EnumWithNumbers } from './models/EnumWithNumbers';
3651
3651
export { EnumWithStrings } from './models/EnumWithStrings';
3652
3652
export type { File } from './models/File';
3653
+ export type { FreeFormObjectWithAdditionalPropertiesEqEmptyObject } from './models/FreeFormObjectWithAdditionalPropertiesEqEmptyObject';
3654
+ export type { FreeFormObjectWithAdditionalPropertiesEqTrue } from './models/FreeFormObjectWithAdditionalPropertiesEqTrue';
3655
+ export type { FreeFormObjectWithoutAdditionalProperties } from './models/FreeFormObjectWithoutAdditionalProperties';
3653
3656
export type { ModelCircle } from './models/ModelCircle';
3654
3657
export type { ModelSquare } from './models/ModelSquare';
3655
3658
export type { ModelThatExtends } from './models/ModelThatExtends';
@@ -3715,6 +3718,9 @@ export { $EnumWithExtensions } from './schemas/$EnumWithExtensions';
3715
3718
export { $EnumWithNumbers } from './schemas/$EnumWithNumbers';
3716
3719
export { $EnumWithStrings } from './schemas/$EnumWithStrings';
3717
3720
export { $File } from './schemas/$File';
3721
+ export { $FreeFormObjectWithAdditionalPropertiesEqEmptyObject } from './schemas/$FreeFormObjectWithAdditionalPropertiesEqEmptyObject';
3722
+ export { $FreeFormObjectWithAdditionalPropertiesEqTrue } from './schemas/$FreeFormObjectWithAdditionalPropertiesEqTrue';
3723
+ export { $FreeFormObjectWithoutAdditionalProperties } from './schemas/$FreeFormObjectWithoutAdditionalProperties';
3718
3724
export { $ModelCircle } from './schemas/$ModelCircle';
3719
3725
export { $ModelSquare } from './schemas/$ModelSquare';
3720
3726
export { $ModelThatExtends } from './schemas/$ModelThatExtends';
@@ -4341,6 +4347,42 @@ export type File = {
4341
4347
"
4342
4348
`;
4343
4349
4350
+ exports[`v3 should generate: ./test/generated/v3/models/FreeFormObjectWithAdditionalPropertiesEqEmptyObject.ts 1`] = `
4351
+ "/* istanbul ignore file */
4352
+ /* tslint:disable */
4353
+ /* eslint-disable */
4354
+
4355
+ /**
4356
+ * This is a free-form object with additionalProperties: {}.
4357
+ */
4358
+ export type FreeFormObjectWithAdditionalPropertiesEqEmptyObject = Record<string, any>;
4359
+ "
4360
+ `;
4361
+
4362
+ exports[`v3 should generate: ./test/generated/v3/models/FreeFormObjectWithAdditionalPropertiesEqTrue.ts 1`] = `
4363
+ "/* istanbul ignore file */
4364
+ /* tslint:disable */
4365
+ /* eslint-disable */
4366
+
4367
+ /**
4368
+ * This is a free-form object with additionalProperties: true.
4369
+ */
4370
+ export type FreeFormObjectWithAdditionalPropertiesEqTrue = Record<string, any>;
4371
+ "
4372
+ `;
4373
+
4374
+ exports[`v3 should generate: ./test/generated/v3/models/FreeFormObjectWithoutAdditionalProperties.ts 1`] = `
4375
+ "/* istanbul ignore file */
4376
+ /* tslint:disable */
4377
+ /* eslint-disable */
4378
+
4379
+ /**
4380
+ * This is a free-form object without additionalProperties.
4381
+ */
4382
+ export type FreeFormObjectWithoutAdditionalProperties = Record<string, any>;
4383
+ "
4384
+ `;
4385
+
4344
4386
exports[`v3 should generate: ./test/generated/v3/models/ModelCircle.ts 1`] = `
4345
4387
"/* istanbul ignore file */
4346
4388
/* tslint:disable */
@@ -5522,6 +5564,48 @@ export const $File = {
5522
5564
"
5523
5565
`;
5524
5566
5567
+ exports[`v3 should generate: ./test/generated/v3/schemas/$FreeFormObjectWithAdditionalPropertiesEqEmptyObject.ts 1`] = `
5568
+ "/* istanbul ignore file */
5569
+ /* tslint:disable */
5570
+ /* eslint-disable */
5571
+ export const $FreeFormObjectWithAdditionalPropertiesEqEmptyObject = {
5572
+ type: 'dictionary',
5573
+ contains: {
5574
+ properties: {
5575
+ },
5576
+ },
5577
+ } as const;
5578
+ "
5579
+ `;
5580
+
5581
+ exports[`v3 should generate: ./test/generated/v3/schemas/$FreeFormObjectWithAdditionalPropertiesEqTrue.ts 1`] = `
5582
+ "/* istanbul ignore file */
5583
+ /* tslint:disable */
5584
+ /* eslint-disable */
5585
+ export const $FreeFormObjectWithAdditionalPropertiesEqTrue = {
5586
+ type: 'dictionary',
5587
+ contains: {
5588
+ properties: {
5589
+ },
5590
+ },
5591
+ } as const;
5592
+ "
5593
+ `;
5594
+
5595
+ exports[`v3 should generate: ./test/generated/v3/schemas/$FreeFormObjectWithoutAdditionalProperties.ts 1`] = `
5596
+ "/* istanbul ignore file */
5597
+ /* tslint:disable */
5598
+ /* eslint-disable */
5599
+ export const $FreeFormObjectWithoutAdditionalProperties = {
5600
+ type: 'dictionary',
5601
+ contains: {
5602
+ properties: {
5603
+ },
5604
+ },
5605
+ } as const;
5606
+ "
5607
+ `;
5608
+
5525
5609
exports[`v3 should generate: ./test/generated/v3/schemas/$ModelCircle.ts 1`] = `
5526
5610
"/* istanbul ignore file */
5527
5611
/* tslint:disable */
@@ -7160,14 +7244,14 @@ export class TypesService {
7160
7244
*/
7161
7245
public static types(
7162
7246
parameterArray: Array<string> | null,
7163
- parameterDictionary: any,
7247
+ parameterDictionary: Record<string, any> | null ,
7164
7248
parameterEnum: 'Success' | 'Warning' | 'Error' | null,
7165
7249
parameterNumber: number = 123,
7166
7250
parameterString: string | null = 'default',
7167
7251
parameterBoolean: boolean | null = true,
7168
- parameterObject: any = null,
7252
+ parameterObject: Record<string, any> | null = null,
7169
7253
id?: number,
7170
- ): CancelablePromise<number | string | boolean | any> {
7254
+ ): CancelablePromise<number | string | boolean | Record<string, any> > {
7171
7255
return __request(OpenAPI, {
7172
7256
method: 'GET',
7173
7257
url: '/api/v{api-version}/types',
0 commit comments