forked from loafle/openapi-generator-original
[dart-dio][client] Handle x-www-form-urlencoded form data (#5597)
This commit is contained in:
parent
b23c52f2ca
commit
c38b52919f
@ -55,6 +55,9 @@ class {{classname}} {
|
||||
}
|
||||
{{/isFile}}
|
||||
{{/isMultipart}}
|
||||
{{^isMultipart}}
|
||||
formData['{{baseName}}'] = parameterToString(_serializers, {{paramName}});
|
||||
{{/isMultipart}}
|
||||
{{/formParams}}
|
||||
bodyData = FormData.fromMap(formData);
|
||||
{{/hasFormParams}}
|
||||
|
@ -1 +1 @@
|
||||
4.3.1-SNAPSHOT
|
||||
4.3.1-SNAPSHOT
|
||||
|
@ -266,6 +266,8 @@ class PetApi {
|
||||
List<String> contentTypes = ["application/x-www-form-urlencoded"];
|
||||
|
||||
Map<String, dynamic> formData = {};
|
||||
formData['name'] = parameterToString(_serializers, name);
|
||||
formData['status'] = parameterToString(_serializers, status);
|
||||
bodyData = FormData.fromMap(formData);
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user