-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[http-client-csharp] fix: use inputmodel name as default name in seri…
…alization provider (#4823) This PR fixes an issue where the name of the serialization provider for a model was being built incorrectly when the model is renamed and the renamed model is also further customized. It addresses this issue by ensuring the default name of the serialization provider is the name of the input model it is constructed from. fixes: #4793
- Loading branch information
1 parent
dfade34
commit 30568a4
Showing
3 changed files
with
32 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
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
9 changes: 9 additions & 0 deletions
9
...tionTypeDefinitions/TestData/ModelCustomizationTests/CanCustomizeModelName/CustomModel.cs
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 @@ | ||
#nullable disable | ||
|
||
using Microsoft.Generator.CSharp.Customization; | ||
|
||
namespace Sample.Models | ||
{ | ||
[CodeGenModel("MockInputModel")] | ||
internal partial class CustomModel { } | ||
} |