-
Notifications
You must be signed in to change notification settings - Fork 41
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
Remove alias model in getAllModels
#300
Comments
@iscai-msft @lmazuel @timotheeguerin
|
Yeah nearly in that alias is not limited to models but any expression. It's just a way to provide a reusable expression that has not actual name in the type graph |
@tadelesh can you help me understand why you need to distinguish between an anonymous model that was written inline vs an anonymous model that came from an alias. To me these don't have any unique behavior in a client library. |
@m-nash regarding the original goal to removing alias model from @iscai-msft @lmazuel what do you think? |
yeah you shouldn't do any special handling for model coming from alias. Alias are a concept that is internal to the typespec compiler in a sense. It shouldn't have any mapping in emitters(Exception with a few that would want to show back the original syntax like ref doc generation or api view). |
We should not return alias for
getAllModels
. Current implementation could not distinguish between anonymous model and alias. Need to figure out the solution.The text was updated successfully, but these errors were encountered: