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

fix: add multipart to request body serializers #1435

Closed
wants to merge 1 commit into from

Conversation

rkodev
Copy link
Contributor

@rkodev rkodev commented Oct 22, 2024

minor fix: adds Multipart type to options for setContentFromParsable.

@@ -216,7 +217,7 @@ export interface RequestMetadata {
errorMappings?: ErrorMappings;
adapterMethodName?: SendMethods;
responseBodyFactory?: ParsableFactory<Parsable> | PrimitiveTypesForDeserialization;
requestBodySerializer?: ModelSerializerFunction<Parsable> | PrimitiveTypesForDeserialization;
requestBodySerializer?: ModelSerializerFunction<Parsable> | ModelSerializerFunction<MultipartBody> | PrimitiveTypesForDeserialization;
Copy link
Member

Choose a reason for hiding this comment

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

since multipartBody implements IParsable what does this solve?

Copy link
Member

Choose a reason for hiding this comment

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

+1 on the comment by @baywet

There was an inconsistency with the type information earlier releases but that was resolved with the PR at #1399 as the function signature was missing the null information.

Copy link
Contributor Author

@rkodev rkodev Oct 23, 2024

Choose a reason for hiding this comment

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

The build error was as a result of an older version of the dependecies

@rkodev rkodev closed this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✔️
Development

Successfully merging this pull request may close these issues.

3 participants