Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Fail to map parameters in parameterized host in tcgc example #1419

Open
4 tasks done
MaryGao opened this issue Aug 26, 2024 · 0 comments
Open
4 tasks done

[Bug]: Fail to map parameters in parameterized host in tcgc example #1419

MaryGao opened this issue Aug 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@MaryGao
Copy link
Contributor

MaryGao commented Aug 26, 2024

Describe the bug

Fail to map parameters in parameterized hos in tcgc example.

@service({title: "ParametrizedHost"})
@useAuth(OAuth2Auth<[MyFlow]>)
@versioned(Versions)
@server(
  "{host}.{subdomain}.{sufix}.com",
  "Confidential Ledger Service",
  {
    @path
    host?: string = "one",
    @path
    subdomain?: string = "two",
    @path
    sufix?: string = "three",
  }
)
namespace Azure.Test.ParametrizedHost;

And given examples

{
  "title": "listCollections",
  "operationId": "ConfidentialLedger_listCollections",
  "parameters": {
    "host": "one",
    "subdomain": "two",
    "sufix": "three",
    "apiVersion": "v1"
  },
  "responses": {
    "200": {}
  }
}

We wll not get any example values in paramterized host.

Reproduction

NA

Checklist

  • Follow our Code of Conduct
  • 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
  • Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@MaryGao MaryGao added the bug Something isn't working label Aug 26, 2024
@tadelesh tadelesh added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Aug 26, 2024
@tadelesh tadelesh self-assigned this Aug 26, 2024
@MaryGao MaryGao changed the title [Bug]: Fail to map parameters in parameterized hos in tcgc example [Bug]: Fail to map parameters in parameterized host in tcgc example Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lib:tcgc Issues for @azure-tools/typespec-client-generator-core library
Projects
None yet
Development

No branches or pull requests

2 participants