Omit API version const when it's a path parameter
Open
emitter:go
feature
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 90
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 156
Description
> Migrated from https://github.com/Azure/autorest.go/issues/1646
---
https://github.com/Azure/autorest.go/blob/main/packages/typespec-go/src/tcgcadapter/types.ts#L33-L35
This should be a bit comparison since the `Input` bit will also be set when the API version is a path parameter.
Unfortunately, this introduces some complications for some Spector tests. In addition, the pipeline policy for setting the API version doesn't handle the case where it's a path param (and might not be able to; how to know which segment in the path to replace).
Contributor guide
Assessment
This issue has not been assessed yet.