We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If referencing a type via a union of array that is not available in the version it doesn't complain and we endup with some never types
model Widget { // uncomment to fix // @added(Versions.v2) content: string | Bar[]; } @added(Versions.v2) model Bar {}
Playground Link
The text was updated successfully, but these errors were encountered:
I think the right way to express this is in this playground using @typeChangedFrom.
@typeChangedFrom
So it seems to me like the course of action here would be to throw a versioning error that Bar is referenced in v1 but didn't exist until v2.
Bar
Sorry, something went wrong.
Add validation to make sure operation params reference models availab…
133321f
…le in the current version (#4179) fix [#3920](#3920) fix [#3134](#3134)
83d3e34
…le in the current version (microsoft#4179) fix [microsoft#3920](microsoft#3920) fix [microsoft#3134](microsoft#3134)
5863c31
timotheeguerin
Successfully merging a pull request may close this issue.
If referencing a type via a union of array that is not available in the version it doesn't complain and we endup with some never types
Playground Link
The text was updated successfully, but these errors were encountered: