-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/c sharp operations member name casing (#816)
* Moved member-naming.ts to the c-sharp common package * avoid raw plugin config repetition by defining a dedicated type for the naming convention * Generate enums with pascal cased values when so configured * generating property names that respect the configured naming convention * Added changeset
- Loading branch information
1 parent
a563726
commit b1ec118
Showing
8 changed files
with
169 additions
and
28 deletions.
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,9 @@ | ||
--- | ||
'@graphql-codegen/c-sharp-operations': minor | ||
'@graphql-codegen/c-sharp-common': minor | ||
'@graphql-codegen/c-sharp': minor | ||
--- | ||
|
||
Added support for the new configuration option `memberNameConvention` to the c-sharp-operations | ||
plugin. Now both C# plugins can generate C# code with standard member casing. The default is still | ||
camel case, to avoid generating code that breaks user's existing code base. |
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
19 changes: 16 additions & 3 deletions
19
...gins/c-sharp/c-sharp/src/member-naming.ts → ...sharp/c-sharp-common/src/member-naming.ts
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
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
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