-
Notifications
You must be signed in to change notification settings - Fork 40
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] linter raise for encoding mfd bytes #220
Conversation
All changed packages have been documented! |
@service({title: "Test Service"}) namespace TestService; | ||
model EncodedBytesMFD { | ||
@encode("base64") | ||
pictures: bytes; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not necessarly true that this is invalid. What it would mean is that the part is now serialized as a base64 text/plain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We talked about it offline and @lmazuel says that is really a corner case of MFD in HTTP. If they want base64, why not accept a JSON body. The DPG team is in agreement that at least for now we'll error out, so we don't shoot ourselves in the foot for the future
You can try these changes at https://cadlplayground.z22.web.core.windows.net/typespec-azure/prs/220/ Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/typespec-azure/prs/220/ |
No description provided.