Describe the bug
The generated Operations controller has a wrong class name: it includes _2 and doesn't match the ctor.
Some examples:
public partial class ErrorResponse_2 : HttpServiceException
{
public ErrorResponse(ErrorDetail error = default)
{
// ...
}
and
public partial class OperationsController_2 : ControllerBase
{
public OperationsController(IOperations_2 operations)
{
// ..
}
}
Also:
public interface IOperations_2
{
}
Reproduction
- Use an ARM RP typespec
- Add the following to tspconfig.yaml
emit:
- "@typespec/http-server-csharp"
options:
"@typespec/http-server-csharp":
emitter-output-dir: "{project-root}/generated/{emitter-name}"
output-type: all
Checklist
Describe the bug
The generated Operations controller has a wrong class name: it includes
_2and doesn't match the ctor.Some examples:
and
Also:
Reproduction
Checklist