I added another check in the parametersV2 method so that if there is a content type which is not multipart or form url encoded it is added to the request.
For example, I would expect the following swagger:
But instead generates this (the @Headers annotation is missing):
@RestApi()
abstract class TestsClient {
factory TestsClient(Dio dio, {String? baseUrl}) = _TestsClient;
/// Description
@PATCH('/test')
Future<void> operationId();
}
I also fixed the parser request_tests for v2 (callingactualRestClient.last in that scenario always returns the same element, therefore not all the list element were properly compared). The basic paths check 3.0 test has the same issue, if you switch from
I added another check in the parametersV2 method so that if there is a content type which is not multipart or form url encoded it is added to the request. For example, I would expect the following swagger:
to generate the following dart code:
But instead generates this (the
@Headers
annotation is missing):I also fixed the parser
request_tests
for v2 (callingactualRestClient.last
in that scenario always returns the same element, therefore not all the list element were properly compared). Thebasic paths check 3.0
test has the same issue, if you switch fromto
the test fails, it seems that the returnType is different but I didn't manage to understand why.