Skip to content

Commit

Permalink
Add missing setBody import #726 (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso authored Nov 9, 2024
2 parents 194fbe3 + 3c0d8a5 commit ae5a523
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ fun KSFunctionDeclaration.toFunctionData(
addImport("io.ktor.util.AttributeKey")
}

if (it is Body || it is ParameterAnnotation.PartMap || it is ParameterAnnotation.Part) {
if (it is Body ||
it is ParameterAnnotation.PartMap ||
it is ParameterAnnotation.Part ||
it is FieldMap ||
it is Field
) {
addImport("io.ktor.client.request.setBody")
}

Expand Down

0 comments on commit ae5a523

Please sign in to comment.