diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/api.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/api.mustache index e86a2cfb005a..ec7bc89fac54 100644 --- a/modules/openapi-generator/src/main/resources/dart/libraries/dio/api.mustache +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/api.mustache @@ -24,7 +24,7 @@ class {{classname}} { {{/allParams}} /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress diff --git a/samples/openapi3/client/petstore/dart-dio/oneof/lib/src/api/default_api.dart b/samples/openapi3/client/petstore/dart-dio/oneof/lib/src/api/default_api.dart index 64c4b4eff3b6..3650afe7cfba 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof/lib/src/api/default_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof/lib/src/api/default_api.dart @@ -24,7 +24,7 @@ class DefaultApi { /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/bar_api.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/bar_api.dart index 50e9bfbc2e9f..63c80b277b83 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/bar_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/bar_api.dart @@ -20,20 +20,20 @@ class BarApi { const BarApi(this._dio, this._serializers); /// Create a Bar - /// + /// /// /// Parameters: - /// * [barCreate] + /// * [barCreate] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [Bar] as data /// Throws [DioException] if API call or serialization fails - Future> createBar({ + Future> createBar({ required BarCreate barCreate, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/foo_api.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/foo_api.dart index a797ef4e805b..8b828caf3c6a 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/foo_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/foo_api.dart @@ -21,20 +21,20 @@ class FooApi { const FooApi(this._dio, this._serializers); /// Create a Foo - /// + /// /// /// Parameters: /// * [foo] - The Foo to be created /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [FooRefOrValue] as data /// Throws [DioException] if API call or serialization fails - Future> createFoo({ + Future> createFoo({ Foo? foo, CancelToken? cancelToken, Map? headers, @@ -116,19 +116,19 @@ class FooApi { } /// GET all Foos - /// + /// /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [BuiltList] as data /// Throws [DioException] if API call or serialization fails - Future>> getAllFoos({ + Future>> getAllFoos({ CancelToken? cancelToken, Map? headers, Map? extra, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_primitive/lib/src/api/default_api.dart b/samples/openapi3/client/petstore/dart-dio/oneof_primitive/lib/src/api/default_api.dart index 7d2841da6d0a..39f12745f31e 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_primitive/lib/src/api/default_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_primitive/lib/src/api/default_api.dart @@ -24,7 +24,7 @@ class DefaultApi { /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/another_fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/another_fake_api.dart index d98f3c23f4f7..378714d449f4 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/another_fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/another_fake_api.dart @@ -24,14 +24,14 @@ class AnotherFakeApi { /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails - Future> call123testSpecialTags({ + Future> call123testSpecialTags({ required ModelClient modelClient, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/default_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/default_api.dart index e9efb7b5b194..f9ca32e9ee28 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/default_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/default_api.dart @@ -18,19 +18,19 @@ class DefaultApi { const DefaultApi(this._dio); /// fooGet - /// + /// /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [FooGetDefaultResponse] as data /// Throws [DioException] if API call or serialization fails - Future> fooGet({ + Future> fooGet({ CancelToken? cancelToken, Map? headers, Map? extra, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart index 06486358eda5..922d1fd36da5 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart @@ -33,14 +33,14 @@ class FakeApi { /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [FakeBigDecimalMap200Response] as data /// Throws [DioException] if API call or serialization fails - Future> fakeBigDecimalMap({ + Future> fakeBigDecimalMap({ CancelToken? cancelToken, Map? headers, Map? extra, @@ -97,19 +97,19 @@ _responseData = rawData == null ? null : deserialize> fakeHealthGet({ + Future> fakeHealthGet({ CancelToken? cancelToken, Map? headers, Map? extra, @@ -166,7 +166,7 @@ _responseData = rawData == null ? null : deserialize> fakeHttpSignatureTest({ + Future> fakeHttpSignatureTest({ required Pet pet, String? query1, String? header1, @@ -254,14 +254,14 @@ _bodyData=jsonEncode(pet); /// * [body] - Input boolean as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [bool] as data /// Throws [DioException] if API call or serialization fails - Future> fakeOuterBooleanSerialize({ + Future> fakeOuterBooleanSerialize({ bool? body, CancelToken? cancelToken, Map? headers, @@ -343,14 +343,14 @@ _responseData = rawData == null ? null : deserialize(rawData, 'bool' /// * [outerComposite] - Input composite as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [OuterComposite] as data /// Throws [DioException] if API call or serialization fails - Future> fakeOuterCompositeSerialize({ + Future> fakeOuterCompositeSerialize({ OuterComposite? outerComposite, CancelToken? cancelToken, Map? headers, @@ -432,14 +432,14 @@ _responseData = rawData == null ? null : deserialize> fakeOuterNumberSerialize({ + Future> fakeOuterNumberSerialize({ num? body, CancelToken? cancelToken, Map? headers, @@ -521,14 +521,14 @@ _responseData = rawData == null ? null : deserialize(rawData, 'num', g /// * [body] - Input string as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [String] as data /// Throws [DioException] if API call or serialization fails - Future> fakeOuterStringSerialize({ + Future> fakeOuterStringSerialize({ String? body, CancelToken? cancelToken, Map? headers, @@ -610,14 +610,14 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S /// * [outerObjectWithEnumProperty] - Input enum (int) as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [OuterObjectWithEnumProperty] as data /// Throws [DioException] if API call or serialization fails - Future> fakePropertyEnumIntegerSerialize({ + Future> fakePropertyEnumIntegerSerialize({ required OuterObjectWithEnumProperty outerObjectWithEnumProperty, CancelToken? cancelToken, Map? headers, @@ -693,20 +693,20 @@ _responseData = rawData == null ? null : deserialize> testAdditionalPropertiesReference({ + Future> testAdditionalPropertiesReference({ required Map requestBody, CancelToken? cancelToken, Map? headers, @@ -764,14 +764,14 @@ _bodyData=jsonEncode(requestBody); /// * [body] - image to upload /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testBodyWithBinary({ + Future> testBodyWithBinary({ MultipartFile? body, CancelToken? cancelToken, Map? headers, @@ -826,17 +826,17 @@ _bodyData=jsonEncode(body); /// For this test, the body for this request must reference a schema named `File`. /// /// Parameters: - /// * [fileSchemaTestClass] + /// * [fileSchemaTestClass] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testBodyWithFileSchema({ + Future> testBodyWithFileSchema({ required FileSchemaTestClass fileSchemaTestClass, CancelToken? cancelToken, Map? headers, @@ -888,21 +888,21 @@ _bodyData=jsonEncode(fileSchemaTestClass); } /// testBodyWithQueryParams - /// + /// /// /// Parameters: - /// * [query] - /// * [user] + /// * [query] + /// * [user] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testBodyWithQueryParams({ + Future> testBodyWithQueryParams({ required String query, required User user, CancelToken? cancelToken, @@ -967,14 +967,14 @@ _bodyData=jsonEncode(user); /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails - Future> testClientModel({ + Future> testClientModel({ required ModelClient modelClient, CancelToken? cancelToken, Map? headers, @@ -1049,8 +1049,8 @@ _responseData = rawData == null ? null : deserialize(r ); } - /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// /// Parameters: /// * [number] - None @@ -1069,14 +1069,14 @@ _responseData = rawData == null ? null : deserialize(r /// * [callback] - None /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testEndpointParameters({ + Future> testEndpointParameters({ required num number, required double double_, required String patternWithoutDelimiter, @@ -1156,19 +1156,19 @@ _responseData = rawData == null ? null : deserialize(r /// * [enumQueryString] - Query parameter enum test (string) /// * [enumQueryInteger] - Query parameter enum test (double) /// * [enumQueryDouble] - Query parameter enum test (double) - /// * [enumQueryModelArray] + /// * [enumQueryModelArray] /// * [enumFormStringArray] - Form parameter enum test (string array) /// * [enumFormString] - Form parameter enum test (string) /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testEnumParameters({ + Future> testEnumParameters({ List? enumHeaderStringArray, String? enumHeaderString = '-efg', List? enumQueryStringArray, @@ -1251,14 +1251,14 @@ _responseData = rawData == null ? null : deserialize(r /// * [int64Group] - Integer in group parameters /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testGroupParameters({ + Future> testGroupParameters({ required int requiredStringGroup, required bool requiredBooleanGroup, required int requiredInt64Group, @@ -1313,20 +1313,20 @@ _responseData = rawData == null ? null : deserialize(r } /// test inline additionalProperties - /// + /// /// /// Parameters: /// * [requestBody] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testInlineAdditionalProperties({ + Future> testInlineAdditionalProperties({ required Map requestBody, CancelToken? cancelToken, Map? headers, @@ -1378,20 +1378,20 @@ _bodyData=jsonEncode(requestBody); } /// test inline free-form additionalProperties - /// + /// /// /// Parameters: /// * [testInlineFreeformAdditionalPropertiesRequest] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testInlineFreeformAdditionalProperties({ + Future> testInlineFreeformAdditionalProperties({ required TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, CancelToken? cancelToken, Map? headers, @@ -1443,21 +1443,21 @@ _bodyData=jsonEncode(testInlineFreeformAdditionalPropertiesRequest); } /// test json serialization of form data - /// + /// /// /// Parameters: /// * [param] - field1 /// * [param2] - field2 /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testJsonFormData({ + Future> testJsonFormData({ required String param, required String param2, CancelToken? cancelToken, @@ -1510,20 +1510,20 @@ _bodyData=jsonEncode(testInlineFreeformAdditionalPropertiesRequest); } /// test nullable parent property - /// + /// /// /// Parameters: /// * [childWithNullable] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testNullable({ + Future> testNullable({ required ChildWithNullable childWithNullable, CancelToken? cancelToken, Map? headers, @@ -1578,23 +1578,23 @@ _bodyData=jsonEncode(childWithNullable); /// To test the collection format in query parameters /// /// Parameters: - /// * [pipe] - /// * [ioutil] - /// * [http] - /// * [url] - /// * [context] - /// * [allowEmpty] - /// * [language] + /// * [pipe] + /// * [ioutil] + /// * [http] + /// * [url] + /// * [context] + /// * [allowEmpty] + /// * [language] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testQueryParameterCollectionFormat({ + Future> testQueryParameterCollectionFormat({ required List pipe, required List ioutil, required List http, @@ -1645,20 +1645,20 @@ _bodyData=jsonEncode(childWithNullable); } /// test referenced string map - /// + /// /// /// Parameters: /// * [requestBody] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testStringMapReference({ + Future> testStringMapReference({ required Map requestBody, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_classname_tags123_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_classname_tags123_api.dart index 56ec33f1cace..9a6a3e8980d9 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_classname_tags123_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_classname_tags123_api.dart @@ -24,14 +24,14 @@ class FakeClassnameTags123Api { /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails - Future> testClassname({ + Future> testClassname({ required ModelClient modelClient, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/pet_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/pet_api.dart index ec20128ee1e3..f8a1e83cb41b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/pet_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/pet_api.dart @@ -19,20 +19,20 @@ class PetApi { const PetApi(this._dio); /// Add a new pet to the store - /// + /// /// /// Parameters: /// * [pet] - Pet object that needs to be added to the store /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> addPet({ + Future> addPet({ required Pet pet, CancelToken? cancelToken, Map? headers, @@ -89,21 +89,21 @@ _bodyData=jsonEncode(pet); } /// Deletes a pet - /// + /// /// /// Parameters: /// * [petId] - Pet id to delete - /// * [apiKey] + /// * [apiKey] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> deletePet({ + Future> deletePet({ required int petId, String? apiKey, CancelToken? cancelToken, @@ -150,14 +150,14 @@ _bodyData=jsonEncode(pet); /// * [status] - Status values that need to be considered for filter /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [List] as data /// Throws [DioException] if API call or serialization fails - Future>> findPetsByStatus({ + Future>> findPetsByStatus({ @Deprecated('status is deprecated') required List status, CancelToken? cancelToken, Map? headers, @@ -231,7 +231,7 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'L /// * [tags] - Tags to filter by /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress @@ -239,7 +239,7 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'L /// Returns a [Future] containing a [Response] with a [Set] as data /// Throws [DioException] if API call or serialization fails @Deprecated('This operation has been deprecated') - Future>> findPetsByTags({ + Future>> findPetsByTags({ required Set tags, CancelToken? cancelToken, Map? headers, @@ -313,14 +313,14 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'Se /// * [petId] - ID of pet to return /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [Pet] as data /// Throws [DioException] if API call or serialization fails - Future> getPetById({ + Future> getPetById({ required int petId, CancelToken? cancelToken, Map? headers, @@ -385,20 +385,20 @@ _responseData = rawData == null ? null : deserialize(rawData, 'Pet', g } /// Update an existing pet - /// + /// /// /// Parameters: /// * [pet] - Pet object that needs to be added to the store /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> updatePet({ + Future> updatePet({ required Pet pet, CancelToken? cancelToken, Map? headers, @@ -455,7 +455,7 @@ _bodyData=jsonEncode(pet); } /// Updates a pet in the store with form data - /// + /// /// /// Parameters: /// * [petId] - ID of pet that needs to be updated @@ -463,14 +463,14 @@ _bodyData=jsonEncode(pet); /// * [status] - Updated status of the pet /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> updatePetWithForm({ + Future> updatePetWithForm({ required int petId, String? name, String? status, @@ -529,7 +529,7 @@ _bodyData=jsonEncode(pet); } /// uploads an image - /// + /// /// /// Parameters: /// * [petId] - ID of pet to update @@ -537,14 +537,14 @@ _bodyData=jsonEncode(pet); /// * [file] - file to upload /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails - Future> uploadFile({ + Future> uploadFile({ required int petId, String? additionalMetadata, MultipartFile? file, @@ -627,7 +627,7 @@ _responseData = rawData == null ? null : deserialize(r } /// uploads an image (required) - /// + /// /// /// Parameters: /// * [petId] - ID of pet to update @@ -635,14 +635,14 @@ _responseData = rawData == null ? null : deserialize(r /// * [additionalMetadata] - Additional data to pass to server /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails - Future> uploadFileWithRequiredFile({ + Future> uploadFileWithRequiredFile({ required int petId, required MultipartFile requiredFile, String? additionalMetadata, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/store_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/store_api.dart index 23e8deceaea8..128da8682aa0 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/store_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/store_api.dart @@ -24,14 +24,14 @@ class StoreApi { /// * [orderId] - ID of the order that needs to be deleted /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> deleteOrder({ + Future> deleteOrder({ required String orderId, CancelToken? cancelToken, Map? headers, @@ -70,14 +70,14 @@ class StoreApi { /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [Map] as data /// Throws [DioException] if API call or serialization fails - Future>> getInventory({ + Future>> getInventory({ CancelToken? cancelToken, Map? headers, Map? extra, @@ -147,14 +147,14 @@ _responseData = rawData == null ? null : deserialize, int>(rawD /// * [orderId] - ID of pet that needs to be fetched /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [Order] as data /// Throws [DioException] if API call or serialization fails - Future> getOrderById({ + Future> getOrderById({ required int orderId, CancelToken? cancelToken, Map? headers, @@ -212,20 +212,20 @@ _responseData = rawData == null ? null : deserialize(rawData, 'Ord } /// Place an order for a pet - /// + /// /// /// Parameters: /// * [order] - order placed for purchasing the pet /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [Order] as data /// Throws [DioException] if API call or serialization fails - Future> placeOrder({ + Future> placeOrder({ required Order order, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/user_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/user_api.dart index 24bbeb48f746..b05855f8f33f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/user_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/user_api.dart @@ -24,14 +24,14 @@ class UserApi { /// * [user] - Created user object /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> createUser({ + Future> createUser({ required User user, CancelToken? cancelToken, Map? headers, @@ -83,20 +83,20 @@ _bodyData=jsonEncode(user); } /// Creates list of users with given input array - /// + /// /// /// Parameters: /// * [user] - List of user object /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> createUsersWithArrayInput({ + Future> createUsersWithArrayInput({ required List user, CancelToken? cancelToken, Map? headers, @@ -148,20 +148,20 @@ _bodyData=jsonEncode(user); } /// Creates list of users with given input array - /// + /// /// /// Parameters: /// * [user] - List of user object /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> createUsersWithListInput({ + Future> createUsersWithListInput({ required List user, CancelToken? cancelToken, Map? headers, @@ -219,14 +219,14 @@ _bodyData=jsonEncode(user); /// * [username] - The name that needs to be deleted /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> deleteUser({ + Future> deleteUser({ required String username, CancelToken? cancelToken, Map? headers, @@ -260,20 +260,20 @@ _bodyData=jsonEncode(user); } /// Get user by user name - /// + /// /// /// Parameters: /// * [username] - The name that needs to be fetched. Use user1 for testing. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [User] as data /// Throws [DioException] if API call or serialization fails - Future> getUserByName({ + Future> getUserByName({ required String username, CancelToken? cancelToken, Map? headers, @@ -331,21 +331,21 @@ _responseData = rawData == null ? null : deserialize(rawData, 'User' } /// Logs user into the system - /// + /// /// /// Parameters: /// * [username] - The user name for login /// * [password] - The password for login in clear text /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [String] as data /// Throws [DioException] if API call or serialization fails - Future> loginUser({ + Future> loginUser({ required String username, required String password, CancelToken? cancelToken, @@ -410,19 +410,19 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S } /// Logs out current logged in user session - /// + /// /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> logoutUser({ + Future> logoutUser({ CancelToken? cancelToken, Map? headers, Map? extra, @@ -462,14 +462,14 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S /// * [user] - Updated user object /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> updateUser({ + Future> updateUser({ required String username, required User user, CancelToken? cancelToken, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/another_fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/another_fake_api.dart index 5d2876183070..faffe1e48b1c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/another_fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/another_fake_api.dart @@ -25,14 +25,14 @@ class AnotherFakeApi { /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails - Future> call123testSpecialTags({ + Future> call123testSpecialTags({ required ModelClient modelClient, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/default_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/default_api.dart index 50fd4f279b5b..3058cd6057ca 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/default_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/default_api.dart @@ -19,19 +19,19 @@ class DefaultApi { const DefaultApi(this._dio, this._serializers); /// fooGet - /// + /// /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [FooGetDefaultResponse] as data /// Throws [DioException] if API call or serialization fails - Future> fooGet({ + Future> fooGet({ CancelToken? cancelToken, Map? headers, Map? extra, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart index 1cfaf9712ad4..7528479c2ecd 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart @@ -39,14 +39,14 @@ class FakeApi { /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [FakeBigDecimalMap200Response] as data /// Throws [DioException] if API call or serialization fails - Future> fakeBigDecimalMap({ + Future> fakeBigDecimalMap({ CancelToken? cancelToken, Map? headers, Map? extra, @@ -107,19 +107,19 @@ class FakeApi { } /// Health check endpoint - /// + /// /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [HealthCheckResult] as data /// Throws [DioException] if API call or serialization fails - Future> fakeHealthGet({ + Future> fakeHealthGet({ CancelToken? cancelToken, Map? headers, Map? extra, @@ -180,7 +180,7 @@ class FakeApi { } /// test http signature authentication - /// + /// /// /// Parameters: /// * [pet] - Pet object that needs to be added to the store @@ -188,14 +188,14 @@ class FakeApi { /// * [header1] - header parameter /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> fakeHttpSignatureTest({ + Future> fakeHttpSignatureTest({ required Pet pet, String? query1, String? header1, @@ -270,14 +270,14 @@ class FakeApi { /// * [body] - Input boolean as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [bool] as data /// Throws [DioException] if API call or serialization fails - Future> fakeOuterBooleanSerialize({ + Future> fakeOuterBooleanSerialize({ bool? body, CancelToken? cancelToken, Map? headers, @@ -361,14 +361,14 @@ class FakeApi { /// * [outerComposite] - Input composite as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [OuterComposite] as data /// Throws [DioException] if API call or serialization fails - Future> fakeOuterCompositeSerialize({ + Future> fakeOuterCompositeSerialize({ OuterComposite? outerComposite, CancelToken? cancelToken, Map? headers, @@ -456,14 +456,14 @@ class FakeApi { /// * [body] - Input number as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [num] as data /// Throws [DioException] if API call or serialization fails - Future> fakeOuterNumberSerialize({ + Future> fakeOuterNumberSerialize({ num? body, CancelToken? cancelToken, Map? headers, @@ -547,14 +547,14 @@ class FakeApi { /// * [body] - Input string as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [String] as data /// Throws [DioException] if API call or serialization fails - Future> fakeOuterStringSerialize({ + Future> fakeOuterStringSerialize({ String? body, CancelToken? cancelToken, Map? headers, @@ -638,14 +638,14 @@ class FakeApi { /// * [outerObjectWithEnumProperty] - Input enum (int) as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [OuterObjectWithEnumProperty] as data /// Throws [DioException] if API call or serialization fails - Future> fakePropertyEnumIntegerSerialize({ + Future> fakePropertyEnumIntegerSerialize({ required OuterObjectWithEnumProperty outerObjectWithEnumProperty, CancelToken? cancelToken, Map? headers, @@ -727,20 +727,20 @@ class FakeApi { } /// test referenced additionalProperties - /// + /// /// /// Parameters: /// * [requestBody] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testAdditionalPropertiesReference({ + Future> testAdditionalPropertiesReference({ required BuiltMap requestBody, CancelToken? cancelToken, Map? headers, @@ -800,14 +800,14 @@ class FakeApi { /// * [body] - image to upload /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testBodyWithBinary({ + Future> testBodyWithBinary({ MultipartFile? body, CancelToken? cancelToken, Map? headers, @@ -863,17 +863,17 @@ class FakeApi { /// For this test, the body for this request must reference a schema named `File`. /// /// Parameters: - /// * [fileSchemaTestClass] + /// * [fileSchemaTestClass] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testBodyWithFileSchema({ + Future> testBodyWithFileSchema({ required FileSchemaTestClass fileSchemaTestClass, CancelToken? cancelToken, Map? headers, @@ -927,21 +927,21 @@ class FakeApi { } /// testBodyWithQueryParams - /// + /// /// /// Parameters: - /// * [query] - /// * [user] + /// * [query] + /// * [user] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testBodyWithQueryParams({ + Future> testBodyWithQueryParams({ required String query, required User user, CancelToken? cancelToken, @@ -1008,14 +1008,14 @@ class FakeApi { /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails - Future> testClientModel({ + Future> testClientModel({ required ModelClient modelClient, CancelToken? cancelToken, Map? headers, @@ -1096,8 +1096,8 @@ class FakeApi { ); } - /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// /// Parameters: /// * [number] - None @@ -1116,14 +1116,14 @@ class FakeApi { /// * [callback] - None /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testEndpointParameters({ + Future> testEndpointParameters({ required num number, required double double_, required String patternWithoutDelimiter, @@ -1219,19 +1219,19 @@ class FakeApi { /// * [enumQueryString] - Query parameter enum test (string) /// * [enumQueryInteger] - Query parameter enum test (double) /// * [enumQueryDouble] - Query parameter enum test (double) - /// * [enumQueryModelArray] + /// * [enumQueryModelArray] /// * [enumFormStringArray] - Form parameter enum test (string array) /// * [enumFormString] - Form parameter enum test (string) /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testEnumParameters({ + Future> testEnumParameters({ BuiltList? enumHeaderStringArray, String? enumHeaderString = '-efg', BuiltList? enumQueryStringArray, @@ -1318,14 +1318,14 @@ class FakeApi { /// * [int64Group] - Integer in group parameters /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testGroupParameters({ + Future> testGroupParameters({ required int requiredStringGroup, required bool requiredBooleanGroup, required int requiredInt64Group, @@ -1380,20 +1380,20 @@ class FakeApi { } /// test inline additionalProperties - /// + /// /// /// Parameters: /// * [requestBody] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testInlineAdditionalProperties({ + Future> testInlineAdditionalProperties({ required BuiltMap requestBody, CancelToken? cancelToken, Map? headers, @@ -1447,20 +1447,20 @@ class FakeApi { } /// test inline free-form additionalProperties - /// + /// /// /// Parameters: /// * [testInlineFreeformAdditionalPropertiesRequest] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testInlineFreeformAdditionalProperties({ + Future> testInlineFreeformAdditionalProperties({ required TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, CancelToken? cancelToken, Map? headers, @@ -1514,21 +1514,21 @@ class FakeApi { } /// test json serialization of form data - /// + /// /// /// Parameters: /// * [param] - field1 /// * [param2] - field2 /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testJsonFormData({ + Future> testJsonFormData({ required String param, required String param2, CancelToken? cancelToken, @@ -1585,20 +1585,20 @@ class FakeApi { } /// test nullable parent property - /// + /// /// /// Parameters: /// * [childWithNullable] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testNullable({ + Future> testNullable({ required ChildWithNullable childWithNullable, CancelToken? cancelToken, Map? headers, @@ -1655,23 +1655,23 @@ class FakeApi { /// To test the collection format in query parameters /// /// Parameters: - /// * [pipe] - /// * [ioutil] - /// * [http] - /// * [url] - /// * [context] - /// * [allowEmpty] - /// * [language] + /// * [pipe] + /// * [ioutil] + /// * [http] + /// * [url] + /// * [context] + /// * [allowEmpty] + /// * [language] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testQueryParameterCollectionFormat({ + Future> testQueryParameterCollectionFormat({ required BuiltList pipe, required BuiltList ioutil, required BuiltList http, @@ -1722,20 +1722,20 @@ class FakeApi { } /// test referenced string map - /// + /// /// /// Parameters: /// * [requestBody] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> testStringMapReference({ + Future> testStringMapReference({ required BuiltMap requestBody, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_classname_tags123_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_classname_tags123_api.dart index 671ec766ab47..973f0f2cb399 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_classname_tags123_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_classname_tags123_api.dart @@ -25,14 +25,14 @@ class FakeClassnameTags123Api { /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails - Future> testClassname({ + Future> testClassname({ required ModelClient modelClient, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/pet_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/pet_api.dart index a4da1c5ff6db..d0997961ab6e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/pet_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/pet_api.dart @@ -22,20 +22,20 @@ class PetApi { const PetApi(this._dio, this._serializers); /// Add a new pet to the store - /// + /// /// /// Parameters: /// * [pet] - Pet object that needs to be added to the store /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> addPet({ + Future> addPet({ required Pet pet, CancelToken? cancelToken, Map? headers, @@ -94,21 +94,21 @@ class PetApi { } /// Deletes a pet - /// + /// /// /// Parameters: /// * [petId] - Pet id to delete - /// * [apiKey] + /// * [apiKey] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> deletePet({ + Future> deletePet({ required int petId, String? apiKey, CancelToken? cancelToken, @@ -155,14 +155,14 @@ class PetApi { /// * [status] - Status values that need to be considered for filter /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [BuiltList] as data /// Throws [DioException] if API call or serialization fails - Future>> findPetsByStatus({ + Future>> findPetsByStatus({ @Deprecated('status is deprecated') required BuiltList status, CancelToken? cancelToken, Map? headers, @@ -240,7 +240,7 @@ class PetApi { /// * [tags] - Tags to filter by /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress @@ -248,7 +248,7 @@ class PetApi { /// Returns a [Future] containing a [Response] with a [BuiltSet] as data /// Throws [DioException] if API call or serialization fails @Deprecated('This operation has been deprecated') - Future>> findPetsByTags({ + Future>> findPetsByTags({ required BuiltSet tags, CancelToken? cancelToken, Map? headers, @@ -326,14 +326,14 @@ class PetApi { /// * [petId] - ID of pet to return /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [Pet] as data /// Throws [DioException] if API call or serialization fails - Future> getPetById({ + Future> getPetById({ required int petId, CancelToken? cancelToken, Map? headers, @@ -402,20 +402,20 @@ class PetApi { } /// Update an existing pet - /// + /// /// /// Parameters: /// * [pet] - Pet object that needs to be added to the store /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> updatePet({ + Future> updatePet({ required Pet pet, CancelToken? cancelToken, Map? headers, @@ -474,7 +474,7 @@ class PetApi { } /// Updates a pet in the store with form data - /// + /// /// /// Parameters: /// * [petId] - ID of pet that needs to be updated @@ -482,14 +482,14 @@ class PetApi { /// * [status] - Updated status of the pet /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> updatePetWithForm({ + Future> updatePetWithForm({ required int petId, String? name, String? status, @@ -552,7 +552,7 @@ class PetApi { } /// uploads an image - /// + /// /// /// Parameters: /// * [petId] - ID of pet to update @@ -560,14 +560,14 @@ class PetApi { /// * [file] - file to upload /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails - Future> uploadFile({ + Future> uploadFile({ required int petId, String? additionalMetadata, MultipartFile? file, @@ -658,7 +658,7 @@ class PetApi { } /// uploads an image (required) - /// + /// /// /// Parameters: /// * [petId] - ID of pet to update @@ -666,14 +666,14 @@ class PetApi { /// * [additionalMetadata] - Additional data to pass to server /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails - Future> uploadFileWithRequiredFile({ + Future> uploadFileWithRequiredFile({ required int petId, required MultipartFile requiredFile, String? additionalMetadata, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/store_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/store_api.dart index 6f519ff8ee51..53aa2ad5af04 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/store_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/store_api.dart @@ -27,14 +27,14 @@ class StoreApi { /// * [orderId] - ID of the order that needs to be deleted /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> deleteOrder({ + Future> deleteOrder({ required String orderId, CancelToken? cancelToken, Map? headers, @@ -73,14 +73,14 @@ class StoreApi { /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [BuiltMap] as data /// Throws [DioException] if API call or serialization fails - Future>> getInventory({ + Future>> getInventory({ CancelToken? cancelToken, Map? headers, Map? extra, @@ -154,14 +154,14 @@ class StoreApi { /// * [orderId] - ID of pet that needs to be fetched /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [Order] as data /// Throws [DioException] if API call or serialization fails - Future> getOrderById({ + Future> getOrderById({ required int orderId, CancelToken? cancelToken, Map? headers, @@ -223,20 +223,20 @@ class StoreApi { } /// Place an order for a pet - /// + /// /// /// Parameters: /// * [order] - order placed for purchasing the pet /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [Order] as data /// Throws [DioException] if API call or serialization fails - Future> placeOrder({ + Future> placeOrder({ required Order order, CancelToken? cancelToken, Map? headers, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/user_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/user_api.dart index 2a7e5132a60a..1bd62e63ad87 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/user_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/user_api.dart @@ -27,14 +27,14 @@ class UserApi { /// * [user] - Created user object /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> createUser({ + Future> createUser({ required User user, CancelToken? cancelToken, Map? headers, @@ -88,20 +88,20 @@ class UserApi { } /// Creates list of users with given input array - /// + /// /// /// Parameters: /// * [user] - List of user object /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> createUsersWithArrayInput({ + Future> createUsersWithArrayInput({ required BuiltList user, CancelToken? cancelToken, Map? headers, @@ -155,20 +155,20 @@ class UserApi { } /// Creates list of users with given input array - /// + /// /// /// Parameters: /// * [user] - List of user object /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> createUsersWithListInput({ + Future> createUsersWithListInput({ required BuiltList user, CancelToken? cancelToken, Map? headers, @@ -228,14 +228,14 @@ class UserApi { /// * [username] - The name that needs to be deleted /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> deleteUser({ + Future> deleteUser({ required String username, CancelToken? cancelToken, Map? headers, @@ -269,20 +269,20 @@ class UserApi { } /// Get user by user name - /// + /// /// /// Parameters: /// * [username] - The name that needs to be fetched. Use user1 for testing. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [User] as data /// Throws [DioException] if API call or serialization fails - Future> getUserByName({ + Future> getUserByName({ required String username, CancelToken? cancelToken, Map? headers, @@ -344,21 +344,21 @@ class UserApi { } /// Logs user into the system - /// + /// /// /// Parameters: /// * [username] - The user name for login /// * [password] - The password for login in clear text /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] containing a [Response] with a [String] as data /// Throws [DioException] if API call or serialization fails - Future> loginUser({ + Future> loginUser({ required String username, required String password, CancelToken? cancelToken, @@ -424,19 +424,19 @@ class UserApi { } /// Logs out current logged in user session - /// + /// /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> logoutUser({ + Future> logoutUser({ CancelToken? cancelToken, Map? headers, Map? extra, @@ -476,14 +476,14 @@ class UserApi { /// * [user] - Updated user object /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request - /// * [extras] - Can be used to add flags to the request + /// * [extra] - Can be used to add flags to the request /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// /// Returns a [Future] /// Throws [DioException] if API call or serialization fails - Future> updateUser({ + Future> updateUser({ required String username, required User user, CancelToken? cancelToken,