-
Notifications
You must be signed in to change notification settings - Fork 226
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
[Ask] Do we allow mixed usage for models among mfd and non-mfd operations? #5376
Labels
Comments
MaryGao
changed the title
[Ask] Do we allow mixing usage for models among mulitpart and non-multipart operations?
[Ask] Do we allow mixed usage for models among mfd and non-mfd operations?
Dec 16, 2024
This was referenced Dec 16, 2024
My understanding:
|
I think this is the intention of how
|
@markcowl Any idea if we allow to share the models among mfd and non-mfd operations for unbranded? |
@markcowl I want to point out the previous bytes related discussion is still pending on typespec side bytes loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
Below cases are relevant to multipart/form-data I've derived from todo spec and I'd like to confirm if we have any limitation on model sharing among mfd and non-mfd operations in typespec side?
I am asking because if the model is used in a mfd operation, emitters may handle them differently and generate different APIs for that model. And previously tcgc tried to add some limitations on model mixed usage and would report errors(tcgc diagnostic code) and I guess this is for Azure scope? Then how about unbranded?
playground here
Todo Spec Cases
Say we have models with
TodoFileAttachment
. The first question would be:File
(spec) to be used as non-mfd operations for exampleop createJson(@header contentType: "application/json", contents: File): void;
?I would assume yes, since this is todo's pr demoed. Then we could have the model referenced by mfd and non-mfd ops.
Here are the questions on how to intercept them:
contents
in File, should we intercept as base64 string? How about it is used in other content type? Will we interceptbytes
differently?This is a confirmation issue and feel free to close if above questions are clear and answered from typespec side.
The text was updated successfully, but these errors were encountered: