Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-decimal-varnames.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hey-api/openapi-ts": patch
---

**fix**: preserve decimal-looking enum varnames as quoted string property keys instead of coercing to numeric literals, preventing runtime data loss (e.g. trailing zeros) and key collisions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
101147: 'FM',
/**
* 90.20
*/
9020: 'PS',
/**
* 90.35
*/
9035: 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
'101_147': 'FM',
/**
* 90.20
*/
'90_20': 'PS',
/**
* 90.35
*/
'90_35': 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
101147: 'FM',
/**
* 90.20
*/
9020: 'PS',
/**
* 90.35
*/
9035: 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
101.147: 'FM',
/**
* 90.20
*/
'90.20': 'PS',
/**
* 90.35
*/
90.35: 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
'101_147': 'FM',
/**
* 90.20
*/
'90_20': 'PS',
/**
* 90.35
*/
'90_35': 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, type Arrays, type ClientOptions, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, type Arrays, type ClientOptions, DecimalVarnames, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ export type Arrays = [
] | [
'baz'
];

export enum DecimalVarnames {
/**
* 101.147
*/
_101147 = 'FM',
/**
* 90.20
*/
_9020 = 'PS',
/**
* 90.35
*/
_9035 = 'B/ILT'
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, type Arrays, type ClientOptions, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, type Arrays, type ClientOptions, DecimalVarnames, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ export type Arrays = [
] | [
'baz'
];

export enum DecimalVarnames {
/**
* 101.147
*/
'101_147' = 'FM',
/**
* 90.20
*/
'90_20' = 'PS',
/**
* 90.35
*/
'90_35' = 'B/ILT'
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, type Arrays, type ClientOptions, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, type Arrays, type ClientOptions, DecimalVarnames, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ export type Arrays = [
] | [
'baz'
];

export enum DecimalVarnames {
/**
* 101.147
*/
_101147 = 'FM',
/**
* 90.20
*/
_9020 = 'PS',
/**
* 90.35
*/
_9035 = 'B/ILT'
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, type Arrays, type ClientOptions, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, type Arrays, type ClientOptions, DecimalVarnames, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ export type Arrays = [
] | [
'baz'
];

export const enum DecimalVarnames {
/**
* 101.147
*/
_101147 = 'FM',
/**
* 90.20
*/
_9020 = 'PS',
/**
* 90.35
*/
_9035 = 'B/ILT'
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, type Arrays, type ClientOptions, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, type Arrays, type ClientOptions, DecimalVarnames, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ export type Arrays = [
] | [
'baz'
];

export enum DecimalVarnames {
/**
* 101.147
*/
'_101.147' = 'FM',
/**
* 90.20
*/
'_90.20' = 'PS',
/**
* 90.35
*/
'_90.35' = 'B/ILT'
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, type Arrays, type ClientOptions, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, type Arrays, type ClientOptions, DecimalVarnames, type Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ export type Arrays = [
] | [
'baz'
];

export enum DecimalVarnames {
/**
* 101.147
*/
'101_147' = 'FM',
/**
* 90.20
*/
'90_20' = 'PS',
/**
* 90.35
*/
'90_35' = 'B/ILT'
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export type { _110, Arrays, ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export type { _110, Arrays, ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ export type Arrays = [
] | [
'baz'
];

export type DecimalVarnames = 'FM' | 'PS' | 'B/ILT';
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
101147: 'FM',
/**
* 90.20
*/
9020: 'PS',
/**
* 90.35
*/
9035: 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
'101_147': 'FM',
/**
* 90.20
*/
'90_20': 'PS',
/**
* 90.35
*/
'90_35': 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
101147: 'FM',
/**
* 90.20
*/
9020: 'PS',
/**
* 90.35
*/
9035: 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,20 @@ export const Arrays = {
} as const;

export type Arrays = typeof Arrays[keyof typeof Arrays];

export const DecimalVarnames = {
/**
* 101.147
*/
101.147: 'FM',
/**
* 90.20
*/
'90.20': 'PS',
/**
* 90.35
*/
90.35: 'B/ILT'
} as const;

export type DecimalVarnames = typeof DecimalVarnames[keyof typeof DecimalVarnames];
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is auto-generated by @hey-api/openapi-ts

export { _110, Arrays, type ClientOptions, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
export { _110, Arrays, type ClientOptions, DecimalVarnames, Foo, MyFoo, MyFoo2, Numbers } from './types.gen';
Loading
Loading