microsoft / microsoft/typespec
Versioning library should support change of operation template
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
There are situations where an operation need to be changed to use a different operation template, e.g. to change from POST to PUT or from synchronous to asynchronous. I don't see a way to do this with the versioning library. I tried what seemed like the obvious thing to me:
[Playground example](https://cadlplayground.z22.web.core.windows.net/?c=aW1wb3J0ICJAdHlwZXNwZWMvaHR0cCI7CtIZdmVyc2lvbmluZyI7Cgp1c2luZyBUeXBlU3BlYy5IdHRwO9AVVskyOwoKQMdAZWQoxxhzKQpAc2VydmljZSh7CiAgdGl0bGU6ICJXaWRnZXQgU8YbIiwKfSkKbmFtZXNwYWNlIERlbW%2FHGzsKCmVudW0gyFAgxEZ2MSzEBjIsCn0KCm1vZGVsIMdRxB5Aa2V5IGlkOiBzdHLlAJggIHdlaWdodDogaW50MzLEEWNvbG9yOiAicmVkIiB8ICJibHVlIsQZQGFkZOsAvy52Mikg5ACZyk59CgpAZXJyb3LHekXEDMV5Y29kZctkbWVzc2FnzzpwYXRjaCBvcCB1cGRhdGU8VD4oQGJvZHkgxAU6IFQpOiBUIHzGVeQBUs8wQXN5bmPUNUFjY2VwdGVkUmVzcG9uc2XLRGludGVyZuQBWOYBJecBWuYBLHJlbW927wDxCiDHbiBpc8cKPMY7PvcBI9My5gCqyTd9Cg%3D%3D&e=%40typespec%2Fopenapi3&options=%7B%7D)
But this complains about a duplicate operation name. Is there another way to do this?
A "real life" instance of this problem is [PR 25027](https://github.com/Azure/azure-rest-api-specs/pull/25027).
Contributor guide
Assessment
This issue has not been assessed yet.