From f5236efc66cda7126b2aa02fd00dff0759de450f Mon Sep 17 00:00:00 2001 From: Ahmed Fwela Date: Wed, 2 Aug 2023 04:18:35 +0300 Subject: [PATCH] async changes --- .../languages/DartNextAbstractCodegen.java | 2 +- .../languages/DartNextClientCodegen.java | 4 +- .../libraries/dio/api_typed.mustache | 12 +- .../dart-next/libraries/dio/api_util.mustache | 56 ++++----- .../built_value/repository_impl.mustache | 2 +- .../repository_impl.mustache | 1 + .../serialization/repository_base.mustache | 6 +- .../dio/built_value/.openapi-generator/FILES | 109 ++++++++++++++++ .../lib/src/api/another_fake_api.dart | 5 +- .../dio/built_value/lib/src/api/bar_api.dart | 5 +- .../built_value/lib/src/api/default_api.dart | 13 +- .../dio/built_value/lib/src/api/fake_api.dart | 118 +++++++++--------- .../src/api/fake_classname_tags123_api.dart | 5 +- .../dio/built_value/lib/src/api/foo_api.dart | 8 +- .../dio/built_value/lib/src/api/pet_api.dart | 42 +++---- .../built_value/lib/src/api/store_api.dart | 13 +- .../dio/built_value/lib/src/api/user_api.dart | 23 ++-- .../dio/built_value/lib/src/api_util.dart | 56 ++++----- .../built_value/lib/src/repository_base.dart | 6 +- .../built_value/lib/src/repository_impl.dart | 2 +- .../additional_properties_class_test.dart | 9 +- .../built_value/test/addressable_test.dart | 9 +- .../test/all_of_with_single_ref_test.dart | 9 +- .../dio/built_value/test/animal_test.dart | 9 +- .../test/another_fake_api_test.dart | 6 +- .../built_value/test/api_response_test.dart | 13 +- .../test/apple_all_of_disc_test.dart | 9 +- .../test/apple_grandparent_disc_test.dart | 9 +- .../test/apple_one_of_disc_test.dart | 9 +- .../built_value/test/apple_req_disc_test.dart | 9 +- .../dart/dio/built_value/test/apple_test.dart | 5 +- .../built_value/test/apple_variant1_test.dart | 5 +- .../array_of_array_of_number_only_test.dart | 5 +- .../test/array_of_number_only_test.dart | 5 +- .../dio/built_value/test/array_test_test.dart | 13 +- .../test/banana_all_of_disc_test.dart | 9 +- .../test/banana_grandparent_disc_test.dart | 9 +- .../test/banana_one_of_disc_test.dart | 9 +- .../test/banana_req_disc_test.dart | 9 +- .../dio/built_value/test/banana_test.dart | 5 +- .../dio/built_value/test/bar_api_test.dart | 6 +- .../dio/built_value/test/bar_create_test.dart | 33 +++-- .../test/bar_ref_or_value_test.dart | 21 +++- .../dio/built_value/test/bar_ref_test.dart | 21 +++- .../dart/dio/built_value/test/bar_test.dart | 33 +++-- .../built_value/test/capitalization_test.dart | 27 ++-- .../dart/dio/built_value/test/cat_test.dart | 13 +- .../dio/built_value/test/category_test.dart | 9 +- .../built_value/test/class_model_test.dart | 5 +- ...sed_disc_missing_from_properties_test.dart | 5 +- ...posed_disc_optional_type_correct_test.dart | 5 +- ..._disc_optional_type_inconsistent_test.dart | 5 +- ...sed_disc_optional_type_incorrect_test.dart | 5 +- ...posed_disc_required_inconsistent_test.dart | 5 +- .../composed_disc_type_inconsistent_test.dart | 5 +- .../composed_disc_type_incorrect_test.dart | 5 +- .../built_value/test/default_api_test.dart | 26 +++- .../test/deprecated_object_test.dart | 5 +- .../disc_missing_from_properties_test.dart | 5 +- .../test/disc_optional_type_correct_test.dart | 5 +- .../disc_optional_type_incorrect_test.dart | 5 +- .../test/disc_type_incorrect_test.dart | 5 +- .../dart/dio/built_value/test/dog_test.dart | 13 +- .../dio/built_value/test/entity_ref_test.dart | 29 +++-- .../dio/built_value/test/entity_test.dart | 21 +++- .../built_value/test/enum_arrays_test.dart | 9 +- .../dio/built_value/test/enum_test_test.dart | 33 +++-- .../dio/built_value/test/extensible_test.dart | 13 +- .../dio/built_value/test/fake_api_test.dart | 78 ++++++++---- .../test/fake_classname_tags123_api_test.dart | 6 +- .../test/file_schema_test_class_test.dart | 9 +- .../dio/built_value/test/foo_api_test.dart | 10 +- .../foo_basic_get_default_response_test.dart | 5 +- .../test/foo_ref_or_value_test.dart | 21 +++- .../dio/built_value/test/foo_ref_test.dart | 25 +++- .../dart/dio/built_value/test/foo_test.dart | 29 +++-- .../built_value/test/format_test_test.dart | 65 +++++++--- .../test/fruit_all_of_disc_test.dart | 5 +- .../test/fruit_any_of_disc_test.dart | 5 +- .../test/fruit_grandparent_disc_test.dart | 5 +- .../test/fruit_inline_disc_one_of1_test.dart | 9 +- .../test/fruit_inline_disc_one_of_test.dart | 9 +- .../test/fruit_inline_disc_test.dart | 13 +- ...fruit_inline_inline_disc_one_of1_test.dart | 9 +- ...inline_inline_disc_one_of_one_of_test.dart | 5 +- .../fruit_inline_inline_disc_one_of_test.dart | 9 +- .../test/fruit_inline_inline_disc_test.dart | 5 +- .../test/fruit_one_of_disc_test.dart | 5 +- .../built_value/test/fruit_req_disc_test.dart | 13 +- .../dart/dio/built_value/test/fruit_test.dart | 13 +- .../dio/built_value/test/fruit_type_test.dart | 5 +- .../built_value/test/fruit_variant1_test.dart | 9 +- .../built_value/test/giga_one_of_test.dart | 5 +- .../built_value/test/grape_variant1_test.dart | 5 +- .../test/has_only_read_only_test.dart | 9 +- .../test/health_check_result_test.dart | 5 +- .../dio/built_value/test/map_test_test.dart | 17 ++- ..._and_additional_properties_class_test.dart | 13 +- .../test/model200_response_test.dart | 9 +- .../built_value/test/model_client_test.dart | 5 +- .../test/model_enum_class_test.dart | 4 +- .../dio/built_value/test/model_file_test.dart | 5 +- .../dio/built_value/test/model_list_test.dart | 5 +- .../built_value/test/model_return_test.dart | 5 +- .../dart/dio/built_value/test/name_test.dart | 17 ++- .../built_value/test/nullable_class_test.dart | 49 ++++++-- .../built_value/test/number_only_test.dart | 5 +- .../object_with_deprecated_fields_test.dart | 17 ++- .../test/one_of_primitive_child_test.dart | 5 +- .../dart/dio/built_value/test/order_test.dart | 25 +++- .../test/outer_composite_test.dart | 13 +- .../test/outer_enum_default_value_test.dart | 4 +- ...outer_enum_integer_default_value_test.dart | 4 +- .../test/outer_enum_integer_test.dart | 4 +- .../dio/built_value/test/outer_enum_test.dart | 4 +- .../outer_object_with_enum_property_test.dart | 5 +- .../dio/built_value/test/parent_test.dart | 5 +- .../dart/dio/built_value/test/pasta_test.dart | 25 +++- .../dio/built_value/test/pet_api_test.dart | 50 +++++--- .../dart/dio/built_value/test/pet_test.dart | 25 +++- .../built_value/test/pizza_speziale_test.dart | 25 +++- .../dart/dio/built_value/test/pizza_test.dart | 25 +++- .../test/read_only_first_test.dart | 9 +- .../test/single_ref_type_test.dart | 4 +- .../test/special_model_name_test.dart | 7 +- .../dio/built_value/test/store_api_test.dart | 20 ++- .../dart/dio/built_value/test/tag_test.dart | 9 +- .../dio/built_value/test/user_api_test.dart | 44 +++++-- .../dart/dio/built_value/test/user_test.dart | 33 +++-- 129 files changed, 1378 insertions(+), 534 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartNextAbstractCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartNextAbstractCodegen.java index e19066d0ca4d..ccd92373b12b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartNextAbstractCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartNextAbstractCodegen.java @@ -539,7 +539,7 @@ public String getTypeDeclaration(Schema p) { if (ModelUtils.isMapSchema(target)) { // Note: ModelUtils.isMapSchema(p) returns true when p is a composed schema that also defines // additionalproperties: true - Schema inner = getAdditionalProperties(target); + Schema inner = ModelUtils.getAdditionalProperties(target); if (inner == null) { LOGGER.error("`{}` (map property) does not have a proper inner type defined. Default to type:string", p.getName()); inner = new StringSchema().description("TODO default missing map inner type to string"); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartNextClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartNextClientCodegen.java index 7f7dd4bc35d9..b1bca5e5fac5 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartNextClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartNextClientCodegen.java @@ -740,8 +740,8 @@ private void adaptToDartInheritance(Map objs) { /// setLegacyDiscriminatorBehavior(false) /// this ensures 1-1 schema mapping instead of 1-many @Override - protected CodegenDiscriminator createDiscriminator(String schemaName, Schema schema, OpenAPI openAPI) { - CodegenDiscriminator sub = super.createDiscriminator(schemaName, schema, openAPI); + protected CodegenDiscriminator createDiscriminator(String schemaName, Schema schema) { + CodegenDiscriminator sub = super.createDiscriminator(schemaName, schema); Discriminator originalDiscriminator = schema.getDiscriminator(); if (originalDiscriminator != null) { Map originalMapping = originalDiscriminator.getMapping(); diff --git a/modules/openapi-generator/src/main/resources/dart-next/libraries/dio/api_typed.mustache b/modules/openapi-generator/src/main/resources/dart-next/libraries/dio/api_typed.mustache index 5b7a3bcf108e..d5419ffac53c 100644 --- a/modules/openapi-generator/src/main/resources/dart-next/libraries/dio/api_typed.mustache +++ b/modules/openapi-generator/src/main/resources/dart-next/libraries/dio/api_typed.mustache @@ -43,7 +43,7 @@ class {{classname}} { {{#hasFormParams}} final _bodyMap = { {{#formParams}} - {{^required}}if ({{{paramName}}} != null) {{/required}}r'{{{baseName}}}': encodeFormParameter(_repository, {{{paramName}}}, {{>types/recursion_type_info}}), + {{^required}}if ({{{paramName}}} != null) {{/required}}r'{{{baseName}}}': await encodeFormParameter(_repository, {{{paramName}}}, {{>types/recursion_type_info}}), {{/formParams}} }; {{#isMultipart}} @@ -54,15 +54,15 @@ class {{classname}} { {{/isMultipart}} {{/hasFormParams}} {{#bodyParam}} - _bodyData = encodeBodyParameter(_repository, {{{paramName}}}, {{>types/recursion_type_info}}); + _bodyData = await encodeBodyParameter(_repository, {{{paramName}}}, {{>types/recursion_type_info}}); {{/bodyParam}} {{/hasBodyOrFormParams}} final _response = await rawApi.{{nickname}}( {{#allParams}}{{#isPathParam}} - {{paramName}}: encodeStringParameter(_repository, {{paramName}}, {{>types/recursion_type_info}}),{{/isPathParam}}{{#isQueryParam}} - {{paramName}}: encodeQueryParameter(_repository, {{paramName}}, {{>types/recursion_type_info}}, {{#collectionFormat}}format: ListFormat.{{.}},{{/collectionFormat}}),{{/isQueryParam}}{{#isHeaderParam}} - {{paramName}}: encodeStringParameter(_repository, {{paramName}}, {{>types/recursion_type_info}}), {{/isHeaderParam}}{{/allParams}} + {{paramName}}: await encodeStringParameter(_repository, {{paramName}}, {{>types/recursion_type_info}}),{{/isPathParam}}{{#isQueryParam}} + {{paramName}}: await encodeQueryParameter(_repository, {{paramName}}, {{>types/recursion_type_info}}, {{#collectionFormat}}format: ListFormat.{{.}},{{/collectionFormat}}),{{/isQueryParam}}{{#isHeaderParam}} + {{paramName}}: await encodeStringParameter(_repository, {{paramName}}, {{>types/recursion_type_info}}), {{/isHeaderParam}}{{/allParams}} {{#hasConsumes}} body: _bodyData, requestContentType: '{{#prioritizedContentTypes}}{{#-first}}{{{mediaType}}}{{/-first}}{{/prioritizedContentTypes}}',{{/hasConsumes}} @@ -83,7 +83,7 @@ class {{classname}} { try { final rawResponse = _response.data; {{#returnProperty}} - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, {{>types/recursion_type_info}}); + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, {{>types/recursion_type_info}}); {{/returnProperty}} } catch (error, stackTrace) { throw DioException( diff --git a/modules/openapi-generator/src/main/resources/dart-next/libraries/dio/api_util.mustache b/modules/openapi-generator/src/main/resources/dart-next/libraries/dio/api_util.mustache index cca5b3427a0a..e6357fd191b6 100644 --- a/modules/openapi-generator/src/main/resources/dart-next/libraries/dio/api_util.mustache +++ b/modules/openapi-generator/src/main/resources/dart-next/libraries/dio/api_util.mustache @@ -1,57 +1,48 @@ import 'package:dio/dio.dart'; +import 'dart:async'; import 'dart:convert'; import 'package:openapi/models.dart'; import 'dart:typed_data'; /// Format the given form parameter object into something that Dio can handle. -/// Returns primitive or String. -/// Returns List/Map if the value is BuildList/BuiltMap. -Object encodeFormParameter( +Future encodeFormParameter( SerializationRepositoryBase repository, T value, TypeInfo type, -) { - if (value == null) { - return ''; - } - final serialized = repository.serialize( - value, - type, - ); - return serialized; +) async { + return repository.serialize( + value, + type, + ); } -String encodeStringParameter( +Future encodeStringParameter( SerializationRepositoryBase repository, T value, TypeInfo type, -) { - return repository.serialize(value, type).toString(); +) async { + return (await repository.serialize(value, type)).toString(); } -Object encodeBodyParameter( +Future encodeBodyParameter( SerializationRepositoryBase repository, T value, TypeInfo type, -) { - if (value == null) { - return ''; - } - final serialized = repository.serialize( +) async { + return await repository.serialize( value, type, - ); - return serialized; + ); } -Object encodeQueryParameter( +Future encodeQueryParameter( SerializationRepositoryBase repository, T value, TypeInfo type, { ListFormat format = ListFormat.multi, -}) { +}) async { if (value == null) { - return ''; + return null; } if (value is String || value is num || value is bool) { return value; @@ -67,22 +58,25 @@ Object encodeQueryParameter( return serialized; } -ListParam encodeCollectionQueryParameter( +Future> encodeCollectionQueryParameter( SerializationRepositoryBase repository, Iterable value, TypeInfo type, { ListFormat format = ListFormat.multi, -}) { - final serialized = repository.serialize( +}) async { + final serialized = await repository.serialize( value, type, ); + if (serialized == null) { + return ListParam([], format); + } if (serialized is Iterable) { return ListParam(serialized.toList(), format); } throw ArgumentError('Invalid value passed to encodeCollectionQueryParameter'); } -TOutput decodeResponse(SerializationRepositoryBase repository, TInput value, TypeInfo type) { - return repository.deserialize(value, type); +Future decodeResponse(SerializationRepositoryBase repository, TInput value, TypeInfo type) async { + return await repository.deserialize(value, type); } \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/dart-next/serialization/built_value/repository_impl.mustache b/modules/openapi-generator/src/main/resources/dart-next/serialization/built_value/repository_impl.mustache index d06ea0b8765d..2c7beee1e417 100644 --- a/modules/openapi-generator/src/main/resources/dart-next/serialization/built_value/repository_impl.mustache +++ b/modules/openapi-generator/src/main/resources/dart-next/serialization/built_value/repository_impl.mustache @@ -1,5 +1,5 @@ {{>header}} - +import 'dart:async'; import 'dart:convert'; import 'dart:typed_data'; diff --git a/modules/openapi-generator/src/main/resources/dart-next/serialization/json_serializable/repository_impl.mustache b/modules/openapi-generator/src/main/resources/dart-next/serialization/json_serializable/repository_impl.mustache index ec1eb6a29167..85b20e8b3ae3 100644 --- a/modules/openapi-generator/src/main/resources/dart-next/serialization/json_serializable/repository_impl.mustache +++ b/modules/openapi-generator/src/main/resources/dart-next/serialization/json_serializable/repository_impl.mustache @@ -1,4 +1,5 @@ import 'dart:convert'; +import 'dart:async'; import 'dart:typed_data'; import 'repository_base.dart'; import 'package:{{pubName}}/models.dart'; diff --git a/modules/openapi-generator/src/main/resources/dart-next/serialization/repository_base.mustache b/modules/openapi-generator/src/main/resources/dart-next/serialization/repository_base.mustache index c4c2def37aa6..fa1f81f13c5b 100644 --- a/modules/openapi-generator/src/main/resources/dart-next/serialization/repository_base.mustache +++ b/modules/openapi-generator/src/main/resources/dart-next/serialization/repository_base.mustache @@ -1,3 +1,5 @@ +import 'dart:async'; + /// The general rule for implementing this class is /// json == serialize(deserialize(json)) /// object == deserialize(serialize(object)) @@ -6,8 +8,8 @@ abstract class SerializationRepositoryBase { const SerializationRepositoryBase(); - FutureOr serialize(T src, TypeInfo inputTypeInfo, {Object? context,}); - FutureOr deserialize(Object? value, TypeInfo targetTypeInfo, {Object? context,}); + FutureOr serialize(T src, TypeInfo inputTypeInfo, {Object? context,}); + FutureOr deserialize(Object? value, TypeInfo targetTypeInfo, {Object? context,}); } /// A modified version of `built_value`'s `FullType` class, found here diff --git a/samples/client/echo_api/dart/dio/built_value/.openapi-generator/FILES b/samples/client/echo_api/dart/dio/built_value/.openapi-generator/FILES index 58cb7a2275e9..18008f8208c3 100644 --- a/samples/client/echo_api/dart/dio/built_value/.openapi-generator/FILES +++ b/samples/client/echo_api/dart/dio/built_value/.openapi-generator/FILES @@ -236,3 +236,112 @@ lib/src/repository_base.dart lib/src/repository_impl.dart lib/src/serializers.dart pubspec.yaml +test/additional_properties_class_test.dart +test/addressable_test.dart +test/all_of_with_single_ref_test.dart +test/animal_test.dart +test/another_fake_api_test.dart +test/api_response_test.dart +test/apple_all_of_disc_test.dart +test/apple_grandparent_disc_test.dart +test/apple_one_of_disc_test.dart +test/apple_req_disc_test.dart +test/apple_test.dart +test/apple_variant1_test.dart +test/array_of_array_of_number_only_test.dart +test/array_of_number_only_test.dart +test/array_test_test.dart +test/banana_all_of_disc_test.dart +test/banana_grandparent_disc_test.dart +test/banana_one_of_disc_test.dart +test/banana_req_disc_test.dart +test/banana_test.dart +test/bar_api_test.dart +test/bar_create_test.dart +test/bar_ref_or_value_test.dart +test/bar_ref_test.dart +test/bar_test.dart +test/capitalization_test.dart +test/cat_test.dart +test/category_test.dart +test/class_model_test.dart +test/composed_disc_missing_from_properties_test.dart +test/composed_disc_optional_type_correct_test.dart +test/composed_disc_optional_type_inconsistent_test.dart +test/composed_disc_optional_type_incorrect_test.dart +test/composed_disc_required_inconsistent_test.dart +test/composed_disc_type_inconsistent_test.dart +test/composed_disc_type_incorrect_test.dart +test/default_api_test.dart +test/deprecated_object_test.dart +test/disc_missing_from_properties_test.dart +test/disc_optional_type_correct_test.dart +test/disc_optional_type_incorrect_test.dart +test/disc_type_incorrect_test.dart +test/dog_test.dart +test/entity_ref_test.dart +test/entity_test.dart +test/enum_arrays_test.dart +test/enum_test_test.dart +test/extensible_test.dart +test/fake_api_test.dart +test/fake_classname_tags123_api_test.dart +test/file_schema_test_class_test.dart +test/foo_api_test.dart +test/foo_basic_get_default_response_test.dart +test/foo_ref_or_value_test.dart +test/foo_ref_test.dart +test/foo_test.dart +test/format_test_test.dart +test/fruit_all_of_disc_test.dart +test/fruit_any_of_disc_test.dart +test/fruit_grandparent_disc_test.dart +test/fruit_inline_disc_one_of1_test.dart +test/fruit_inline_disc_one_of_test.dart +test/fruit_inline_disc_test.dart +test/fruit_inline_inline_disc_one_of1_test.dart +test/fruit_inline_inline_disc_one_of_one_of_test.dart +test/fruit_inline_inline_disc_one_of_test.dart +test/fruit_inline_inline_disc_test.dart +test/fruit_one_of_disc_test.dart +test/fruit_req_disc_test.dart +test/fruit_test.dart +test/fruit_type_test.dart +test/fruit_variant1_test.dart +test/giga_one_of_test.dart +test/grape_variant1_test.dart +test/has_only_read_only_test.dart +test/health_check_result_test.dart +test/map_test_test.dart +test/mixed_properties_and_additional_properties_class_test.dart +test/model200_response_test.dart +test/model_client_test.dart +test/model_enum_class_test.dart +test/model_file_test.dart +test/model_list_test.dart +test/model_return_test.dart +test/name_test.dart +test/nullable_class_test.dart +test/number_only_test.dart +test/object_with_deprecated_fields_test.dart +test/one_of_primitive_child_test.dart +test/order_test.dart +test/outer_composite_test.dart +test/outer_enum_default_value_test.dart +test/outer_enum_integer_default_value_test.dart +test/outer_enum_integer_test.dart +test/outer_enum_test.dart +test/outer_object_with_enum_property_test.dart +test/parent_test.dart +test/pasta_test.dart +test/pet_api_test.dart +test/pet_test.dart +test/pizza_speziale_test.dart +test/pizza_test.dart +test/read_only_first_test.dart +test/single_ref_type_test.dart +test/special_model_name_test.dart +test/store_api_test.dart +test/tag_test.dart +test/user_api_test.dart +test/user_test.dart diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/another_fake_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/another_fake_api.dart index 37e8fcbda65d..6df08905607b 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/another_fake_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/another_fake_api.dart @@ -12,7 +12,6 @@ import 'package:openapi/src/api_util.dart'; import 'package:openapi/models.dart'; import 'package:openapi/src/model/model_client.dart'; -part 'another_fake_api.g.dart'; class AnotherFakeApi { @@ -45,7 +44,7 @@ class AnotherFakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, modelClient, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, modelClient, const TypeInfo( ModelClient @@ -69,7 +68,7 @@ class AnotherFakeApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( ModelClient diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/bar_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/bar_api.dart index b70423894fba..4de07ba6196b 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/bar_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/bar_api.dart @@ -13,7 +13,6 @@ import 'package:openapi/models.dart'; import 'package:openapi/src/model/bar.dart'; import 'package:openapi/src/model/bar_create.dart'; -part 'bar_api.g.dart'; class BarApi { @@ -46,7 +45,7 @@ class BarApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, barCreate, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, barCreate, const TypeInfo( BarCreate @@ -70,7 +69,7 @@ class BarApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( Bar diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/default_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/default_api.dart index 923c671c1f3c..a72f9758407b 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/default_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/default_api.dart @@ -17,7 +17,6 @@ import 'package:openapi/src/model/fruit_all_of_disc.dart'; import 'package:openapi/src/model/fruit_variant1.dart'; import 'package:openapi/src/model/giga_one_of.dart'; -part 'default_api.g.dart'; class DefaultApi { @@ -63,7 +62,7 @@ class DefaultApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( FooBasicGetDefaultResponse @@ -129,7 +128,7 @@ class DefaultApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( GigaOneOf @@ -195,7 +194,7 @@ class DefaultApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( Fruit @@ -248,7 +247,7 @@ class DefaultApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, body, const TypeInfo.nullable( + _bodyData = await encodeBodyParameter(_repository, body, const TypeInfo.nullable( JsonObject @@ -308,7 +307,7 @@ class DefaultApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( FruitVariant1 @@ -374,7 +373,7 @@ class DefaultApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( FruitAllOfDisc diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/fake_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/fake_api.dart index 821054b216ce..0f374540241a 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/fake_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/fake_api.dart @@ -68,7 +68,7 @@ class FakeApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( HealthCheckResult @@ -125,7 +125,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, pet, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, pet, const TypeInfo( Pet @@ -135,14 +135,14 @@ class FakeApi { final _response = await rawApi.fakeHttpSignatureTest( - query1: encodeQueryParameter(_repository, query1, const TypeInfo( + query1: await encodeQueryParameter(_repository, query1, const TypeInfo( String ) , ), - header1: encodeStringParameter(_repository, header1, const TypeInfo( + header1: await encodeStringParameter(_repository, header1, const TypeInfo( String @@ -186,7 +186,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, body, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, body, const TypeInfo( bool @@ -210,7 +210,7 @@ class FakeApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( bool @@ -263,7 +263,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, outerComposite, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, outerComposite, const TypeInfo( OuterComposite @@ -287,7 +287,7 @@ class FakeApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( OuterComposite @@ -340,7 +340,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, body, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, body, const TypeInfo( num @@ -364,7 +364,7 @@ class FakeApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( num @@ -417,7 +417,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, body, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, body, const TypeInfo( String @@ -441,7 +441,7 @@ class FakeApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( String @@ -494,7 +494,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, outerObjectWithEnumProperty, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, outerObjectWithEnumProperty, const TypeInfo( OuterObjectWithEnumProperty @@ -518,7 +518,7 @@ class FakeApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( OuterObjectWithEnumProperty @@ -571,7 +571,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, body, const TypeInfo.nullable( + _bodyData = await encodeBodyParameter(_repository, body, const TypeInfo.nullable( MultipartFile @@ -618,7 +618,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, fileSchemaTestClass, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, fileSchemaTestClass, const TypeInfo( FileSchemaTestClass @@ -667,7 +667,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, user, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, user, const TypeInfo( User @@ -677,7 +677,7 @@ class FakeApi { final _response = await rawApi.testBodyWithQueryParams( - query: encodeQueryParameter(_repository, query, const TypeInfo( + query: await encodeQueryParameter(_repository, query, const TypeInfo( String @@ -721,7 +721,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, modelClient, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, modelClient, const TypeInfo( ModelClient @@ -745,7 +745,7 @@ class FakeApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( ModelClient @@ -825,98 +825,98 @@ class FakeApi { }) async { Object? _bodyData; final _bodyMap = { - if (integer != null) r'integer': encodeFormParameter(_repository, integer, const TypeInfo( + if (integer != null) r'integer': await encodeFormParameter(_repository, integer, const TypeInfo( int ) ), - if (int32 != null) r'int32': encodeFormParameter(_repository, int32, const TypeInfo( + if (int32 != null) r'int32': await encodeFormParameter(_repository, int32, const TypeInfo( int ) ), - if (int64 != null) r'int64': encodeFormParameter(_repository, int64, const TypeInfo( + if (int64 != null) r'int64': await encodeFormParameter(_repository, int64, const TypeInfo( int ) ), - r'number': encodeFormParameter(_repository, number, const TypeInfo( + r'number': await encodeFormParameter(_repository, number, const TypeInfo( num ) ), - if (float != null) r'float': encodeFormParameter(_repository, float, const TypeInfo( + if (float != null) r'float': await encodeFormParameter(_repository, float, const TypeInfo( double ) ), - r'double': encodeFormParameter(_repository, double_, const TypeInfo( + r'double': await encodeFormParameter(_repository, double_, const TypeInfo( double ) ), - if (string != null) r'string': encodeFormParameter(_repository, string, const TypeInfo( + if (string != null) r'string': await encodeFormParameter(_repository, string, const TypeInfo( String ) ), - r'pattern_without_delimiter': encodeFormParameter(_repository, patternWithoutDelimiter, const TypeInfo( + r'pattern_without_delimiter': await encodeFormParameter(_repository, patternWithoutDelimiter, const TypeInfo( String ) ), - r'byte': encodeFormParameter(_repository, byte, const TypeInfo( + r'byte': await encodeFormParameter(_repository, byte, const TypeInfo( String ) ), - if (binary != null) r'binary': encodeFormParameter(_repository, binary, const TypeInfo( + if (binary != null) r'binary': await encodeFormParameter(_repository, binary, const TypeInfo( Uint8List ) ), - if (date != null) r'date': encodeFormParameter(_repository, date, const TypeInfo( + if (date != null) r'date': await encodeFormParameter(_repository, date, const TypeInfo( Date ) ), - if (dateTime != null) r'dateTime': encodeFormParameter(_repository, dateTime, const TypeInfo( + if (dateTime != null) r'dateTime': await encodeFormParameter(_repository, dateTime, const TypeInfo( DateTime ) ), - if (password != null) r'password': encodeFormParameter(_repository, password, const TypeInfo( + if (password != null) r'password': await encodeFormParameter(_repository, password, const TypeInfo( String ) ), - if (callback != null) r'callback': encodeFormParameter(_repository, callback, const TypeInfo( + if (callback != null) r'callback': await encodeFormParameter(_repository, callback, const TypeInfo( String @@ -982,7 +982,7 @@ class FakeApi { }) async { Object? _bodyData; final _bodyMap = { - if (enumFormStringArray != null) r'enum_form_string_array': encodeFormParameter(_repository, enumFormStringArray, const TypeInfo( + if (enumFormStringArray != null) r'enum_form_string_array': await encodeFormParameter(_repository, enumFormStringArray, const TypeInfo( BuiltList, [ const TypeInfo( @@ -995,7 +995,7 @@ class FakeApi { ]) ), - if (enumFormString != null) r'enum_form_string': encodeFormParameter(_repository, enumFormString, const TypeInfo( + if (enumFormString != null) r'enum_form_string': await encodeFormParameter(_repository, enumFormString, const TypeInfo( EnumFormStringEnum @@ -1007,7 +1007,7 @@ class FakeApi { final _response = await rawApi.testEnumParameters( - enumHeaderStringArray: encodeStringParameter(_repository, enumHeaderStringArray, const TypeInfo( + enumHeaderStringArray: await encodeStringParameter(_repository, enumHeaderStringArray, const TypeInfo( BuiltList, [ const TypeInfo( @@ -1020,14 +1020,14 @@ class FakeApi { ]) ), - enumHeaderString: encodeStringParameter(_repository, enumHeaderString, const TypeInfo( + enumHeaderString: await encodeStringParameter(_repository, enumHeaderString, const TypeInfo( EnumHeaderStringEnum ) ), - enumQueryStringArray: encodeQueryParameter(_repository, enumQueryStringArray, const TypeInfo( + enumQueryStringArray: await encodeQueryParameter(_repository, enumQueryStringArray, const TypeInfo( BuiltList, [ const TypeInfo( @@ -1040,28 +1040,28 @@ class FakeApi { ]) , format: ListFormat.multi,), - enumQueryString: encodeQueryParameter(_repository, enumQueryString, const TypeInfo( + enumQueryString: await encodeQueryParameter(_repository, enumQueryString, const TypeInfo( EnumQueryStringEnum ) , ), - enumQueryInteger: encodeQueryParameter(_repository, enumQueryInteger, const TypeInfo( + enumQueryInteger: await encodeQueryParameter(_repository, enumQueryInteger, const TypeInfo( EnumQueryIntegerEnum ) , ), - enumQueryDouble: encodeQueryParameter(_repository, enumQueryDouble, const TypeInfo( + enumQueryDouble: await encodeQueryParameter(_repository, enumQueryDouble, const TypeInfo( EnumQueryDoubleEnum ) , ), - enumQueryModelArray: encodeQueryParameter(_repository, enumQueryModelArray, const TypeInfo( + enumQueryModelArray: await encodeQueryParameter(_repository, enumQueryModelArray, const TypeInfo( BuiltList, [ const TypeInfo( @@ -1123,42 +1123,42 @@ class FakeApi { final _response = await rawApi.testGroupParameters( - requiredStringGroup: encodeQueryParameter(_repository, requiredStringGroup, const TypeInfo( + requiredStringGroup: await encodeQueryParameter(_repository, requiredStringGroup, const TypeInfo( int ) , ), - requiredBooleanGroup: encodeStringParameter(_repository, requiredBooleanGroup, const TypeInfo( + requiredBooleanGroup: await encodeStringParameter(_repository, requiredBooleanGroup, const TypeInfo( bool ) ), - requiredInt64Group: encodeQueryParameter(_repository, requiredInt64Group, const TypeInfo( + requiredInt64Group: await encodeQueryParameter(_repository, requiredInt64Group, const TypeInfo( int ) , ), - stringGroup: encodeQueryParameter(_repository, stringGroup, const TypeInfo( + stringGroup: await encodeQueryParameter(_repository, stringGroup, const TypeInfo( int ) , ), - booleanGroup: encodeStringParameter(_repository, booleanGroup, const TypeInfo( + booleanGroup: await encodeStringParameter(_repository, booleanGroup, const TypeInfo( bool ) ), - int64Group: encodeQueryParameter(_repository, int64Group, const TypeInfo( + int64Group: await encodeQueryParameter(_repository, int64Group, const TypeInfo( int @@ -1201,7 +1201,7 @@ class FakeApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, requestBody, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, requestBody, const TypeInfo( BuiltMap, [ TypeInfo(String), const TypeInfo( @@ -1257,14 +1257,14 @@ class FakeApi { }) async { Object? _bodyData; final _bodyMap = { - r'param': encodeFormParameter(_repository, param, const TypeInfo( + r'param': await encodeFormParameter(_repository, param, const TypeInfo( String ) ), - r'param2': encodeFormParameter(_repository, param2, const TypeInfo( + r'param2': await encodeFormParameter(_repository, param2, const TypeInfo( String @@ -1327,7 +1327,7 @@ class FakeApi { final _response = await rawApi.testQueryParameterCollectionFormat( - pipe: encodeQueryParameter(_repository, pipe, const TypeInfo( + pipe: await encodeQueryParameter(_repository, pipe, const TypeInfo( BuiltList, [ const TypeInfo( @@ -1340,7 +1340,7 @@ class FakeApi { ]) , format: ListFormat.pipes,), - ioutil: encodeQueryParameter(_repository, ioutil, const TypeInfo( + ioutil: await encodeQueryParameter(_repository, ioutil, const TypeInfo( BuiltList, [ const TypeInfo( @@ -1353,7 +1353,7 @@ class FakeApi { ]) , format: ListFormat.csv,), - http: encodeQueryParameter(_repository, http, const TypeInfo( + http: await encodeQueryParameter(_repository, http, const TypeInfo( BuiltList, [ const TypeInfo( @@ -1366,7 +1366,7 @@ class FakeApi { ]) , format: ListFormat.ssv,), - url: encodeQueryParameter(_repository, url, const TypeInfo( + url: await encodeQueryParameter(_repository, url, const TypeInfo( BuiltList, [ const TypeInfo( @@ -1379,7 +1379,7 @@ class FakeApi { ]) , format: ListFormat.csv,), - context: encodeQueryParameter(_repository, context, const TypeInfo( + context: await encodeQueryParameter(_repository, context, const TypeInfo( BuiltList, [ const TypeInfo( @@ -1392,14 +1392,14 @@ class FakeApi { ]) , format: ListFormat.multi,), - allowEmpty: encodeQueryParameter(_repository, allowEmpty, const TypeInfo( + allowEmpty: await encodeQueryParameter(_repository, allowEmpty, const TypeInfo( String ) , ), - language: encodeQueryParameter(_repository, language, const TypeInfo( + language: await encodeQueryParameter(_repository, language, const TypeInfo( BuiltMap, [ TypeInfo(String), const TypeInfo( diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/fake_classname_tags123_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/fake_classname_tags123_api.dart index 4b738508ff61..9562e3ef0516 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/fake_classname_tags123_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/fake_classname_tags123_api.dart @@ -12,7 +12,6 @@ import 'package:openapi/src/api_util.dart'; import 'package:openapi/models.dart'; import 'package:openapi/src/model/model_client.dart'; -part 'fake_classname_tags123_api.g.dart'; class FakeClassnameTags123Api { @@ -45,7 +44,7 @@ class FakeClassnameTags123Api { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, modelClient, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, modelClient, const TypeInfo( ModelClient @@ -69,7 +68,7 @@ class FakeClassnameTags123Api { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( ModelClient diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/foo_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/foo_api.dart index 8a31381a45e4..3d46f23a463b 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/foo_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/foo_api.dart @@ -10,10 +10,10 @@ import 'package:built_value/serializer.dart'; import 'package:openapi/src/repository_base.dart'; import 'package:openapi/src/api_util.dart'; import 'package:openapi/models.dart'; +import 'package:built_collection/built_collection.dart'; import 'package:openapi/src/model/foo.dart'; import 'package:openapi/src/model/foo_ref_or_value.dart'; -part 'foo_api.g.dart'; class FooApi { @@ -46,7 +46,7 @@ class FooApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, foo, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, foo, const TypeInfo( Foo @@ -70,7 +70,7 @@ class FooApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( FooRefOrValue @@ -136,7 +136,7 @@ class FooApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( BuiltList, [ const TypeInfo( diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/pet_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/pet_api.dart index d65f20abe9c6..435aa41e2c3b 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/pet_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/pet_api.dart @@ -47,7 +47,7 @@ class PetApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, pet, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, pet, const TypeInfo( Pet @@ -98,14 +98,14 @@ class PetApi { final _response = await rawApi.deletePet( - petId: encodeStringParameter(_repository, petId, const TypeInfo( + petId: await encodeStringParameter(_repository, petId, const TypeInfo( int ) ), - apiKey: encodeStringParameter(_repository, apiKey, const TypeInfo( + apiKey: await encodeStringParameter(_repository, apiKey, const TypeInfo( String @@ -150,7 +150,7 @@ class PetApi { final _response = await rawApi.findPetsByStatus( - status: encodeQueryParameter(_repository, status, const TypeInfo( + status: await encodeQueryParameter(_repository, status, const TypeInfo( BuiltList, [ const TypeInfo( @@ -176,7 +176,7 @@ class PetApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( BuiltList, [ const TypeInfo( @@ -238,7 +238,7 @@ class PetApi { final _response = await rawApi.findPetsByTags( - tags: encodeQueryParameter(_repository, tags, const TypeInfo( + tags: await encodeQueryParameter(_repository, tags, const TypeInfo( BuiltSet, [ const TypeInfo( @@ -264,7 +264,7 @@ class PetApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( BuiltSet, [ const TypeInfo( @@ -325,7 +325,7 @@ class PetApi { final _response = await rawApi.getPetById( - petId: encodeStringParameter(_repository, petId, const TypeInfo( + petId: await encodeStringParameter(_repository, petId, const TypeInfo( int @@ -345,7 +345,7 @@ class PetApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( Pet @@ -398,7 +398,7 @@ class PetApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, pet, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, pet, const TypeInfo( Pet @@ -450,14 +450,14 @@ class PetApi { }) async { Object? _bodyData; final _bodyMap = { - if (name != null) r'name': encodeFormParameter(_repository, name, const TypeInfo( + if (name != null) r'name': await encodeFormParameter(_repository, name, const TypeInfo( String ) ), - if (status != null) r'status': encodeFormParameter(_repository, status, const TypeInfo( + if (status != null) r'status': await encodeFormParameter(_repository, status, const TypeInfo( String @@ -469,7 +469,7 @@ class PetApi { final _response = await rawApi.updatePetWithForm( - petId: encodeStringParameter(_repository, petId, const TypeInfo( + petId: await encodeStringParameter(_repository, petId, const TypeInfo( int @@ -518,14 +518,14 @@ class PetApi { }) async { Object? _bodyData; final _bodyMap = { - if (additionalMetadata != null) r'additionalMetadata': encodeFormParameter(_repository, additionalMetadata, const TypeInfo( + if (additionalMetadata != null) r'additionalMetadata': await encodeFormParameter(_repository, additionalMetadata, const TypeInfo( String ) ), - if (file != null) r'file': encodeFormParameter(_repository, file, const TypeInfo( + if (file != null) r'file': await encodeFormParameter(_repository, file, const TypeInfo( MultipartFile @@ -537,7 +537,7 @@ class PetApi { final _response = await rawApi.uploadFile( - petId: encodeStringParameter(_repository, petId, const TypeInfo( + petId: await encodeStringParameter(_repository, petId, const TypeInfo( int @@ -558,7 +558,7 @@ class PetApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( ApiResponse @@ -616,14 +616,14 @@ class PetApi { }) async { Object? _bodyData; final _bodyMap = { - if (additionalMetadata != null) r'additionalMetadata': encodeFormParameter(_repository, additionalMetadata, const TypeInfo( + if (additionalMetadata != null) r'additionalMetadata': await encodeFormParameter(_repository, additionalMetadata, const TypeInfo( String ) ), - r'requiredFile': encodeFormParameter(_repository, requiredFile, const TypeInfo( + r'requiredFile': await encodeFormParameter(_repository, requiredFile, const TypeInfo( MultipartFile @@ -635,7 +635,7 @@ class PetApi { final _response = await rawApi.uploadFileWithRequiredFile( - petId: encodeStringParameter(_repository, petId, const TypeInfo( + petId: await encodeStringParameter(_repository, petId, const TypeInfo( int @@ -656,7 +656,7 @@ class PetApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( ApiResponse diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/store_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/store_api.dart index 7a14f7a28ff8..be557dc64816 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/store_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/store_api.dart @@ -13,7 +13,6 @@ import 'package:openapi/models.dart'; import 'package:built_collection/built_collection.dart'; import 'package:openapi/src/model/order.dart'; -part 'store_api.g.dart'; class StoreApi { @@ -48,7 +47,7 @@ class StoreApi { final _response = await rawApi.deleteOrder( - orderId: encodeStringParameter(_repository, orderId, const TypeInfo( + orderId: await encodeStringParameter(_repository, orderId, const TypeInfo( String @@ -104,7 +103,7 @@ class StoreApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( BuiltMap, [ TypeInfo(String), const TypeInfo( @@ -165,7 +164,7 @@ class StoreApi { final _response = await rawApi.getOrderById( - orderId: encodeStringParameter(_repository, orderId, const TypeInfo( + orderId: await encodeStringParameter(_repository, orderId, const TypeInfo( int @@ -185,7 +184,7 @@ class StoreApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( Order @@ -238,7 +237,7 @@ class StoreApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, order, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, order, const TypeInfo( Order @@ -262,7 +261,7 @@ class StoreApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( Order diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api/user_api.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api/user_api.dart index a70612cfedfb..caeb7be4f811 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api/user_api.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api/user_api.dart @@ -13,7 +13,6 @@ import 'package:openapi/models.dart'; import 'package:built_collection/built_collection.dart'; import 'package:openapi/src/model/user.dart'; -part 'user_api.g.dart'; class UserApi { @@ -46,7 +45,7 @@ class UserApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, user, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, user, const TypeInfo( User @@ -93,7 +92,7 @@ class UserApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, user, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, user, const TypeInfo( BuiltList, [ const TypeInfo( @@ -146,7 +145,7 @@ class UserApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, user, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, user, const TypeInfo( BuiltList, [ const TypeInfo( @@ -201,7 +200,7 @@ class UserApi { final _response = await rawApi.deleteUser( - username: encodeStringParameter(_repository, username, const TypeInfo( + username: await encodeStringParameter(_repository, username, const TypeInfo( String @@ -246,7 +245,7 @@ class UserApi { final _response = await rawApi.getUserByName( - username: encodeStringParameter(_repository, username, const TypeInfo( + username: await encodeStringParameter(_repository, username, const TypeInfo( String @@ -266,7 +265,7 @@ class UserApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( User @@ -323,14 +322,14 @@ class UserApi { final _response = await rawApi.loginUser( - username: encodeQueryParameter(_repository, username, const TypeInfo( + username: await encodeQueryParameter(_repository, username, const TypeInfo( String ) , ), - password: encodeQueryParameter(_repository, password, const TypeInfo( + password: await encodeQueryParameter(_repository, password, const TypeInfo( String @@ -350,7 +349,7 @@ class UserApi { try { final rawResponse = _response.data; - _responseData = rawResponse == null ? null : decodeResponse(_repository, rawResponse, const TypeInfo( + _responseData = rawResponse == null ? null : await decodeResponse(_repository, rawResponse, const TypeInfo( String @@ -441,7 +440,7 @@ class UserApi { ProgressCallback? onReceiveProgress, }) async { Object? _bodyData; - _bodyData = encodeBodyParameter(_repository, user, const TypeInfo( + _bodyData = await encodeBodyParameter(_repository, user, const TypeInfo( User @@ -451,7 +450,7 @@ class UserApi { final _response = await rawApi.updateUser( - username: encodeStringParameter(_repository, username, const TypeInfo( + username: await encodeStringParameter(_repository, username, const TypeInfo( String diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/api_util.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/api_util.dart index cca5b3427a0a..e6357fd191b6 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/api_util.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/api_util.dart @@ -1,57 +1,48 @@ import 'package:dio/dio.dart'; +import 'dart:async'; import 'dart:convert'; import 'package:openapi/models.dart'; import 'dart:typed_data'; /// Format the given form parameter object into something that Dio can handle. -/// Returns primitive or String. -/// Returns List/Map if the value is BuildList/BuiltMap. -Object encodeFormParameter( +Future encodeFormParameter( SerializationRepositoryBase repository, T value, TypeInfo type, -) { - if (value == null) { - return ''; - } - final serialized = repository.serialize( - value, - type, - ); - return serialized; +) async { + return repository.serialize( + value, + type, + ); } -String encodeStringParameter( +Future encodeStringParameter( SerializationRepositoryBase repository, T value, TypeInfo type, -) { - return repository.serialize(value, type).toString(); +) async { + return (await repository.serialize(value, type)).toString(); } -Object encodeBodyParameter( +Future encodeBodyParameter( SerializationRepositoryBase repository, T value, TypeInfo type, -) { - if (value == null) { - return ''; - } - final serialized = repository.serialize( +) async { + return await repository.serialize( value, type, - ); - return serialized; + ); } -Object encodeQueryParameter( +Future encodeQueryParameter( SerializationRepositoryBase repository, T value, TypeInfo type, { ListFormat format = ListFormat.multi, -}) { +}) async { if (value == null) { - return ''; + return null; } if (value is String || value is num || value is bool) { return value; @@ -67,22 +58,25 @@ Object encodeQueryParameter( return serialized; } -ListParam encodeCollectionQueryParameter( +Future> encodeCollectionQueryParameter( SerializationRepositoryBase repository, Iterable value, TypeInfo type, { ListFormat format = ListFormat.multi, -}) { - final serialized = repository.serialize( +}) async { + final serialized = await repository.serialize( value, type, ); + if (serialized == null) { + return ListParam([], format); + } if (serialized is Iterable) { return ListParam(serialized.toList(), format); } throw ArgumentError('Invalid value passed to encodeCollectionQueryParameter'); } -TOutput decodeResponse(SerializationRepositoryBase repository, TInput value, TypeInfo type) { - return repository.deserialize(value, type); +Future decodeResponse(SerializationRepositoryBase repository, TInput value, TypeInfo type) async { + return await repository.deserialize(value, type); } \ No newline at end of file diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/repository_base.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/repository_base.dart index c4c2def37aa6..fa1f81f13c5b 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/repository_base.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/repository_base.dart @@ -1,3 +1,5 @@ +import 'dart:async'; + /// The general rule for implementing this class is /// json == serialize(deserialize(json)) /// object == deserialize(serialize(object)) @@ -6,8 +8,8 @@ abstract class SerializationRepositoryBase { const SerializationRepositoryBase(); - FutureOr serialize(T src, TypeInfo inputTypeInfo, {Object? context,}); - FutureOr deserialize(Object? value, TypeInfo targetTypeInfo, {Object? context,}); + FutureOr serialize(T src, TypeInfo inputTypeInfo, {Object? context,}); + FutureOr deserialize(Object? value, TypeInfo targetTypeInfo, {Object? context,}); } /// A modified version of `built_value`'s `FullType` class, found here diff --git a/samples/client/echo_api/dart/dio/built_value/lib/src/repository_impl.dart b/samples/client/echo_api/dart/dio/built_value/lib/src/repository_impl.dart index c92bf3371b72..5d7c14063a21 100644 --- a/samples/client/echo_api/dart/dio/built_value/lib/src/repository_impl.dart +++ b/samples/client/echo_api/dart/dio/built_value/lib/src/repository_impl.dart @@ -2,7 +2,7 @@ // AUTO-GENERATED FILE, DO NOT MODIFY! // - +import 'dart:async'; import 'dart:convert'; import 'dart:typed_data'; diff --git a/samples/client/echo_api/dart/dio/built_value/test/additional_properties_class_test.dart b/samples/client/echo_api/dart/dio/built_value/test/additional_properties_class_test.dart index c07a9bc22ba0..40e022fed3e9 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/additional_properties_class_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/additional_properties_class_test.dart @@ -8,9 +8,14 @@ void main() { group(AdditionalPropertiesClass, () { // BuiltMap mapProperty - test('to test the property `mapProperty`', () async {}); + test('to test the property `mapProperty`', () async { + + }); // BuiltMap> mapOfMapProperty - test('to test the property `mapOfMapProperty`', () async {}); + test('to test the property `mapOfMapProperty`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/addressable_test.dart b/samples/client/echo_api/dart/dio/built_value/test/addressable_test.dart index 1bcecbfd9fd9..c4a77a1cf650 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/addressable_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/addressable_test.dart @@ -9,10 +9,15 @@ void main() { group(Addressable, () { // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/all_of_with_single_ref_test.dart b/samples/client/echo_api/dart/dio/built_value/test/all_of_with_single_ref_test.dart index c3c9e614338b..490f494682ae 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/all_of_with_single_ref_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/all_of_with_single_ref_test.dart @@ -8,9 +8,14 @@ void main() { group(AllOfWithSingleRef, () { // String username - test('to test the property `username`', () async {}); + test('to test the property `username`', () async { + + }); // SingleRefType singleRefType - test('to test the property `singleRefType`', () async {}); + test('to test the property `singleRefType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/animal_test.dart b/samples/client/echo_api/dart/dio/built_value/test/animal_test.dart index 27ac771d0488..0aa21d74dfcd 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/animal_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/animal_test.dart @@ -8,9 +8,14 @@ void main() { group(Animal, () { // String className - test('to test the property `className`', () async {}); + test('to test the property `className`', () async { + + }); // String color (default value: 'red') - test('to test the property `color`', () async {}); + test('to test the property `color`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/another_fake_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/another_fake_api_test.dart index 5b98fa2a4e0a..0757e851b3a6 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/another_fake_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/another_fake_api_test.dart @@ -1,6 +1,7 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for AnotherFakeApi void main() { final instance = Openapi().getAnotherFakeApi(); @@ -11,6 +12,9 @@ void main() { // To test special tags and operation ID starting with number // //Future call123testSpecialTags(ModelClient modelClient) async - test('test call123testSpecialTags', () async {}); + test('test call123testSpecialTags', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/api_response_test.dart b/samples/client/echo_api/dart/dio/built_value/test/api_response_test.dart index 4eff382b9c65..59c1e9c586a0 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/api_response_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/api_response_test.dart @@ -8,12 +8,19 @@ void main() { group(ApiResponse, () { // int code - test('to test the property `code`', () async {}); + test('to test the property `code`', () async { + + }); // String type - test('to test the property `type`', () async {}); + test('to test the property `type`', () async { + + }); // String message - test('to test the property `message`', () async {}); + test('to test the property `message`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/apple_all_of_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/apple_all_of_disc_test.dart index a60557855cf7..67dd9dde51f9 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/apple_all_of_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/apple_all_of_disc_test.dart @@ -8,9 +8,14 @@ void main() { group(AppleAllOfDisc, () { // int seeds - test('to test the property `seeds`', () async {}); + test('to test the property `seeds`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/apple_grandparent_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/apple_grandparent_disc_test.dart index 6d63b53809f9..85880e3d6b86 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/apple_grandparent_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/apple_grandparent_disc_test.dart @@ -8,9 +8,14 @@ void main() { group(AppleGrandparentDisc, () { // int seeds - test('to test the property `seeds`', () async {}); + test('to test the property `seeds`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/apple_one_of_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/apple_one_of_disc_test.dart index 17c2c40475ec..2ccf5b7eb6f8 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/apple_one_of_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/apple_one_of_disc_test.dart @@ -8,9 +8,14 @@ void main() { group(AppleOneOfDisc, () { // int seeds - test('to test the property `seeds`', () async {}); + test('to test the property `seeds`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/apple_req_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/apple_req_disc_test.dart index 725750c8a2cf..0ac1e13b40ed 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/apple_req_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/apple_req_disc_test.dart @@ -8,9 +8,14 @@ void main() { group(AppleReqDisc, () { // int seeds - test('to test the property `seeds`', () async {}); + test('to test the property `seeds`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/apple_test.dart b/samples/client/echo_api/dart/dio/built_value/test/apple_test.dart index 2c70979c9b51..22b482545d13 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/apple_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/apple_test.dart @@ -8,6 +8,9 @@ void main() { group(Apple, () { // String kind - test('to test the property `kind`', () async {}); + test('to test the property `kind`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/apple_variant1_test.dart b/samples/client/echo_api/dart/dio/built_value/test/apple_variant1_test.dart index bac42d3d78cb..0151ca4c20a5 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/apple_variant1_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/apple_variant1_test.dart @@ -8,6 +8,9 @@ void main() { group(AppleVariant1, () { // String kind - test('to test the property `kind`', () async {}); + test('to test the property `kind`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/array_of_array_of_number_only_test.dart b/samples/client/echo_api/dart/dio/built_value/test/array_of_array_of_number_only_test.dart index 1d1a4465426a..02602681bdbe 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/array_of_array_of_number_only_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/array_of_array_of_number_only_test.dart @@ -8,6 +8,9 @@ void main() { group(ArrayOfArrayOfNumberOnly, () { // BuiltList> arrayArrayNumber - test('to test the property `arrayArrayNumber`', () async {}); + test('to test the property `arrayArrayNumber`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/array_of_number_only_test.dart b/samples/client/echo_api/dart/dio/built_value/test/array_of_number_only_test.dart index 491cea2fe307..edb8aa49e919 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/array_of_number_only_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/array_of_number_only_test.dart @@ -8,6 +8,9 @@ void main() { group(ArrayOfNumberOnly, () { // BuiltList arrayNumber - test('to test the property `arrayNumber`', () async {}); + test('to test the property `arrayNumber`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/array_test_test.dart b/samples/client/echo_api/dart/dio/built_value/test/array_test_test.dart index e33be3375c3b..2a1a3f6d05c2 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/array_test_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/array_test_test.dart @@ -8,12 +8,19 @@ void main() { group(ArrayTest, () { // BuiltList arrayOfString - test('to test the property `arrayOfString`', () async {}); + test('to test the property `arrayOfString`', () async { + + }); // BuiltList> arrayArrayOfInteger - test('to test the property `arrayArrayOfInteger`', () async {}); + test('to test the property `arrayArrayOfInteger`', () async { + + }); // BuiltList> arrayArrayOfModel - test('to test the property `arrayArrayOfModel`', () async {}); + test('to test the property `arrayArrayOfModel`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/banana_all_of_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/banana_all_of_disc_test.dart index cf66d3a165f9..76cca6a7f004 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/banana_all_of_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/banana_all_of_disc_test.dart @@ -8,9 +8,14 @@ void main() { group(BananaAllOfDisc, () { // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/banana_grandparent_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/banana_grandparent_disc_test.dart index 2f9969c1733a..1e661c1bd49f 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/banana_grandparent_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/banana_grandparent_disc_test.dart @@ -8,9 +8,14 @@ void main() { group(BananaGrandparentDisc, () { // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/banana_one_of_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/banana_one_of_disc_test.dart index 973707c9dd6a..486de1e22edb 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/banana_one_of_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/banana_one_of_disc_test.dart @@ -8,9 +8,14 @@ void main() { group(BananaOneOfDisc, () { // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/banana_req_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/banana_req_disc_test.dart index 70e07cc4b1a1..4ab55caa6802 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/banana_req_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/banana_req_disc_test.dart @@ -8,9 +8,14 @@ void main() { group(BananaReqDisc, () { // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/banana_test.dart b/samples/client/echo_api/dart/dio/built_value/test/banana_test.dart index 0678b7d72e9d..4f894091034a 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/banana_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/banana_test.dart @@ -8,6 +8,9 @@ void main() { group(Banana, () { // num count - test('to test the property `count`', () async {}); + test('to test the property `count`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/bar_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/bar_api_test.dart index b85771fca95b..58c9cede8213 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/bar_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/bar_api_test.dart @@ -1,6 +1,7 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for BarApi void main() { final instance = Openapi().getBarApi(); @@ -9,6 +10,9 @@ void main() { // Create a Bar // //Future createBar(BarCreate barCreate) async - test('test createBar', () async {}); + test('test createBar', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/bar_create_test.dart b/samples/client/echo_api/dart/dio/built_value/test/bar_create_test.dart index 4a3ea406fdb7..a33ea27b37e4 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/bar_create_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/bar_create_test.dart @@ -8,32 +8,49 @@ void main() { group(BarCreate, () { // String barPropA - test('to test the property `barPropA`', () async {}); + test('to test the property `barPropA`', () async { + + }); // String fooPropB - test('to test the property `fooPropB`', () async {}); + test('to test the property `fooPropB`', () async { + + }); // FooRefOrValue foo - test('to test the property `foo`', () async {}); + test('to test the property `foo`', () async { + + }); // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/bar_ref_or_value_test.dart b/samples/client/echo_api/dart/dio/built_value/test/bar_ref_or_value_test.dart index b8890050e0c5..b87ff202d239 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/bar_ref_or_value_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/bar_ref_or_value_test.dart @@ -9,22 +9,33 @@ void main() { group(BarRefOrValue, () { // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/bar_ref_test.dart b/samples/client/echo_api/dart/dio/built_value/test/bar_ref_test.dart index acd5cb762a2f..9487e640203f 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/bar_ref_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/bar_ref_test.dart @@ -9,22 +9,33 @@ void main() { group(BarRef, () { // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/bar_test.dart b/samples/client/echo_api/dart/dio/built_value/test/bar_test.dart index 8d6eb79ac955..5c2c67f5ae76 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/bar_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/bar_test.dart @@ -8,31 +8,48 @@ void main() { group(Bar, () { // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // String barPropA - test('to test the property `barPropA`', () async {}); + test('to test the property `barPropA`', () async { + + }); // String fooPropB - test('to test the property `fooPropB`', () async {}); + test('to test the property `fooPropB`', () async { + + }); // FooRefOrValue foo - test('to test the property `foo`', () async {}); + test('to test the property `foo`', () async { + + }); // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/capitalization_test.dart b/samples/client/echo_api/dart/dio/built_value/test/capitalization_test.dart index 585d6d62657e..151fda310a24 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/capitalization_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/capitalization_test.dart @@ -8,22 +8,35 @@ void main() { group(Capitalization, () { // String smallCamel - test('to test the property `smallCamel`', () async {}); + test('to test the property `smallCamel`', () async { + + }); // String capitalCamel - test('to test the property `capitalCamel`', () async {}); + test('to test the property `capitalCamel`', () async { + + }); // String smallSnake - test('to test the property `smallSnake`', () async {}); + test('to test the property `smallSnake`', () async { + + }); // String capitalSnake - test('to test the property `capitalSnake`', () async {}); + test('to test the property `capitalSnake`', () async { + + }); // String sCAETHFlowPoints - test('to test the property `sCAETHFlowPoints`', () async {}); + test('to test the property `sCAETHFlowPoints`', () async { + + }); - // Name of the pet + // Name of the pet // String ATT_NAME - test('to test the property `ATT_NAME`', () async {}); + test('to test the property `ATT_NAME`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/cat_test.dart b/samples/client/echo_api/dart/dio/built_value/test/cat_test.dart index 37ddce486e87..898a27283f66 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/cat_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/cat_test.dart @@ -8,12 +8,19 @@ void main() { group(Cat, () { // String className - test('to test the property `className`', () async {}); + test('to test the property `className`', () async { + + }); // String color (default value: 'red') - test('to test the property `color`', () async {}); + test('to test the property `color`', () async { + + }); // bool declawed - test('to test the property `declawed`', () async {}); + test('to test the property `declawed`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/category_test.dart b/samples/client/echo_api/dart/dio/built_value/test/category_test.dart index 33e7f0eb3817..126f133c887f 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/category_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/category_test.dart @@ -8,9 +8,14 @@ void main() { group(Category, () { // int id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // String name (default value: 'default-name') - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/class_model_test.dart b/samples/client/echo_api/dart/dio/built_value/test/class_model_test.dart index 61ff5834b458..14bed24b5a34 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/class_model_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/class_model_test.dart @@ -8,6 +8,9 @@ void main() { group(ClassModel, () { // String classField - test('to test the property `classField`', () async {}); + test('to test the property `classField`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_missing_from_properties_test.dart b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_missing_from_properties_test.dart index df4bfa1fde89..bea72d8d3874 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_missing_from_properties_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_missing_from_properties_test.dart @@ -8,6 +8,9 @@ void main() { group(ComposedDiscMissingFromProperties, () { // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_correct_test.dart b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_correct_test.dart index 07e3393ce709..cb269e29feda 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_correct_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_correct_test.dart @@ -8,6 +8,9 @@ void main() { group(ComposedDiscOptionalTypeCorrect, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_inconsistent_test.dart b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_inconsistent_test.dart index e7dbb5928f9a..47e6c8eb1b96 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_inconsistent_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_inconsistent_test.dart @@ -8,6 +8,9 @@ void main() { group(ComposedDiscOptionalTypeInconsistent, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_incorrect_test.dart b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_incorrect_test.dart index 0881c1656115..6a6e5fe5856d 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_incorrect_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_optional_type_incorrect_test.dart @@ -8,6 +8,9 @@ void main() { group(ComposedDiscOptionalTypeIncorrect, () { // int fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_required_inconsistent_test.dart b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_required_inconsistent_test.dart index 66a290d8945e..78826cc59f3d 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_required_inconsistent_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_required_inconsistent_test.dart @@ -8,6 +8,9 @@ void main() { group(ComposedDiscRequiredInconsistent, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_type_inconsistent_test.dart b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_type_inconsistent_test.dart index b03c47bad3ea..63f54c3f2f3e 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_type_inconsistent_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_type_inconsistent_test.dart @@ -8,6 +8,9 @@ void main() { group(ComposedDiscTypeInconsistent, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_type_incorrect_test.dart b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_type_incorrect_test.dart index ce7b12f0d535..f173a14b00f6 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/composed_disc_type_incorrect_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/composed_disc_type_incorrect_test.dart @@ -8,6 +8,9 @@ void main() { group(ComposedDiscTypeIncorrect, () { // int fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/default_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/default_api_test.dart index 3330a732290e..d6284b93034d 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/default_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/default_api_test.dart @@ -1,27 +1,41 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for DefaultApi void main() { final instance = Openapi().getDefaultApi(); group(DefaultApi, () { //Future fooBasicGet() async - test('test fooBasicGet', () async {}); + test('test fooBasicGet', () async { + + }); //Future list() async - test('test list', () async {}); + test('test list', () async { + + }); //Future oneofGet() async - test('test oneofGet', () async {}); + test('test oneofGet', () async { + + }); //Future test({ JsonObject body }) async - test('test test', () async {}); + test('test test', () async { + + }); //Future variant1Get() async - test('test variant1Get', () async {}); + test('test variant1Get', () async { + + }); //Future variant2Get() async - test('test variant2Get', () async {}); + test('test variant2Get', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/deprecated_object_test.dart b/samples/client/echo_api/dart/dio/built_value/test/deprecated_object_test.dart index a921940cfbba..3bdc8aea4c5d 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/deprecated_object_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/deprecated_object_test.dart @@ -8,6 +8,9 @@ void main() { group(DeprecatedObject, () { // String name - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/disc_missing_from_properties_test.dart b/samples/client/echo_api/dart/dio/built_value/test/disc_missing_from_properties_test.dart index ba42a35b5787..bb18991d6968 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/disc_missing_from_properties_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/disc_missing_from_properties_test.dart @@ -8,6 +8,9 @@ void main() { group(DiscMissingFromProperties, () { // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/disc_optional_type_correct_test.dart b/samples/client/echo_api/dart/dio/built_value/test/disc_optional_type_correct_test.dart index bb317950a76c..44b2c350eb91 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/disc_optional_type_correct_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/disc_optional_type_correct_test.dart @@ -8,6 +8,9 @@ void main() { group(DiscOptionalTypeCorrect, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/disc_optional_type_incorrect_test.dart b/samples/client/echo_api/dart/dio/built_value/test/disc_optional_type_incorrect_test.dart index 99434f6da66e..6e73d4e6bb40 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/disc_optional_type_incorrect_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/disc_optional_type_incorrect_test.dart @@ -8,6 +8,9 @@ void main() { group(DiscOptionalTypeIncorrect, () { // int fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/disc_type_incorrect_test.dart b/samples/client/echo_api/dart/dio/built_value/test/disc_type_incorrect_test.dart index c2a907a4a142..d5ab15bcff73 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/disc_type_incorrect_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/disc_type_incorrect_test.dart @@ -8,6 +8,9 @@ void main() { group(DiscTypeIncorrect, () { // int fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/dog_test.dart b/samples/client/echo_api/dart/dio/built_value/test/dog_test.dart index 473aa680ac0c..f8d6c721171a 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/dog_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/dog_test.dart @@ -8,12 +8,19 @@ void main() { group(Dog, () { // String className - test('to test the property `className`', () async {}); + test('to test the property `className`', () async { + + }); // String color (default value: 'red') - test('to test the property `color`', () async {}); + test('to test the property `color`', () async { + + }); // String breed - test('to test the property `breed`', () async {}); + test('to test the property `breed`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/entity_ref_test.dart b/samples/client/echo_api/dart/dio/built_value/test/entity_ref_test.dart index 70d28bc3226f..7610daf76a74 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/entity_ref_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/entity_ref_test.dart @@ -9,30 +9,45 @@ void main() { group(EntityRef, () { // Name of the related entity. // String name - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); // The actual type of the target instance when needed for disambiguation. // String atReferredType - test('to test the property `atReferredType`', () async {}); + test('to test the property `atReferredType`', () async { + + }); // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/entity_test.dart b/samples/client/echo_api/dart/dio/built_value/test/entity_test.dart index d8c1fddd1705..6d6c818f265b 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/entity_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/entity_test.dart @@ -9,22 +9,33 @@ void main() { group(Entity, () { // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/enum_arrays_test.dart b/samples/client/echo_api/dart/dio/built_value/test/enum_arrays_test.dart index 3ec881278f35..509ceb91e36e 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/enum_arrays_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/enum_arrays_test.dart @@ -8,9 +8,14 @@ void main() { group(EnumArrays, () { // String justSymbol - test('to test the property `justSymbol`', () async {}); + test('to test the property `justSymbol`', () async { + + }); // BuiltList arrayEnum - test('to test the property `arrayEnum`', () async {}); + test('to test the property `arrayEnum`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/enum_test_test.dart b/samples/client/echo_api/dart/dio/built_value/test/enum_test_test.dart index 115876ca53aa..90598431361b 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/enum_test_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/enum_test_test.dart @@ -8,27 +8,44 @@ void main() { group(EnumTest, () { // String enumString - test('to test the property `enumString`', () async {}); + test('to test the property `enumString`', () async { + + }); // String enumStringRequired - test('to test the property `enumStringRequired`', () async {}); + test('to test the property `enumStringRequired`', () async { + + }); // int enumInteger - test('to test the property `enumInteger`', () async {}); + test('to test the property `enumInteger`', () async { + + }); // double enumNumber - test('to test the property `enumNumber`', () async {}); + test('to test the property `enumNumber`', () async { + + }); // OuterEnum outerEnum - test('to test the property `outerEnum`', () async {}); + test('to test the property `outerEnum`', () async { + + }); // OuterEnumInteger outerEnumInteger - test('to test the property `outerEnumInteger`', () async {}); + test('to test the property `outerEnumInteger`', () async { + + }); // OuterEnumDefaultValue outerEnumDefaultValue - test('to test the property `outerEnumDefaultValue`', () async {}); + test('to test the property `outerEnumDefaultValue`', () async { + + }); // OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue - test('to test the property `outerEnumIntegerDefaultValue`', () async {}); + test('to test the property `outerEnumIntegerDefaultValue`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/extensible_test.dart b/samples/client/echo_api/dart/dio/built_value/test/extensible_test.dart index 2c9d0014abe0..34ef96c21cd3 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/extensible_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/extensible_test.dart @@ -9,14 +9,21 @@ void main() { group(Extensible, () { // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fake_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fake_api_test.dart index 03e275390fca..61d46be0cd9f 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fake_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fake_api_test.dart @@ -1,6 +1,7 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for FakeApi void main() { final instance = Openapi().getFakeApi(); @@ -9,96 +10,131 @@ void main() { // Health check endpoint // //Future fakeHealthGet() async - test('test fakeHealthGet', () async {}); + test('test fakeHealthGet', () async { + + }); // test http signature authentication // //Future fakeHttpSignatureTest(Pet pet, { String query1, String header1 }) async - test('test fakeHttpSignatureTest', () async {}); + test('test fakeHttpSignatureTest', () async { + + }); // Test serialization of outer boolean types // //Future fakeOuterBooleanSerialize({ bool body }) async - test('test fakeOuterBooleanSerialize', () async {}); + test('test fakeOuterBooleanSerialize', () async { + + }); // Test serialization of object with outer number type // //Future fakeOuterCompositeSerialize({ OuterComposite outerComposite }) async - test('test fakeOuterCompositeSerialize', () async {}); + test('test fakeOuterCompositeSerialize', () async { + + }); // Test serialization of outer number types // //Future fakeOuterNumberSerialize({ num body }) async - test('test fakeOuterNumberSerialize', () async {}); + test('test fakeOuterNumberSerialize', () async { + + }); // Test serialization of outer string types // //Future fakeOuterStringSerialize({ String body }) async - test('test fakeOuterStringSerialize', () async {}); + test('test fakeOuterStringSerialize', () async { + + }); // Test serialization of enum (int) properties with examples // //Future fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) async - test('test fakePropertyEnumIntegerSerialize', () async {}); + test('test fakePropertyEnumIntegerSerialize', () async { + + }); // For this test, the body has to be a binary file. // //Future testBodyWithBinary(MultipartFile body) async - test('test testBodyWithBinary', () async {}); + test('test testBodyWithBinary', () async { + + }); // For this test, the body for this request must reference a schema named `File`. // //Future testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) async - test('test testBodyWithFileSchema', () async {}); + test('test testBodyWithFileSchema', () async { + + }); //Future testBodyWithQueryParams(String query, User user) async - test('test testBodyWithQueryParams', () async {}); + test('test testBodyWithQueryParams', () async { + + }); // To test \"client\" model // // To test \"client\" model // //Future testClientModel(ModelClient modelClient) async - test('test testClientModel', () async {}); + test('test testClientModel', () async { + + }); - // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 // - // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + // Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 // //Future testEndpointParameters(num number, double double_, String patternWithoutDelimiter, String byte, { int integer, int int32, int int64, double float, String string, Uint8List binary, Date date, DateTime dateTime, String password, String callback }) async - test('test testEndpointParameters', () async {}); + test('test testEndpointParameters', () async { + + }); // To test enum parameters // // To test enum parameters // //Future testEnumParameters({ BuiltList enumHeaderStringArray, String enumHeaderString, BuiltList enumQueryStringArray, String enumQueryString, int enumQueryInteger, double enumQueryDouble, BuiltList enumQueryModelArray, BuiltList enumFormStringArray, String enumFormString }) async - test('test testEnumParameters', () async {}); + test('test testEnumParameters', () async { + + }); // Fake endpoint to test group parameters (optional) // // Fake endpoint to test group parameters (optional) // //Future testGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, int requiredInt64Group, { int stringGroup, bool booleanGroup, int int64Group }) async - test('test testGroupParameters', () async {}); + test('test testGroupParameters', () async { + + }); // test inline additionalProperties // - // + // // //Future testInlineAdditionalProperties(BuiltMap requestBody) async - test('test testInlineAdditionalProperties', () async {}); + test('test testInlineAdditionalProperties', () async { + + }); // test json serialization of form data // - // + // // //Future testJsonFormData(String param, String param2) async - test('test testJsonFormData', () async {}); + test('test testJsonFormData', () async { + + }); // To test the collection format in query parameters // //Future testQueryParameterCollectionFormat(BuiltList pipe, BuiltList ioutil, BuiltList http, BuiltList url, BuiltList context, String allowEmpty, { BuiltMap language }) async - test('test testQueryParameterCollectionFormat', () async {}); + test('test testQueryParameterCollectionFormat', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fake_classname_tags123_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fake_classname_tags123_api_test.dart index e2b2e38526dd..d07b8ee850bf 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fake_classname_tags123_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fake_classname_tags123_api_test.dart @@ -1,6 +1,7 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for FakeClassnameTags123Api void main() { final instance = Openapi().getFakeClassnameTags123Api(); @@ -11,6 +12,9 @@ void main() { // To test class name in snake case // //Future testClassname(ModelClient modelClient) async - test('test testClassname', () async {}); + test('test testClassname', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/file_schema_test_class_test.dart b/samples/client/echo_api/dart/dio/built_value/test/file_schema_test_class_test.dart index 1264053bcb2d..09fd67587633 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/file_schema_test_class_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/file_schema_test_class_test.dart @@ -8,9 +8,14 @@ void main() { group(FileSchemaTestClass, () { // ModelFile file - test('to test the property `file`', () async {}); + test('to test the property `file`', () async { + + }); // BuiltList files - test('to test the property `files`', () async {}); + test('to test the property `files`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/foo_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/foo_api_test.dart index 66daa2bdb5b2..d10dabe192bd 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/foo_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/foo_api_test.dart @@ -1,6 +1,7 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for FooApi void main() { final instance = Openapi().getFooApi(); @@ -9,11 +10,16 @@ void main() { // Create a Foo // //Future createFoo({ Foo foo }) async - test('test createFoo', () async {}); + test('test createFoo', () async { + + }); // GET all Foos // //Future> getAllFoos() async - test('test getAllFoos', () async {}); + test('test getAllFoos', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/foo_basic_get_default_response_test.dart b/samples/client/echo_api/dart/dio/built_value/test/foo_basic_get_default_response_test.dart index 4efb1929b0e8..2355d28d6e9e 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/foo_basic_get_default_response_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/foo_basic_get_default_response_test.dart @@ -8,6 +8,9 @@ void main() { group(FooBasicGetDefaultResponse, () { // Foo string - test('to test the property `string`', () async {}); + test('to test the property `string`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/foo_ref_or_value_test.dart b/samples/client/echo_api/dart/dio/built_value/test/foo_ref_or_value_test.dart index b167f0627ffd..fd0493074f0a 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/foo_ref_or_value_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/foo_ref_or_value_test.dart @@ -9,22 +9,33 @@ void main() { group(FooRefOrValue, () { // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/foo_ref_test.dart b/samples/client/echo_api/dart/dio/built_value/test/foo_ref_test.dart index 7eb4462f80f7..b54542e7773b 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/foo_ref_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/foo_ref_test.dart @@ -8,26 +8,39 @@ void main() { group(FooRef, () { // String foorefPropA - test('to test the property `foorefPropA`', () async {}); + test('to test the property `foorefPropA`', () async { + + }); // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/foo_test.dart b/samples/client/echo_api/dart/dio/built_value/test/foo_test.dart index 5bd90ef32ed2..d6888100f6bd 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/foo_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/foo_test.dart @@ -8,29 +8,44 @@ void main() { group(Foo, () { // String fooPropA - test('to test the property `fooPropA`', () async {}); + test('to test the property `fooPropA`', () async { + + }); // String fooPropB - test('to test the property `fooPropB`', () async {}); + test('to test the property `fooPropB`', () async { + + }); // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/format_test_test.dart b/samples/client/echo_api/dart/dio/built_value/test/format_test_test.dart index 672761823d83..1aae302fe6e6 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/format_test_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/format_test_test.dart @@ -8,53 +8,86 @@ void main() { group(FormatTest, () { // int integer - test('to test the property `integer`', () async {}); + test('to test the property `integer`', () async { + + }); // int int32 - test('to test the property `int32`', () async {}); + test('to test the property `int32`', () async { + + }); // int int64 - test('to test the property `int64`', () async {}); + test('to test the property `int64`', () async { + + }); // num number - test('to test the property `number`', () async {}); + test('to test the property `number`', () async { + + }); // double float - test('to test the property `float`', () async {}); + test('to test the property `float`', () async { + + }); // double double_ - test('to test the property `double_`', () async {}); + test('to test the property `double_`', () async { + + }); // double decimal - test('to test the property `decimal`', () async {}); + test('to test the property `decimal`', () async { + + }); // String string - test('to test the property `string`', () async {}); + test('to test the property `string`', () async { + + }); // String byte - test('to test the property `byte`', () async {}); + test('to test the property `byte`', () async { + + }); // Uint8List binary - test('to test the property `binary`', () async {}); + test('to test the property `binary`', () async { + + }); // Date date - test('to test the property `date`', () async {}); + test('to test the property `date`', () async { + + }); // DateTime dateTime - test('to test the property `dateTime`', () async {}); + test('to test the property `dateTime`', () async { + + }); // String uuid - test('to test the property `uuid`', () async {}); + test('to test the property `uuid`', () async { + + }); // String password - test('to test the property `password`', () async {}); + test('to test the property `password`', () async { + + }); // A string that is a 10 digit number. Can have leading zeros. // String patternWithDigits - test('to test the property `patternWithDigits`', () async {}); + test('to test the property `patternWithDigits`', () async { + + }); // A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. // String patternWithDigitsAndDelimiter - test('to test the property `patternWithDigitsAndDelimiter`', () async {}); + test('to test the property `patternWithDigitsAndDelimiter`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_all_of_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_all_of_disc_test.dart index f819488cacd7..0c5a0c94b5a2 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_all_of_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_all_of_disc_test.dart @@ -8,6 +8,9 @@ void main() { group(FruitAllOfDisc, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_any_of_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_any_of_disc_test.dart index 083549013a3a..d681791cf233 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_any_of_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_any_of_disc_test.dart @@ -8,6 +8,9 @@ void main() { group(FruitAnyOfDisc, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_grandparent_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_grandparent_disc_test.dart index e2b0902cdf1e..2c846c4f0fbf 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_grandparent_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_grandparent_disc_test.dart @@ -8,6 +8,9 @@ void main() { group(FruitGrandparentDisc, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_one_of1_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_one_of1_test.dart index 9f76c006f85b..89e960a80e12 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_one_of1_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_one_of1_test.dart @@ -8,9 +8,14 @@ void main() { group(FruitInlineDiscOneOf1, () { // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_one_of_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_one_of_test.dart index 867200109263..ecb67890a553 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_one_of_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_one_of_test.dart @@ -8,9 +8,14 @@ void main() { group(FruitInlineDiscOneOf, () { // int seeds - test('to test the property `seeds`', () async {}); + test('to test the property `seeds`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_test.dart index 289554d087d9..d30e8a372635 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_disc_test.dart @@ -8,12 +8,19 @@ void main() { group(FruitInlineDisc, () { // int seeds - test('to test the property `seeds`', () async {}); + test('to test the property `seeds`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of1_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of1_test.dart index 8698c0c9b737..8c68ea279329 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of1_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of1_test.dart @@ -8,9 +8,14 @@ void main() { group(FruitInlineInlineDiscOneOf1, () { // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of_one_of_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of_one_of_test.dart index 0db995287f6c..763900f0b417 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of_one_of_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of_one_of_test.dart @@ -8,6 +8,9 @@ void main() { group(FruitInlineInlineDiscOneOfOneOf, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of_test.dart index 0871a31ca2d1..481e0ef28d3b 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_one_of_test.dart @@ -8,9 +8,14 @@ void main() { group(FruitInlineInlineDiscOneOf, () { // int seeds - test('to test the property `seeds`', () async {}); + test('to test the property `seeds`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_test.dart index 01dc0d7ba46b..c8c31be34fff 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_inline_inline_disc_test.dart @@ -8,6 +8,9 @@ void main() { group(FruitInlineInlineDisc, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_one_of_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_one_of_disc_test.dart index 809de19ee018..ea556220176d 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_one_of_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_one_of_disc_test.dart @@ -8,6 +8,9 @@ void main() { group(FruitOneOfDisc, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_req_disc_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_req_disc_test.dart index b35113f22b3b..800d81b06bdf 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_req_disc_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_req_disc_test.dart @@ -8,12 +8,19 @@ void main() { group(FruitReqDisc, () { // int seeds - test('to test the property `seeds`', () async {}); + test('to test the property `seeds`', () async { + + }); // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); // int length - test('to test the property `length`', () async {}); + test('to test the property `length`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_test.dart index dbc551de8fab..754264134074 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_test.dart @@ -8,12 +8,19 @@ void main() { group(Fruit, () { // String color - test('to test the property `color`', () async {}); + test('to test the property `color`', () async { + + }); // String kind - test('to test the property `kind`', () async {}); + test('to test the property `kind`', () async { + + }); // num count - test('to test the property `count`', () async {}); + test('to test the property `count`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_type_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_type_test.dart index 43aa0db383b2..4b6b0c7aaf51 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_type_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_type_test.dart @@ -8,6 +8,9 @@ void main() { group(FruitType, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/fruit_variant1_test.dart b/samples/client/echo_api/dart/dio/built_value/test/fruit_variant1_test.dart index 63fa22d46499..f96a78ae85b7 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/fruit_variant1_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/fruit_variant1_test.dart @@ -8,9 +8,14 @@ void main() { group(FruitVariant1, () { // String color - test('to test the property `color`', () async {}); + test('to test the property `color`', () async { + + }); // String kind - test('to test the property `kind`', () async {}); + test('to test the property `kind`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/giga_one_of_test.dart b/samples/client/echo_api/dart/dio/built_value/test/giga_one_of_test.dart index 04b8c85290ee..c29bd533837b 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/giga_one_of_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/giga_one_of_test.dart @@ -8,6 +8,9 @@ void main() { group(GigaOneOf, () { // String name - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/grape_variant1_test.dart b/samples/client/echo_api/dart/dio/built_value/test/grape_variant1_test.dart index 87696795e46b..952375bc2b0f 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/grape_variant1_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/grape_variant1_test.dart @@ -8,6 +8,9 @@ void main() { group(GrapeVariant1, () { // String color - test('to test the property `color`', () async {}); + test('to test the property `color`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/has_only_read_only_test.dart b/samples/client/echo_api/dart/dio/built_value/test/has_only_read_only_test.dart index c0db81ee6dfc..fe29de48575c 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/has_only_read_only_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/has_only_read_only_test.dart @@ -8,9 +8,14 @@ void main() { group(HasOnlyReadOnly, () { // String bar - test('to test the property `bar`', () async {}); + test('to test the property `bar`', () async { + + }); // String foo - test('to test the property `foo`', () async {}); + test('to test the property `foo`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/health_check_result_test.dart b/samples/client/echo_api/dart/dio/built_value/test/health_check_result_test.dart index 09374fc01b6c..1d59d8a8d112 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/health_check_result_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/health_check_result_test.dart @@ -8,6 +8,9 @@ void main() { group(HealthCheckResult, () { // String nullableMessage - test('to test the property `nullableMessage`', () async {}); + test('to test the property `nullableMessage`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/map_test_test.dart b/samples/client/echo_api/dart/dio/built_value/test/map_test_test.dart index 855a2a7075bf..2fb8db875105 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/map_test_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/map_test_test.dart @@ -8,15 +8,24 @@ void main() { group(MapTest, () { // BuiltMap> mapMapOfString - test('to test the property `mapMapOfString`', () async {}); + test('to test the property `mapMapOfString`', () async { + + }); // BuiltMap mapOfEnumString - test('to test the property `mapOfEnumString`', () async {}); + test('to test the property `mapOfEnumString`', () async { + + }); // BuiltMap directMap - test('to test the property `directMap`', () async {}); + test('to test the property `directMap`', () async { + + }); // BuiltMap indirectMap - test('to test the property `indirectMap`', () async {}); + test('to test the property `indirectMap`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/mixed_properties_and_additional_properties_class_test.dart b/samples/client/echo_api/dart/dio/built_value/test/mixed_properties_and_additional_properties_class_test.dart index 25f4383f9a2f..dafafae5b472 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/mixed_properties_and_additional_properties_class_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/mixed_properties_and_additional_properties_class_test.dart @@ -8,12 +8,19 @@ void main() { group(MixedPropertiesAndAdditionalPropertiesClass, () { // String uuid - test('to test the property `uuid`', () async {}); + test('to test the property `uuid`', () async { + + }); // DateTime dateTime - test('to test the property `dateTime`', () async {}); + test('to test the property `dateTime`', () async { + + }); // BuiltMap map - test('to test the property `map`', () async {}); + test('to test the property `map`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/model200_response_test.dart b/samples/client/echo_api/dart/dio/built_value/test/model200_response_test.dart index 75e433c1960e..d7d724ce997e 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/model200_response_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/model200_response_test.dart @@ -8,9 +8,14 @@ void main() { group(Model200Response, () { // int name - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); // String classField - test('to test the property `classField`', () async {}); + test('to test the property `classField`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/model_client_test.dart b/samples/client/echo_api/dart/dio/built_value/test/model_client_test.dart index 2e99f627104a..72ea87cc0a64 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/model_client_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/model_client_test.dart @@ -8,6 +8,9 @@ void main() { group(ModelClient, () { // String client - test('to test the property `client`', () async {}); + test('to test the property `client`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/model_enum_class_test.dart b/samples/client/echo_api/dart/dio/built_value/test/model_enum_class_test.dart index fa31f816801c..03e5855bf004 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/model_enum_class_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/model_enum_class_test.dart @@ -3,5 +3,7 @@ import 'package:openapi/openapi.dart'; // tests for ModelEnumClass void main() { - group(ModelEnumClass, () {}); + + group(ModelEnumClass, () { + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/model_file_test.dart b/samples/client/echo_api/dart/dio/built_value/test/model_file_test.dart index 1f5e162d4d53..bc7069a89bd4 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/model_file_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/model_file_test.dart @@ -9,6 +9,9 @@ void main() { group(ModelFile, () { // Test capitalization // String sourceURI - test('to test the property `sourceURI`', () async {}); + test('to test the property `sourceURI`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/model_list_test.dart b/samples/client/echo_api/dart/dio/built_value/test/model_list_test.dart index c8b1ec50b4f2..1e5f472f3d61 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/model_list_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/model_list_test.dart @@ -8,6 +8,9 @@ void main() { group(ModelList, () { // String n123list - test('to test the property `n123list`', () async {}); + test('to test the property `n123list`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/model_return_test.dart b/samples/client/echo_api/dart/dio/built_value/test/model_return_test.dart index cae8e13559e6..45d6463bcde7 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/model_return_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/model_return_test.dart @@ -8,6 +8,9 @@ void main() { group(ModelReturn, () { // int return_ - test('to test the property `return_`', () async {}); + test('to test the property `return_`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/name_test.dart b/samples/client/echo_api/dart/dio/built_value/test/name_test.dart index 3dae7f131506..455d8a0b9bad 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/name_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/name_test.dart @@ -8,15 +8,24 @@ void main() { group(Name, () { // int name - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); // int snakeCase - test('to test the property `snakeCase`', () async {}); + test('to test the property `snakeCase`', () async { + + }); // String property - test('to test the property `property`', () async {}); + test('to test the property `property`', () async { + + }); // int n123number - test('to test the property `n123number`', () async {}); + test('to test the property `n123number`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/nullable_class_test.dart b/samples/client/echo_api/dart/dio/built_value/test/nullable_class_test.dart index 2bedc2c5d07f..e8bbd567bb14 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/nullable_class_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/nullable_class_test.dart @@ -8,39 +8,64 @@ void main() { group(NullableClass, () { // int integerProp - test('to test the property `integerProp`', () async {}); + test('to test the property `integerProp`', () async { + + }); // num numberProp - test('to test the property `numberProp`', () async {}); + test('to test the property `numberProp`', () async { + + }); // bool booleanProp - test('to test the property `booleanProp`', () async {}); + test('to test the property `booleanProp`', () async { + + }); // String stringProp - test('to test the property `stringProp`', () async {}); + test('to test the property `stringProp`', () async { + + }); // Date dateProp - test('to test the property `dateProp`', () async {}); + test('to test the property `dateProp`', () async { + + }); // DateTime datetimeProp - test('to test the property `datetimeProp`', () async {}); + test('to test the property `datetimeProp`', () async { + + }); // BuiltList arrayNullableProp - test('to test the property `arrayNullableProp`', () async {}); + test('to test the property `arrayNullableProp`', () async { + + }); // BuiltList arrayAndItemsNullableProp - test('to test the property `arrayAndItemsNullableProp`', () async {}); + test('to test the property `arrayAndItemsNullableProp`', () async { + + }); // BuiltList arrayItemsNullable - test('to test the property `arrayItemsNullable`', () async {}); + test('to test the property `arrayItemsNullable`', () async { + + }); // BuiltMap objectNullableProp - test('to test the property `objectNullableProp`', () async {}); + test('to test the property `objectNullableProp`', () async { + + }); // BuiltMap objectAndItemsNullableProp - test('to test the property `objectAndItemsNullableProp`', () async {}); + test('to test the property `objectAndItemsNullableProp`', () async { + + }); // BuiltMap objectItemsNullable - test('to test the property `objectItemsNullable`', () async {}); + test('to test the property `objectItemsNullable`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/number_only_test.dart b/samples/client/echo_api/dart/dio/built_value/test/number_only_test.dart index 51c99d0940ae..a3144be404d4 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/number_only_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/number_only_test.dart @@ -8,6 +8,9 @@ void main() { group(NumberOnly, () { // num justNumber - test('to test the property `justNumber`', () async {}); + test('to test the property `justNumber`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/object_with_deprecated_fields_test.dart b/samples/client/echo_api/dart/dio/built_value/test/object_with_deprecated_fields_test.dart index 8bc4de110c80..d22575d850f0 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/object_with_deprecated_fields_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/object_with_deprecated_fields_test.dart @@ -8,15 +8,24 @@ void main() { group(ObjectWithDeprecatedFields, () { // String uuid - test('to test the property `uuid`', () async {}); + test('to test the property `uuid`', () async { + + }); // num id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // DeprecatedObject deprecatedRef - test('to test the property `deprecatedRef`', () async {}); + test('to test the property `deprecatedRef`', () async { + + }); // BuiltList bars - test('to test the property `bars`', () async {}); + test('to test the property `bars`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/one_of_primitive_child_test.dart b/samples/client/echo_api/dart/dio/built_value/test/one_of_primitive_child_test.dart index e6a050464f76..c398b53088f0 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/one_of_primitive_child_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/one_of_primitive_child_test.dart @@ -8,6 +8,9 @@ void main() { group(OneOfPrimitiveChild, () { // String name - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/order_test.dart b/samples/client/echo_api/dart/dio/built_value/test/order_test.dart index b1e140131007..2737c4bb6d6b 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/order_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/order_test.dart @@ -8,22 +8,35 @@ void main() { group(Order, () { // int id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // int petId - test('to test the property `petId`', () async {}); + test('to test the property `petId`', () async { + + }); // int quantity - test('to test the property `quantity`', () async {}); + test('to test the property `quantity`', () async { + + }); // DateTime shipDate - test('to test the property `shipDate`', () async {}); + test('to test the property `shipDate`', () async { + + }); // Order Status // String status - test('to test the property `status`', () async {}); + test('to test the property `status`', () async { + + }); // bool complete (default value: false) - test('to test the property `complete`', () async {}); + test('to test the property `complete`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/outer_composite_test.dart b/samples/client/echo_api/dart/dio/built_value/test/outer_composite_test.dart index dfb42ab6eb07..609209a6adff 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/outer_composite_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/outer_composite_test.dart @@ -8,12 +8,19 @@ void main() { group(OuterComposite, () { // num myNumber - test('to test the property `myNumber`', () async {}); + test('to test the property `myNumber`', () async { + + }); // String myString - test('to test the property `myString`', () async {}); + test('to test the property `myString`', () async { + + }); // bool myBoolean - test('to test the property `myBoolean`', () async {}); + test('to test the property `myBoolean`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/outer_enum_default_value_test.dart b/samples/client/echo_api/dart/dio/built_value/test/outer_enum_default_value_test.dart index a5c83f615194..502c8326be58 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/outer_enum_default_value_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/outer_enum_default_value_test.dart @@ -3,5 +3,7 @@ import 'package:openapi/openapi.dart'; // tests for OuterEnumDefaultValue void main() { - group(OuterEnumDefaultValue, () {}); + + group(OuterEnumDefaultValue, () { + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/outer_enum_integer_default_value_test.dart b/samples/client/echo_api/dart/dio/built_value/test/outer_enum_integer_default_value_test.dart index 49ebbfcead7f..c535fe8ac354 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/outer_enum_integer_default_value_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/outer_enum_integer_default_value_test.dart @@ -3,5 +3,7 @@ import 'package:openapi/openapi.dart'; // tests for OuterEnumIntegerDefaultValue void main() { - group(OuterEnumIntegerDefaultValue, () {}); + + group(OuterEnumIntegerDefaultValue, () { + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/outer_enum_integer_test.dart b/samples/client/echo_api/dart/dio/built_value/test/outer_enum_integer_test.dart index 3c6b81305c71..d945bc8c489d 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/outer_enum_integer_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/outer_enum_integer_test.dart @@ -3,5 +3,7 @@ import 'package:openapi/openapi.dart'; // tests for OuterEnumInteger void main() { - group(OuterEnumInteger, () {}); + + group(OuterEnumInteger, () { + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/outer_enum_test.dart b/samples/client/echo_api/dart/dio/built_value/test/outer_enum_test.dart index 4ee10f379d5e..8e11eb02fb8a 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/outer_enum_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/outer_enum_test.dart @@ -3,5 +3,7 @@ import 'package:openapi/openapi.dart'; // tests for OuterEnum void main() { - group(OuterEnum, () {}); + + group(OuterEnum, () { + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/outer_object_with_enum_property_test.dart b/samples/client/echo_api/dart/dio/built_value/test/outer_object_with_enum_property_test.dart index e0d4c80f00c8..53532aae9c75 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/outer_object_with_enum_property_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/outer_object_with_enum_property_test.dart @@ -8,6 +8,9 @@ void main() { group(OuterObjectWithEnumProperty, () { // OuterEnumInteger value - test('to test the property `value`', () async {}); + test('to test the property `value`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/parent_test.dart b/samples/client/echo_api/dart/dio/built_value/test/parent_test.dart index 0b04c690c5eb..656e58714ae0 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/parent_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/parent_test.dart @@ -8,6 +8,9 @@ void main() { group(Parent, () { // String fruitType - test('to test the property `fruitType`', () async {}); + test('to test the property `fruitType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/pasta_test.dart b/samples/client/echo_api/dart/dio/built_value/test/pasta_test.dart index 1883898d1e68..21fd7d2af32a 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/pasta_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/pasta_test.dart @@ -8,26 +8,39 @@ void main() { group(Pasta, () { // String vendor - test('to test the property `vendor`', () async {}); + test('to test the property `vendor`', () async { + + }); // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/pet_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/pet_api_test.dart index 373d26c1a5ee..a23dda20c185 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/pet_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/pet_api_test.dart @@ -1,6 +1,7 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for PetApi void main() { final instance = Openapi().getPetApi(); @@ -8,65 +9,84 @@ void main() { group(PetApi, () { // Add a new pet to the store // - // + // // //Future addPet(Pet pet) async - test('test addPet', () async {}); + test('test addPet', () async { + + }); // Deletes a pet // - // + // // //Future deletePet(int petId, { String apiKey }) async - test('test deletePet', () async {}); + test('test deletePet', () async { + + }); // Finds Pets by status // // Multiple status values can be provided with comma separated strings // //Future> findPetsByStatus(BuiltList status) async - test('test findPetsByStatus', () async {}); + test('test findPetsByStatus', () async { + + }); // Finds Pets by tags // // Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. // //Future> findPetsByTags(BuiltSet tags) async - test('test findPetsByTags', () async {}); + test('test findPetsByTags', () async { + + }); // Find pet by ID // // Returns a single pet // //Future getPetById(int petId) async - test('test getPetById', () async {}); + test('test getPetById', () async { + + }); // Update an existing pet // - // + // // //Future updatePet(Pet pet) async - test('test updatePet', () async {}); + test('test updatePet', () async { + + }); // Updates a pet in the store with form data // - // + // // //Future updatePetWithForm(int petId, { String name, String status }) async - test('test updatePetWithForm', () async {}); + test('test updatePetWithForm', () async { + + }); // uploads an image // - // + // // //Future uploadFile(int petId, { String additionalMetadata, MultipartFile file }) async - test('test uploadFile', () async {}); + test('test uploadFile', () async { + + }); // uploads an image (required) // - // + // // //Future uploadFileWithRequiredFile(int petId, MultipartFile requiredFile, { String additionalMetadata }) async - test('test uploadFileWithRequiredFile', () async {}); + test('test uploadFileWithRequiredFile', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/pet_test.dart b/samples/client/echo_api/dart/dio/built_value/test/pet_test.dart index bc228a2447a8..e1f81f3f947e 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/pet_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/pet_test.dart @@ -8,22 +8,35 @@ void main() { group(Pet, () { // int id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // Category category - test('to test the property `category`', () async {}); + test('to test the property `category`', () async { + + }); // String name - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); // BuiltSet photoUrls - test('to test the property `photoUrls`', () async {}); + test('to test the property `photoUrls`', () async { + + }); // BuiltList tags - test('to test the property `tags`', () async {}); + test('to test the property `tags`', () async { + + }); // pet status in the store // String status - test('to test the property `status`', () async {}); + test('to test the property `status`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/pizza_speziale_test.dart b/samples/client/echo_api/dart/dio/built_value/test/pizza_speziale_test.dart index 84d5ef417e99..9a49ca408907 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/pizza_speziale_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/pizza_speziale_test.dart @@ -8,26 +8,39 @@ void main() { group(PizzaSpeziale, () { // String toppings - test('to test the property `toppings`', () async {}); + test('to test the property `toppings`', () async { + + }); // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/pizza_test.dart b/samples/client/echo_api/dart/dio/built_value/test/pizza_test.dart index bab1b1c52812..f14838fbb0e9 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/pizza_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/pizza_test.dart @@ -8,26 +8,39 @@ void main() { group(Pizza, () { // num pizzaSize - test('to test the property `pizzaSize`', () async {}); + test('to test the property `pizzaSize`', () async { + + }); // Hyperlink reference // String href - test('to test the property `href`', () async {}); + test('to test the property `href`', () async { + + }); // unique identifier // String id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // A URI to a JSON-Schema file that defines additional attributes and relationships // String atSchemaLocation - test('to test the property `atSchemaLocation`', () async {}); + test('to test the property `atSchemaLocation`', () async { + + }); // When sub-classing, this defines the super-class // String atBaseType - test('to test the property `atBaseType`', () async {}); + test('to test the property `atBaseType`', () async { + + }); // When sub-classing, this defines the sub-class Extensible name // String atType - test('to test the property `atType`', () async {}); + test('to test the property `atType`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/read_only_first_test.dart b/samples/client/echo_api/dart/dio/built_value/test/read_only_first_test.dart index 900cc8bfe94f..7e5e43c6f1d5 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/read_only_first_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/read_only_first_test.dart @@ -8,9 +8,14 @@ void main() { group(ReadOnlyFirst, () { // String bar - test('to test the property `bar`', () async {}); + test('to test the property `bar`', () async { + + }); // String baz - test('to test the property `baz`', () async {}); + test('to test the property `baz`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/single_ref_type_test.dart b/samples/client/echo_api/dart/dio/built_value/test/single_ref_type_test.dart index 2c265f0d24ae..5cd85add393e 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/single_ref_type_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/single_ref_type_test.dart @@ -3,5 +3,7 @@ import 'package:openapi/openapi.dart'; // tests for SingleRefType void main() { - group(SingleRefType, () {}); + + group(SingleRefType, () { + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/special_model_name_test.dart b/samples/client/echo_api/dart/dio/built_value/test/special_model_name_test.dart index d2c7227d6a25..15f2b00fd3fe 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/special_model_name_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/special_model_name_test.dart @@ -8,8 +8,9 @@ void main() { group(SpecialModelName, () { // int dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket - test( - 'to test the property `dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket`', - () async {}); + test('to test the property `dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/store_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/store_api_test.dart index ed22c06ba895..c43f648131e8 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/store_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/store_api_test.dart @@ -1,6 +1,7 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for StoreApi void main() { final instance = Openapi().getStoreApi(); @@ -11,27 +12,36 @@ void main() { // For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors // //Future deleteOrder(String orderId) async - test('test deleteOrder', () async {}); + test('test deleteOrder', () async { + + }); // Returns pet inventories by status // // Returns a map of status codes to quantities // //Future> getInventory() async - test('test getInventory', () async {}); + test('test getInventory', () async { + + }); // Find purchase order by ID // // For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions // //Future getOrderById(int orderId) async - test('test getOrderById', () async {}); + test('test getOrderById', () async { + + }); // Place an order for a pet // - // + // // //Future placeOrder(Order order) async - test('test placeOrder', () async {}); + test('test placeOrder', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/tag_test.dart b/samples/client/echo_api/dart/dio/built_value/test/tag_test.dart index 25be1ec749a4..012a5ef8d957 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/tag_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/tag_test.dart @@ -8,9 +8,14 @@ void main() { group(Tag, () { // int id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // String name - test('to test the property `name`', () async {}); + test('to test the property `name`', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/user_api_test.dart b/samples/client/echo_api/dart/dio/built_value/test/user_api_test.dart index 0ea7ac6d3868..1843b2d2200b 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/user_api_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/user_api_test.dart @@ -1,6 +1,7 @@ import 'package:test/test.dart'; import 'package:openapi/openapi.dart'; + /// tests for UserApi void main() { final instance = Openapi().getUserApi(); @@ -11,55 +12,72 @@ void main() { // This can only be done by the logged in user. // //Future createUser(User user) async - test('test createUser', () async {}); + test('test createUser', () async { + + }); // Creates list of users with given input array // - // + // // //Future createUsersWithArrayInput(BuiltList user) async - test('test createUsersWithArrayInput', () async {}); + test('test createUsersWithArrayInput', () async { + + }); // Creates list of users with given input array // - // + // // //Future createUsersWithListInput(BuiltList user) async - test('test createUsersWithListInput', () async {}); + test('test createUsersWithListInput', () async { + + }); // Delete user // // This can only be done by the logged in user. // //Future deleteUser(String username) async - test('test deleteUser', () async {}); + test('test deleteUser', () async { + + }); // Get user by user name // - // + // // //Future getUserByName(String username) async - test('test getUserByName', () async {}); + test('test getUserByName', () async { + + }); // Logs user into the system // - // + // // //Future loginUser(String username, String password) async - test('test loginUser', () async {}); + test('test loginUser', () async { + + }); // Logs out current logged in user session // - // + // // //Future logoutUser() async - test('test logoutUser', () async {}); + test('test logoutUser', () async { + + }); // Updated user // // This can only be done by the logged in user. // //Future updateUser(String username, User user) async - test('test updateUser', () async {}); + test('test updateUser', () async { + + }); + }); } diff --git a/samples/client/echo_api/dart/dio/built_value/test/user_test.dart b/samples/client/echo_api/dart/dio/built_value/test/user_test.dart index c106b8f486b0..a396d8769c1f 100644 --- a/samples/client/echo_api/dart/dio/built_value/test/user_test.dart +++ b/samples/client/echo_api/dart/dio/built_value/test/user_test.dart @@ -8,28 +8,45 @@ void main() { group(User, () { // int id - test('to test the property `id`', () async {}); + test('to test the property `id`', () async { + + }); // String username - test('to test the property `username`', () async {}); + test('to test the property `username`', () async { + + }); // String firstName - test('to test the property `firstName`', () async {}); + test('to test the property `firstName`', () async { + + }); // String lastName - test('to test the property `lastName`', () async {}); + test('to test the property `lastName`', () async { + + }); // String email - test('to test the property `email`', () async {}); + test('to test the property `email`', () async { + + }); // String password - test('to test the property `password`', () async {}); + test('to test the property `password`', () async { + + }); // String phone - test('to test the property `phone`', () async {}); + test('to test the property `phone`', () async { + + }); // User Status // int userStatus - test('to test the property `userStatus`', () async {}); + test('to test the property `userStatus`', () async { + + }); + }); }