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

tsp, multipart bug fix on HttpPart<File>[] #2885

Merged

Conversation

weidongxu-microsoft
Copy link
Member

@weidongxu-microsoft weidongxu-microsoft commented Jul 31, 2024

The case would be covered in future cadl-ranch Azure/cadl-ranch#613

Comment on lines 210 to +214
if (property.type.kind === "model") {
fileSdkType = property.type;
} else if (property.type.kind === "array" && property.type.valueType.kind === "model") {
fileSdkType = property.type.valueType;
}
Copy link
Member Author

@weidongxu-microsoft weidongxu-microsoft Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug was due to the revert back to Array<File> (on isMulti=true) from TCGC property.

So here we need to either take the File from property, or the File inside the Array.

@weidongxu-microsoft weidongxu-microsoft changed the title tsp, multipart bug fix tsp, multipart bug fix on HttpPart<File>[] Jul 31, 2024
@weidongxu-microsoft weidongxu-microsoft marked this pull request as ready for review July 31, 2024 07:50
@weidongxu-microsoft weidongxu-microsoft merged commit 58c564d into Azure:main Jul 31, 2024
3 checks passed
@weidongxu-microsoft weidongxu-microsoft deleted the tsp_multipart-bug-fix branch July 31, 2024 07:54
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.

2 participants