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

parent resource should be a model in the generated tsp #4959

Closed
Tracked by #4947
pshao25 opened this issue Apr 24, 2024 · 0 comments · Fixed by #4958
Closed
Tracked by #4947

parent resource should be a model in the generated tsp #4959

pshao25 opened this issue Apr 24, 2024 · 0 comments · Fixed by #4958

Comments

@pshao25
Copy link
Member

pshao25 commented Apr 24, 2024

In test packages\extensions\openapi-to-typespec\test\arm-playwrighttesting, the parent resource for Quota is a string.

@parentResource("SubscriptionLocationResource")
model Quota is ProxyResource<QuotaProperties> {
  /**
   * The quota name.
   */
  @path
  @key("name")
  @segment("quotas")
  @visibility("read")
  name: QuotaNames;
}

Expected: it should be a model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant