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

typeChangedFrom of array doesn't catch invalid versioning #4752

Open
timotheeguerin opened this issue Oct 16, 2024 · 0 comments
Open

typeChangedFrom of array doesn't catch invalid versioning #4752

timotheeguerin opened this issue Oct 16, 2024 · 0 comments
Labels

Comments

@timotheeguerin
Copy link
Member

timotheeguerin commented Oct 16, 2024

@added(Versions.v2)
model Foo {}

model Bar {
  @typeChangedFrom(Versions.v2, Foo[])
  prop1: string; // here this prop is there from v1 but it says it used to reference a type added in v2

  // This one works ok though and show the correct error
  // @typeChangedFrom(Versions.v2, Foo)
  // prop2: string;
}

Playground Link

Probabluy doesn't work with unions either

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

No branches or pull requests

2 participants