Model Factory doesn't pass additional properties arg to full constructor if full constructor was customized #5107
Labels
emitter:client:csharp
Issue for the C# client emitter: @typespec/http-client-csharp
Due to the changes in #5082 re: ordering of constructor parameters, the logic in ModelFactoryProvider was updated to no longer assume that additionalBinaryDataProperties was the last parameter. Doing this uncovered an issue where if the full provider was customized to have the same number of parameters as the generated one, we wouldn't end up using the customized full constructor in the model factory. We need to update the logic to replace the full constructor even when the number of parameters are the same.
The text was updated successfully, but these errors were encountered: