From 938917a83572fd65826d6b0fbafe013777c905fe Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 21 Jul 2022 10:04:00 +0530 Subject: [PATCH] Update openapi generator. --- .openapi-generator/FILES | 5 ----- .openapi-generator/VERSION | 2 +- README.md | 2 +- lib/src/api_util.dart | 3 +-- pubspec.yaml | 4 ++-- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6d6b0bb..f0f08f2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -45,8 +45,3 @@ lib/src/model/subtitle.dart lib/src/model/video_info.dart lib/src/serializers.dart pubspec.yaml -test/channel_item_test.dart -test/playlist_item_test.dart -test/search_filter_test.dart -test/search_item_test.dart -test/search_page_test.dart diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 7d3cdbf..6d54bbd 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1 \ No newline at end of file +6.0.1 \ No newline at end of file diff --git a/README.md b/README.md index 89a8f9e..6f01a79 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is an API specification for Piped API instances. This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Build package: org.openapitools.codegen.languages.DartDioNextClientCodegen +- Build package: org.openapitools.codegen.languages.DartDioClientCodegen For more information, please visit [https://github.com/TeamPiped/Piped/issues](https://github.com/TeamPiped/Piped/issues) ## Requirements diff --git a/lib/src/api_util.dart b/lib/src/api_util.dart index 09b9ba8..ed3bb12 100644 --- a/lib/src/api_util.dart +++ b/lib/src/api_util.dart @@ -8,7 +8,6 @@ import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/serializer.dart'; import 'package:dio/dio.dart'; -import 'package:dio/src/parameter.dart'; /// Format the given form parameter object into something that Dio can handle. /// Returns primitive or String. @@ -61,7 +60,7 @@ dynamic encodeQueryParameter( return serialized; } -ListParam encodeCollectionQueryParameter( +ListParam encodeCollectionQueryParameter( Serializers serializers, dynamic value, FullType type, { diff --git a/pubspec.yaml b/pubspec.yaml index 56e8c04..136ffc8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,11 +7,11 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - dio: '>=4.0.0 <5.0.0' + dio: '>=4.0.1 <5.0.0' built_value: '>=8.1.0 <9.0.0' built_collection: '>=5.1.0 <6.0.0' dev_dependencies: built_value_generator: '>=8.1.0 <9.0.0' build_runner: any - test: '>=1.16.0 <1.17.0' + test: ^1.16.0