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]: Versioning decorator can not be applied to spread declarations #3306

Open
4 tasks done
allenjzhang opened this issue May 8, 2024 · 1 comment
Open
4 tasks done
Labels
compiler:core Issues for @typespec/compiler design:needed A design request has been raised that needs a proposal triaged:core
Milestone

Comments

@allenjzhang
Copy link
Member

Describe the bug

Versioning decorator should be able to apply to spread model.

Reproduction

model Employee is TrackedResource<EmployeeProperties> {
  /** Name of employee */
  @pattern("^[a-zA-Z0-9-]{3,24}$")
  @key("employeeName")
  @path
  @segment("employees")
  name: string;

  @added(Versions.`2023-10-01-preview`)   <-- Unable to add this really limited usages of spread model
  ...ManagedServiceIdentityProperty;
}

Checklist

@allenjzhang allenjzhang added the bug Something isn't working label May 8, 2024
@markcowl markcowl added design:needed A design request has been raised that needs a proposal compiler:core Issues for @typespec/compiler and removed bug Something isn't working labels May 13, 2024
@markcowl
Copy link
Contributor

@markcowl add an issue to typespec-azure on the arm-specific issue

@markcowl markcowl added this to the Backlog milestone May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:core Issues for @typespec/compiler design:needed A design request has been raised that needs a proposal triaged:core
Projects
None yet
Development

No branches or pull requests

2 participants