Commit b0b2835
fix: emit
The enum declaration template now checks `{{#isLong}}` to emit `: long`
as the underlying type, preventing overflow for int64 enum values.
Added test assertions verifying:
- LongEnum has `: long` in its declaration
- IntegerEnum does NOT have `: long` or `: byte`
Co-authored-by: alexaka1 <22166651+alexaka1@users.noreply.github.com>: long for int64 enum declarations and add test assertions1 parent 383ea38 commit b0b2835
2 files changed
Lines changed: 5 additions & 2 deletions
File tree
- modules/openapi-generator/src
- main/resources/csharp
- test/java/org/openapitools/codegen/csharpnetcore
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
| |||
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| 308 | + | |
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
| |||
0 commit comments