From 78f075a4972e9719516c0592c22360cd6f18989a Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Thu, 14 Apr 2022 01:07:27 +0200 Subject: [PATCH] Add json_serializable Maven module ind fix number based enums * regenerate all tests --- .../dart/libraries/dio/model_test.mustache | 3 +- .../built_value/test_instance.mustache | 2 + .../json_serializable/enum.mustache | 2 +- .../json_serializable/enum_inline.mustache | 2 +- .../json_serializable/test_instance.mustache | 2 + pom.xml | 1 + .../doc/UserType.md | 14 --- .../lib/src/model/user_type.dart | 33 ------- .../test/user_type_test.dart | 9 -- .../.openapi-generator/FILES | 54 ++++++++++++ .../lib/src/model/enum_test.dart | 12 +-- .../lib/src/model/outer_enum_integer.dart | 8 +- .../outer_enum_integer_default_value.dart | 8 +- .../pom.xml | 88 +++++++++++++++++++ .../additional_properties_class_test.dart | 4 +- .../test/animal_test.dart | 4 +- .../test/api_response_test.dart | 4 +- .../array_of_array_of_number_only_test.dart | 4 +- .../test/array_of_number_only_test.dart | 4 +- .../test/array_test_test.dart | 4 +- .../test/capitalization_test.dart | 4 +- .../test/cat_all_of_test.dart | 4 +- .../test/cat_test.dart | 4 +- .../test/category_test.dart | 4 +- .../test/class_model_test.dart | 4 +- .../test/deprecated_object_test.dart | 4 +- .../test/dog_all_of_test.dart | 4 +- .../test/dog_test.dart | 4 +- .../test/enum_arrays_test.dart | 4 +- .../test/enum_test_test.dart | 4 +- .../test/file_schema_test_class_test.dart | 4 +- .../test/foo_test.dart | 4 +- .../test/format_test_test.dart | 4 +- .../test/has_only_read_only_test.dart | 4 +- .../test/health_check_result_test.dart | 4 +- .../test/inline_response_default_test.dart | 4 +- .../test/map_test_test.dart | 4 +- ..._and_additional_properties_class_test.dart | 4 +- .../test/model200_response_test.dart | 4 +- .../test/model_client_test.dart | 4 +- .../test/model_file_test.dart | 4 +- .../test/model_list_test.dart | 4 +- .../test/model_return_test.dart | 4 +- .../test/name_test.dart | 4 +- .../test/nullable_class_test.dart | 4 +- .../test/number_only_test.dart | 4 +- .../object_with_deprecated_fields_test.dart | 4 +- .../test/order_test.dart | 4 +- .../test/outer_composite_test.dart | 4 +- .../outer_object_with_enum_property_test.dart | 4 +- .../test/pet_test.dart | 4 +- .../test/read_only_first_test.dart | 4 +- .../test/special_model_name_test.dart | 4 +- .../test/tag_test.dart | 4 +- .../test/user_test.dart | 4 +- .../.openapi-generator/FILES | 54 ++++++++++++ .../test/fake_api_test.dart | 17 +++- .../test/pet_api_test.dart | 16 +++- .../test/store_api_test.dart | 2 + .../test/user_api_test.dart | 10 +++ .../test/user_test.dart | 5 ++ 61 files changed, 345 insertions(+), 161 deletions(-) create mode 100644 modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/built_value/test_instance.mustache create mode 100644 modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/test_instance.mustache delete mode 100644 samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/doc/UserType.md delete mode 100644 samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/lib/src/model/user_type.dart delete mode 100644 samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/test/user_type_test.dart create mode 100644 samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/pom.xml diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/model_test.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/model_test.mustache index 56686dc889aa..26f614c657f2 100644 --- a/modules/openapi-generator/src/main/resources/dart/libraries/dio/model_test.mustache +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/model_test.mustache @@ -7,8 +7,7 @@ import 'package:{{pubName}}/{{pubName}}.dart'; void main() { {{^isEnum}} {{! Due to required vars without default value we can not create a full instance here }} - final instance = {{{classname}}}Builder(); - // TODO add properties to the builder and call build() +{{#includeLibraryTemplate}}test_instance{{/includeLibraryTemplate}} {{/isEnum}} group({{{classname}}}, () { diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/built_value/test_instance.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/built_value/test_instance.mustache new file mode 100644 index 000000000000..4ee29fff3cc0 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/built_value/test_instance.mustache @@ -0,0 +1,2 @@ + final instance = {{{classname}}}Builder(); + // TODO add properties to the builder and call build() \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/enum.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/enum.mustache index 150003cc0be2..53f1ec90b529 100644 --- a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/enum.mustache +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/enum.mustache @@ -7,7 +7,7 @@ enum {{{classname}}} { {{#description}} /// {{{.}}} {{/description}} - @JsonValue(r{{{value}}}) + @JsonValue({{#isString}}r{{/isString}}{{{value}}}) {{{name}}}, {{/enumVars}} {{/allowableValues}} diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/enum_inline.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/enum_inline.mustache index 2c557f062dfd..c9af017948f9 100644 --- a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/enum_inline.mustache +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/enum_inline.mustache @@ -3,7 +3,7 @@ enum {{{ enumName }}} { {{#allowableValues}} {{#enumVars}} - @JsonValue(r{{{value}}}) + @JsonValue({{#isString}}r{{/isString}}{{{value}}}) {{{name}}}, {{/enumVars}} {{/allowableValues}} diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/test_instance.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/test_instance.mustache new file mode 100644 index 000000000000..1b32f6768164 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/serialization/json_serializable/test_instance.mustache @@ -0,0 +1,2 @@ + final {{{classname}}}? instance = /* {{{classname}}}(...) */ null; + // TODO add properties to the entity \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1a7ecf89b373..0b5d55869762 100644 --- a/pom.xml +++ b/pom.xml @@ -1321,6 +1321,7 @@ samples/openapi3/client/petstore/dart2/petstore_client_lib samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake + samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib-json_serializable diff --git a/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/doc/UserType.md b/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/doc/UserType.md deleted file mode 100644 index b56ddc66eb79..000000000000 --- a/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/doc/UserType.md +++ /dev/null @@ -1,14 +0,0 @@ -# openapi.model.UserType - -## Load the model package -```dart -import 'package:openapi/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/lib/src/model/user_type.dart b/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/lib/src/model/user_type.dart deleted file mode 100644 index a90c44f6f4b3..000000000000 --- a/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/lib/src/model/user_type.dart +++ /dev/null @@ -1,33 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'user_type.g.dart'; - -class UserType extends EnumClass { - - @BuiltValueEnumConst(wireName: r'admin') - static const UserType admin = _$admin; - @BuiltValueEnumConst(wireName: r'user') - static const UserType user = _$user; - - static Serializer get serializer => _$userTypeSerializer; - - const UserType._(String name): super(name); - - static BuiltSet get values => _$values; - static UserType valueOf(String name) => _$valueOf(name); -} - -/// Optionally, enum_class can generate a mixin to go with your enum for use -/// with Angular. It exposes your enum constants as getters. So, if you mix it -/// in to your Dart component class, the values become available to the -/// corresponding Angular template. -/// -/// Trigger mixin generation by writing a line like this one next to your enum. -abstract class UserTypeMixin = Object with _$UserTypeMixin; - diff --git a/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/test/user_type_test.dart b/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/test/user_type_test.dart deleted file mode 100644 index 0ceb0f208724..000000000000 --- a/samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/test/user_type_test.dart +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:test/test.dart'; -import 'package:openapi/openapi.dart'; - -// tests for UserType -void main() { - - group(UserType, () { - }); -} diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/.openapi-generator/FILES b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/.openapi-generator/FILES index 2838a7b1d06d..62109be32e88 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/.openapi-generator/FILES @@ -119,3 +119,57 @@ lib/src/model/tag.dart lib/src/model/user.dart lib/src/model/user_type.dart pubspec.yaml +test/additional_properties_class_test.dart +test/animal_test.dart +test/another_fake_api_test.dart +test/api_response_test.dart +test/array_of_array_of_number_only_test.dart +test/array_of_number_only_test.dart +test/array_test_test.dart +test/capitalization_test.dart +test/cat_all_of_test.dart +test/cat_test.dart +test/category_test.dart +test/class_model_test.dart +test/default_api_test.dart +test/deprecated_object_test.dart +test/dog_all_of_test.dart +test/dog_test.dart +test/enum_arrays_test.dart +test/enum_test_test.dart +test/fake_api_test.dart +test/fake_classname_tags123_api_test.dart +test/file_schema_test_class_test.dart +test/foo_test.dart +test/format_test_test.dart +test/has_only_read_only_test.dart +test/health_check_result_test.dart +test/inline_response_default_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/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/pet_api_test.dart +test/pet_test.dart +test/read_only_first_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 +test/user_type_test.dart diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart index c53bf9045228..9a6ed0601bd8 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart @@ -194,22 +194,22 @@ enum EnumTestEnumStringRequiredEnum { enum EnumTestEnumIntegerEnum { - @JsonValue(r1) + @JsonValue(1) number1, - @JsonValue(r-1) + @JsonValue(-1) numberNegative1, - @JsonValue(r11184809) + @JsonValue(11184809) unknownDefaultOpenApi, } enum EnumTestEnumNumberEnum { - @JsonValue(r'1.1') + @JsonValue('1.1') number1Period1, - @JsonValue(r'-1.2') + @JsonValue('-1.2') numberNegative1Period2, - @JsonValue(r'11184809') + @JsonValue('11184809') unknownDefaultOpenApi, } diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/outer_enum_integer.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/outer_enum_integer.dart index f8879ef34d94..c3f134455dc9 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/outer_enum_integer.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/outer_enum_integer.dart @@ -6,12 +6,12 @@ import 'package:json_annotation/json_annotation.dart'; enum OuterEnumInteger { - @JsonValue(r0) + @JsonValue(0) number0, - @JsonValue(r1) + @JsonValue(1) number1, - @JsonValue(r2) + @JsonValue(2) number2, - @JsonValue(r11184809) + @JsonValue(11184809) unknownDefaultOpenApi, } diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/outer_enum_integer_default_value.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/outer_enum_integer_default_value.dart index e1ed5b152df4..d94f696f81b4 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/outer_enum_integer_default_value.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/lib/src/model/outer_enum_integer_default_value.dart @@ -6,12 +6,12 @@ import 'package:json_annotation/json_annotation.dart'; enum OuterEnumIntegerDefaultValue { - @JsonValue(r0) + @JsonValue(0) number0, - @JsonValue(r1) + @JsonValue(1) number1, - @JsonValue(r2) + @JsonValue(2) number2, - @JsonValue(r11184809) + @JsonValue(11184809) unknownDefaultOpenApi, } diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/pom.xml b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/pom.xml new file mode 100644 index 000000000000..f344fe151823 --- /dev/null +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/pom.xml @@ -0,0 +1,88 @@ + + 4.0.0 + org.openapitools + DartDioNextPetstoreClientLibFakeJsonSerializableTests + pom + 1.0.0-SNAPSHOT + DartDioNext Petstore Client Lib Fake Json Serializable + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory} + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.2.1 + + + pub-get + pre-integration-test + + exec + + + pub + + get + + + + + pub-run-build-runner + pre-integration-test + + exec + + + pub + + run + build_runner + build + + + + + dart-analyze + integration-test + + exec + + + dart + + analyze + --fatal-infos + + + + + dart-test + integration-test + + exec + + + dart + + test + + + + + + + + diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/additional_properties_class_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/additional_properties_class_test.dart index 9f7cb36093aa..fd8299fb998f 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/additional_properties_class_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/additional_properties_class_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for AdditionalPropertiesClass void main() { - final instance = AdditionalPropertiesClassBuilder(); - // TODO add properties to the builder and call build() + final AdditionalPropertiesClass? instance = /* AdditionalPropertiesClass(...) */ null; + // TODO add properties to the entity group(AdditionalPropertiesClass, () { // Map mapProperty diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/animal_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/animal_test.dart index 875bb42a106a..83c65b22bfc3 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/animal_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/animal_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Animal void main() { - final instance = AnimalBuilder(); - // TODO add properties to the builder and call build() + final Animal? instance = /* Animal(...) */ null; + // TODO add properties to the entity group(Animal, () { // String className diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/api_response_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/api_response_test.dart index cf1a744cd629..9487afd7f58c 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/api_response_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/api_response_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ApiResponse void main() { - final instance = ApiResponseBuilder(); - // TODO add properties to the builder and call build() + final ApiResponse? instance = /* ApiResponse(...) */ null; + // TODO add properties to the entity group(ApiResponse, () { // int code diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_of_array_of_number_only_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_of_array_of_number_only_test.dart index 524a3680975e..79c0d3f3bba8 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_of_array_of_number_only_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_of_array_of_number_only_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ArrayOfArrayOfNumberOnly void main() { - final instance = ArrayOfArrayOfNumberOnlyBuilder(); - // TODO add properties to the builder and call build() + final ArrayOfArrayOfNumberOnly? instance = /* ArrayOfArrayOfNumberOnly(...) */ null; + // TODO add properties to the entity group(ArrayOfArrayOfNumberOnly, () { // List> arrayArrayNumber diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_of_number_only_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_of_number_only_test.dart index d6854390f45f..d80be97cf147 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_of_number_only_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_of_number_only_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ArrayOfNumberOnly void main() { - final instance = ArrayOfNumberOnlyBuilder(); - // TODO add properties to the builder and call build() + final ArrayOfNumberOnly? instance = /* ArrayOfNumberOnly(...) */ null; + // TODO add properties to the entity group(ArrayOfNumberOnly, () { // List arrayNumber diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_test_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_test_test.dart index b34062725122..bfe7c84fd122 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_test_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/array_test_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ArrayTest void main() { - final instance = ArrayTestBuilder(); - // TODO add properties to the builder and call build() + final ArrayTest? instance = /* ArrayTest(...) */ null; + // TODO add properties to the entity group(ArrayTest, () { // List arrayOfString diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/capitalization_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/capitalization_test.dart index 23e04b0001bb..156b0ee4993c 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/capitalization_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/capitalization_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Capitalization void main() { - final instance = CapitalizationBuilder(); - // TODO add properties to the builder and call build() + final Capitalization? instance = /* Capitalization(...) */ null; + // TODO add properties to the entity group(Capitalization, () { // String smallCamel diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/cat_all_of_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/cat_all_of_test.dart index afdac82ad182..c22efb324bea 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/cat_all_of_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/cat_all_of_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for CatAllOf void main() { - final instance = CatAllOfBuilder(); - // TODO add properties to the builder and call build() + final CatAllOf? instance = /* CatAllOf(...) */ null; + // TODO add properties to the entity group(CatAllOf, () { // bool declawed diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/cat_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/cat_test.dart index b8fc252acc60..0a8811bd37f7 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/cat_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/cat_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Cat void main() { - final instance = CatBuilder(); - // TODO add properties to the builder and call build() + final Cat? instance = /* Cat(...) */ null; + // TODO add properties to the entity group(Cat, () { // String className diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/category_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/category_test.dart index 70f5fb5e02ac..0ed6921ae7fc 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/category_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/category_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Category void main() { - final instance = CategoryBuilder(); - // TODO add properties to the builder and call build() + final Category? instance = /* Category(...) */ null; + // TODO add properties to the entity group(Category, () { // int id diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/class_model_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/class_model_test.dart index 92f95f186c91..e2dda7bab74e 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/class_model_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/class_model_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ClassModel void main() { - final instance = ClassModelBuilder(); - // TODO add properties to the builder and call build() + final ClassModel? instance = /* ClassModel(...) */ null; + // TODO add properties to the entity group(ClassModel, () { // String class_ diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/deprecated_object_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/deprecated_object_test.dart index 98ab991b2b14..1b2214668577 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/deprecated_object_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/deprecated_object_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for DeprecatedObject void main() { - final instance = DeprecatedObjectBuilder(); - // TODO add properties to the builder and call build() + final DeprecatedObject? instance = /* DeprecatedObject(...) */ null; + // TODO add properties to the entity group(DeprecatedObject, () { // String name diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/dog_all_of_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/dog_all_of_test.dart index 7b58b3a27552..f5e191fea696 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/dog_all_of_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/dog_all_of_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for DogAllOf void main() { - final instance = DogAllOfBuilder(); - // TODO add properties to the builder and call build() + final DogAllOf? instance = /* DogAllOf(...) */ null; + // TODO add properties to the entity group(DogAllOf, () { // String breed diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/dog_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/dog_test.dart index f57fcdc413df..98097bd4bf25 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/dog_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/dog_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Dog void main() { - final instance = DogBuilder(); - // TODO add properties to the builder and call build() + final Dog? instance = /* Dog(...) */ null; + // TODO add properties to the entity group(Dog, () { // String className diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/enum_arrays_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/enum_arrays_test.dart index cf45fa8ba6e0..30d12204ba17 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/enum_arrays_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/enum_arrays_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for EnumArrays void main() { - final instance = EnumArraysBuilder(); - // TODO add properties to the builder and call build() + final EnumArrays? instance = /* EnumArrays(...) */ null; + // TODO add properties to the entity group(EnumArrays, () { // String justSymbol diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/enum_test_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/enum_test_test.dart index b5f3aeb7fbdd..befb9901ce9d 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/enum_test_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/enum_test_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for EnumTest void main() { - final instance = EnumTestBuilder(); - // TODO add properties to the builder and call build() + final EnumTest? instance = /* EnumTest(...) */ null; + // TODO add properties to the entity group(EnumTest, () { // String enumString diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/file_schema_test_class_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/file_schema_test_class_test.dart index 16a122871047..2ccd0d450ce7 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/file_schema_test_class_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/file_schema_test_class_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for FileSchemaTestClass void main() { - final instance = FileSchemaTestClassBuilder(); - // TODO add properties to the builder and call build() + final FileSchemaTestClass? instance = /* FileSchemaTestClass(...) */ null; + // TODO add properties to the entity group(FileSchemaTestClass, () { // ModelFile file diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/foo_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/foo_test.dart index 205237788aeb..28ae9a5b5e13 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/foo_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/foo_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Foo void main() { - final instance = FooBuilder(); - // TODO add properties to the builder and call build() + final Foo? instance = /* Foo(...) */ null; + // TODO add properties to the entity group(Foo, () { // String bar (default value: 'bar') diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/format_test_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/format_test_test.dart index ecc4ff46458f..b08838d81a37 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/format_test_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/format_test_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for FormatTest void main() { - final instance = FormatTestBuilder(); - // TODO add properties to the builder and call build() + final FormatTest? instance = /* FormatTest(...) */ null; + // TODO add properties to the entity group(FormatTest, () { // int integer diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/has_only_read_only_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/has_only_read_only_test.dart index c34522214751..d72429a31bb5 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/has_only_read_only_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/has_only_read_only_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for HasOnlyReadOnly void main() { - final instance = HasOnlyReadOnlyBuilder(); - // TODO add properties to the builder and call build() + final HasOnlyReadOnly? instance = /* HasOnlyReadOnly(...) */ null; + // TODO add properties to the entity group(HasOnlyReadOnly, () { // String bar diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/health_check_result_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/health_check_result_test.dart index fda0c9218217..b2b48337b76c 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/health_check_result_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/health_check_result_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for HealthCheckResult void main() { - final instance = HealthCheckResultBuilder(); - // TODO add properties to the builder and call build() + final HealthCheckResult? instance = /* HealthCheckResult(...) */ null; + // TODO add properties to the entity group(HealthCheckResult, () { // String nullableMessage diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/inline_response_default_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/inline_response_default_test.dart index 56fbf1d0b1ac..d57cafb1928d 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/inline_response_default_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/inline_response_default_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for InlineResponseDefault void main() { - final instance = InlineResponseDefaultBuilder(); - // TODO add properties to the builder and call build() + final InlineResponseDefault? instance = /* InlineResponseDefault(...) */ null; + // TODO add properties to the entity group(InlineResponseDefault, () { // Foo string diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/map_test_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/map_test_test.dart index 2a1b43c77a13..909415df7540 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/map_test_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/map_test_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for MapTest void main() { - final instance = MapTestBuilder(); - // TODO add properties to the builder and call build() + final MapTest? instance = /* MapTest(...) */ null; + // TODO add properties to the entity group(MapTest, () { // Map> mapMapOfString diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/mixed_properties_and_additional_properties_class_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/mixed_properties_and_additional_properties_class_test.dart index 62187efce076..0115f01ed6be 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/mixed_properties_and_additional_properties_class_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/mixed_properties_and_additional_properties_class_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for MixedPropertiesAndAdditionalPropertiesClass void main() { - final instance = MixedPropertiesAndAdditionalPropertiesClassBuilder(); - // TODO add properties to the builder and call build() + final MixedPropertiesAndAdditionalPropertiesClass? instance = /* MixedPropertiesAndAdditionalPropertiesClass(...) */ null; + // TODO add properties to the entity group(MixedPropertiesAndAdditionalPropertiesClass, () { // String uuid diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model200_response_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model200_response_test.dart index 39ff6ec59c0b..de8cf3037b6b 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model200_response_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model200_response_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Model200Response void main() { - final instance = Model200ResponseBuilder(); - // TODO add properties to the builder and call build() + final Model200Response? instance = /* Model200Response(...) */ null; + // TODO add properties to the entity group(Model200Response, () { // int name diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_client_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_client_test.dart index f494dfd08499..44faf62f15b4 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_client_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_client_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ModelClient void main() { - final instance = ModelClientBuilder(); - // TODO add properties to the builder and call build() + final ModelClient? instance = /* ModelClient(...) */ null; + // TODO add properties to the entity group(ModelClient, () { // String client diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_file_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_file_test.dart index 4f1397726226..8ea65f6ccb41 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_file_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_file_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ModelFile void main() { - final instance = ModelFileBuilder(); - // TODO add properties to the builder and call build() + final ModelFile? instance = /* ModelFile(...) */ null; + // TODO add properties to the entity group(ModelFile, () { // Test capitalization diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_list_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_list_test.dart index d35e02fe0c9a..f748eee993ac 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_list_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_list_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ModelList void main() { - final instance = ModelListBuilder(); - // TODO add properties to the builder and call build() + final ModelList? instance = /* ModelList(...) */ null; + // TODO add properties to the entity group(ModelList, () { // String n123list diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_return_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_return_test.dart index eedfe7eb281a..cfc17807c151 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_return_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/model_return_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ModelReturn void main() { - final instance = ModelReturnBuilder(); - // TODO add properties to the builder and call build() + final ModelReturn? instance = /* ModelReturn(...) */ null; + // TODO add properties to the entity group(ModelReturn, () { // int return_ diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/name_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/name_test.dart index 6b2329bb0819..4f3f7f633728 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/name_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/name_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Name void main() { - final instance = NameBuilder(); - // TODO add properties to the builder and call build() + final Name? instance = /* Name(...) */ null; + // TODO add properties to the entity group(Name, () { // int name diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/nullable_class_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/nullable_class_test.dart index eda41604104c..0ab76167983b 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/nullable_class_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/nullable_class_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for NullableClass void main() { - final instance = NullableClassBuilder(); - // TODO add properties to the builder and call build() + final NullableClass? instance = /* NullableClass(...) */ null; + // TODO add properties to the entity group(NullableClass, () { // int integerProp diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/number_only_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/number_only_test.dart index 7167d78a4962..12b19c59dfb7 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/number_only_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/number_only_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for NumberOnly void main() { - final instance = NumberOnlyBuilder(); - // TODO add properties to the builder and call build() + final NumberOnly? instance = /* NumberOnly(...) */ null; + // TODO add properties to the entity group(NumberOnly, () { // num justNumber diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/object_with_deprecated_fields_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/object_with_deprecated_fields_test.dart index 55694e02864d..e197bd0ad807 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/object_with_deprecated_fields_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/object_with_deprecated_fields_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ObjectWithDeprecatedFields void main() { - final instance = ObjectWithDeprecatedFieldsBuilder(); - // TODO add properties to the builder and call build() + final ObjectWithDeprecatedFields? instance = /* ObjectWithDeprecatedFields(...) */ null; + // TODO add properties to the entity group(ObjectWithDeprecatedFields, () { // String uuid diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/order_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/order_test.dart index 7ff992230bf6..45b02097daed 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/order_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/order_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Order void main() { - final instance = OrderBuilder(); - // TODO add properties to the builder and call build() + final Order? instance = /* Order(...) */ null; + // TODO add properties to the entity group(Order, () { // int id diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/outer_composite_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/outer_composite_test.dart index dac257d9a0d6..a5f0172ba21c 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/outer_composite_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/outer_composite_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for OuterComposite void main() { - final instance = OuterCompositeBuilder(); - // TODO add properties to the builder and call build() + final OuterComposite? instance = /* OuterComposite(...) */ null; + // TODO add properties to the entity group(OuterComposite, () { // num myNumber diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/outer_object_with_enum_property_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/outer_object_with_enum_property_test.dart index d6d763c5d93a..3d72c6188e17 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/outer_object_with_enum_property_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/outer_object_with_enum_property_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for OuterObjectWithEnumProperty void main() { - final instance = OuterObjectWithEnumPropertyBuilder(); - // TODO add properties to the builder and call build() + final OuterObjectWithEnumProperty? instance = /* OuterObjectWithEnumProperty(...) */ null; + // TODO add properties to the entity group(OuterObjectWithEnumProperty, () { // OuterEnumInteger value diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/pet_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/pet_test.dart index 77a37d5a4c35..20b5e3e06735 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/pet_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/pet_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Pet void main() { - final instance = PetBuilder(); - // TODO add properties to the builder and call build() + final Pet? instance = /* Pet(...) */ null; + // TODO add properties to the entity group(Pet, () { // int id diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/read_only_first_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/read_only_first_test.dart index 550d3d793ec6..bcefd75befb6 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/read_only_first_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/read_only_first_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for ReadOnlyFirst void main() { - final instance = ReadOnlyFirstBuilder(); - // TODO add properties to the builder and call build() + final ReadOnlyFirst? instance = /* ReadOnlyFirst(...) */ null; + // TODO add properties to the entity group(ReadOnlyFirst, () { // String bar diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/special_model_name_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/special_model_name_test.dart index 08a4592a1ed7..23b58324ef99 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/special_model_name_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/special_model_name_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for SpecialModelName void main() { - final instance = SpecialModelNameBuilder(); - // TODO add properties to the builder and call build() + final SpecialModelName? instance = /* SpecialModelName(...) */ null; + // TODO add properties to the entity group(SpecialModelName, () { // int dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/tag_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/tag_test.dart index 6f7c63b8f0c2..ffe49b3179c3 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/tag_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/tag_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for Tag void main() { - final instance = TagBuilder(); - // TODO add properties to the builder and call build() + final Tag? instance = /* Tag(...) */ null; + // TODO add properties to the entity group(Tag, () { // int id diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/user_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/user_test.dart index d4555abccc59..e1a35216a88c 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/user_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake-json_serializable/test/user_test.dart @@ -3,8 +3,8 @@ import 'package:openapi/openapi.dart'; // tests for User void main() { - final instance = UserBuilder(); - // TODO add properties to the builder and call build() + final User? instance = /* User(...) */ null; + // TODO add properties to the entity group(User, () { // int id diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/.openapi-generator/FILES b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/.openapi-generator/FILES index 6f14e15b683e..66428661d759 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/.openapi-generator/FILES @@ -121,3 +121,57 @@ lib/src/model/user.dart lib/src/model/user_type.dart lib/src/serializers.dart pubspec.yaml +test/additional_properties_class_test.dart +test/animal_test.dart +test/another_fake_api_test.dart +test/api_response_test.dart +test/array_of_array_of_number_only_test.dart +test/array_of_number_only_test.dart +test/array_test_test.dart +test/capitalization_test.dart +test/cat_all_of_test.dart +test/cat_test.dart +test/category_test.dart +test/class_model_test.dart +test/default_api_test.dart +test/deprecated_object_test.dart +test/dog_all_of_test.dart +test/dog_test.dart +test/enum_arrays_test.dart +test/enum_test_test.dart +test/fake_api_test.dart +test/fake_classname_tags123_api_test.dart +test/file_schema_test_class_test.dart +test/foo_test.dart +test/format_test_test.dart +test/has_only_read_only_test.dart +test/health_check_result_test.dart +test/inline_response_default_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/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/pet_api_test.dart +test/pet_test.dart +test/read_only_first_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 +test/user_type_test.dart diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/fake_api_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/fake_api_test.dart index 7dca853fa9d6..c552474e280b 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/fake_api_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/fake_api_test.dart @@ -56,7 +56,14 @@ void main() { // TODO }); - // For this test, the body for this request much reference a schema named `File`. + // For this test, the body has to be a binary file. + // + //Future testBodyWithBinary(MultipartFile body) async + test('test testBodyWithBinary', () async { + // TODO + }); + + // For this test, the body for this request must reference a schema named `File`. // //Future testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) async test('test testBodyWithFileSchema', () async { @@ -90,7 +97,7 @@ void main() { // // To test enum parameters // - //Future testEnumParameters({ BuiltList enumHeaderStringArray, String enumHeaderString, BuiltList enumQueryStringArray, String enumQueryString, int enumQueryInteger, double enumQueryDouble, BuiltList enumFormStringArray, String enumFormString }) async + //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 { // TODO }); @@ -106,6 +113,8 @@ void main() { // test inline additionalProperties // + // + // //Future testInlineAdditionalProperties(BuiltMap requestBody) async test('test testInlineAdditionalProperties', () async { // TODO @@ -113,6 +122,8 @@ void main() { // test json serialization of form data // + // + // //Future testJsonFormData(String param, String param2) async test('test testJsonFormData', () async { // TODO @@ -120,7 +131,7 @@ void main() { // To test the collection format in query parameters // - //Future testQueryParameterCollectionFormat(BuiltList pipe, BuiltList ioutil, BuiltList http, BuiltList url, BuiltList context) async + //Future testQueryParameterCollectionFormat(BuiltList pipe, BuiltList ioutil, BuiltList http, BuiltList url, BuiltList context, String allowEmpty, { BuiltMap language }) async test('test testQueryParameterCollectionFormat', () async { // TODO }); diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/pet_api_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/pet_api_test.dart index 99e9a07b97c6..bd23e2e9e73d 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/pet_api_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/pet_api_test.dart @@ -9,6 +9,8 @@ void main() { group(PetApi, () { // Add a new pet to the store // + // + // //Future addPet(Pet pet) async test('test addPet', () async { // TODO @@ -16,6 +18,8 @@ void main() { // Deletes a pet // + // + // //Future deletePet(int petId, { String apiKey }) async test('test deletePet', () async { // TODO @@ -50,6 +54,8 @@ void main() { // Update an existing pet // + // + // //Future updatePet(Pet pet) async test('test updatePet', () async { // TODO @@ -57,6 +63,8 @@ void main() { // Updates a pet in the store with form data // + // + // //Future updatePetWithForm(int petId, { String name, String status }) async test('test updatePetWithForm', () async { // TODO @@ -64,14 +72,18 @@ void main() { // uploads an image // - //Future uploadFile(int petId, { String additionalMetadata, Uint8List file }) async + // + // + //Future uploadFile(int petId, { String additionalMetadata, MultipartFile file }) async test('test uploadFile', () async { // TODO }); // uploads an image (required) // - //Future uploadFileWithRequiredFile(int petId, Uint8List requiredFile, { String additionalMetadata }) async + // + // + //Future uploadFileWithRequiredFile(int petId, MultipartFile requiredFile, { String additionalMetadata }) async test('test uploadFileWithRequiredFile', () async { // TODO }); diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/store_api_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/store_api_test.dart index 9eac725762b7..b3afe7ca1e8f 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/store_api_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/store_api_test.dart @@ -36,6 +36,8 @@ void main() { // Place an order for a pet // + // + // //Future placeOrder(Order order) async test('test placeOrder', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/user_api_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/user_api_test.dart index 01eaad61fc2d..29f63ba073ba 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/user_api_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/user_api_test.dart @@ -18,6 +18,8 @@ void main() { // Creates list of users with given input array // + // + // //Future createUsersWithArrayInput(BuiltList user) async test('test createUsersWithArrayInput', () async { // TODO @@ -25,6 +27,8 @@ void main() { // Creates list of users with given input array // + // + // //Future createUsersWithListInput(BuiltList user) async test('test createUsersWithListInput', () async { // TODO @@ -41,6 +45,8 @@ void main() { // Get user by user name // + // + // //Future getUserByName(String username) async test('test getUserByName', () async { // TODO @@ -48,6 +54,8 @@ void main() { // Logs user into the system // + // + // //Future loginUser(String username, String password) async test('test loginUser', () async { // TODO @@ -55,6 +63,8 @@ void main() { // Logs out current logged in user session // + // + // //Future logoutUser() async test('test logoutUser', () async { // TODO diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/user_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/user_test.dart index 1e6a1bc23faa..d4555abccc59 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/user_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/test/user_test.dart @@ -48,5 +48,10 @@ void main() { // TODO }); + // UserType userType + test('to test the property `userType`', () async { + // TODO + }); + }); }