Skip to content
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

Merged
merged 8 commits into from
Feb 5, 2024
Merged

Conversation

iscai-msft
Copy link
Contributor

No description provided.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 5, 2024

All changed packages have been documented!

@service({title: "Test Service"}) namespace TestService;
model EncodedBytesMFD {
@encode("base64")
pictures: bytes;
Copy link
Member

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

Copy link
Contributor Author

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

@azure-sdk
Copy link
Collaborator

@iscai-msft iscai-msft enabled auto-merge (squash) February 5, 2024 20:32
@iscai-msft iscai-msft merged commit c07c189 into main Feb 5, 2024
14 checks passed
@iscai-msft iscai-msft deleted the encoded_bytes_mfd branch February 5, 2024 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants