Skip to content

[Bug] Custom response overridden with default response in generated swagger while using template ArmResourceCreateOrUpdateAsync #254

Closed

Description

Describe the bug
When we use ArmResourceCreateOrUpdateAsync template and try to provide response using generic response in template (createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee, Response = AcceptedResponse>;), it is not working and default response for this operation is generated in swagger.

To Reproduce
Playground sample In this sample I have used ArmResourceCreateOrReplaceAsync and ArmResourceDeleteAsync operation template and updated the response to be AcceptedResponse, but the update is only reflected in delete operation.

Expected behavior
The response in swagger generated should be what we provide in template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions