Azure / Azure/typespec-azure

Omit API version const when it's a path parameter

Open
#4,943 1 comment 0 reactions 1 assignee Claimed by @jhendrixMSFT View on GitHub
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

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.