-
Notifications
You must be signed in to change notification settings - Fork 37
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
Report error diagnostic when trying to flattening a model with polymorphsim #1223
Report error diagnostic when trying to flattening a model with polymorphsim #1223
Conversation
All changed packages have been documented.
Show changes
|
You can try these changes here
|
4e6dfa4
to
d0c63ec
Compare
.chronus/changes/tcgc-forbid-polymorphism-flatten-2024-6-23-22-12-38.md
Outdated
Show resolved
Hide resolved
packages/typespec-client-generator-core/test/decorators.test.ts
Outdated
Show resolved
Hide resolved
packages/typespec-client-generator-core/test/decorators.test.ts
Outdated
Show resolved
Hide resolved
…-12-38.md Co-authored-by: Timothee Guerin <[email protected]>
Co-authored-by: Timothee Guerin <[email protected]>
bedbb5b
to
f45476c
Compare
I changed the merge target branch from |
@timotheeguerin should this be an error, or should it be a linter warning? It is a bad thing to generate, but I'm not sure we should completely blow up generation in this case |
I think it's fine to be an error if it's run in the validator as it would count as a validator of the for @flatten decorator. If run in the preprocessor then no. And people will not see it in the ide too |
resolve #959