Azure / Azure/typespec-azure

[Bug]: Bad codegen for services that mix API version param location

Open
#5,226 0 comments 0 reactions 1 assignee Claimed by @jhendrixMSFT View on GitHub
bug emitter:go
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 22h
Merged PRs (30d)
156

Description

### Describe the bug

In `server/versions/versioned` it has operations that use the API version as a query param, and as a path param. Codegen is currently broken for this scenario.

### Reproduction

Build `server/versions/versioned`.

### Checklist

- [x] Follow our [Code of Conduct](https://github.com/azure/typespec-azure/blob/main/CODE_OF_CONDUCT.md)
- [x] Check that this issue is about the Azure libraries for typespec. For bug in the typespec language or core libraries file it in the [TypeSpec repo](https://github.com/Microsoft/TypeSpec/issues/new/choose)
- [x] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- [x] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.