-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: handle edge case in toCamelCase FormatHelper (#1792)
- Loading branch information
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Migration from v3 to v4 | ||
This document contain all the breaking changes and migrations guidelines for adapting your code to the new version. | ||
|
||
## Fixed edge cases for camel case names | ||
|
||
Naming such as object properties using camel case formatting had an edge case where if they contained a number followed by an underscore and a letter it would be incorrectly formatted. This has been fixed in this version, which might mean properties, model names, etc that use camel case might be renamed. | ||
|
||
This example contains such a string: | ||
|
||
```yaml | ||
type: object | ||
properties: | ||
aa_00_testAttribute: | ||
type: string | ||
``` | ||
This used to generate: | ||
```ts | ||
interface AnonymousSchema_1 { | ||
aa_00TestAttribute?: string; | ||
} | ||
``` | ||
|
||
but will now generate: | ||
|
||
```ts | ||
interface AnonymousSchema_1 { | ||
aa_00_testAttribute?: string; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters