mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 17:42:47 +00:00
[swift]: support uuid in FormDataEncoding (#13228)
This commit is contained in:
committed by
GitHub
parent
27f3a5c36d
commit
2c0d886a1d
@@ -496,6 +496,17 @@ private class FormDataEncoding: ParameterEncoding {
|
||||
data: data
|
||||
)
|
||||
|
||||
case let uuid as UUID:
|
||||
|
||||
if let data = uuid.uuidString.data(using: .utf8) {
|
||||
urlRequest = configureDataUploadRequest(
|
||||
urlRequest: urlRequest,
|
||||
boundary: boundary,
|
||||
name: key,
|
||||
data: data
|
||||
)
|
||||
}
|
||||
|
||||
default:
|
||||
fatalError("Unprocessable value \(value) with key \(key)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user