Commit 13c95f1
authored
Fix nim compilation in case a edge case of a schema with enum (OpenAPITools#20780)
If enum constraint contains one value which is not a valid nim
identifier, we must surround this identifier with backtick.1 parent 78b54b9 commit 13c95f1
1 file changed
Lines changed: 9 additions & 3 deletions
File tree
- modules/openapi-generator/src/main/java/org/openapitools/codegen/languages
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
358 | 363 | | |
359 | 364 | | |
360 | 365 | | |
361 | 366 | | |
362 | 367 | | |
363 | | - | |
364 | | - | |
365 | | - | |
| 368 | + | |
| 369 | + | |
366 | 370 | | |
| 371 | + | |
| 372 | + | |
367 | 373 | | |
368 | 374 | | |
369 | 375 | | |
| |||
0 commit comments