-
Notifications
You must be signed in to change notification settings - Fork 45
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
[TCGC] a helper function to show whether a type is wrapped by HttpPart
#1488
Comments
This is somewhat like the discussion of
that currently returns This may better be Alternatively, if all information of this |
In one word, there are 2 solutions here:
|
Or add a There is already some other usage on model #1518 |
For the property
temperature
, TCGC emits its type to a model. The model contains properties forbody
andcontentType
. Emitters may only care about type ofbody
. Then how to judge whether we need to parse the property type specially?One solution is that judge its
kind
like here. However, it is not that robust. Since common body may could also define property withprop: {@body body: string}
like here.So maybe TCGC need provide a helper funcion (e.g.
isWrappedByHttpPart
to help emitters judge whether need special logic for the property type.The text was updated successfully, but these errors were encountered: