From 5c9fce26db975e2c6643d70e77842f1e943634c5 Mon Sep 17 00:00:00 2001 From: Florian Weihl Date: Fri, 9 May 2025 14:09:37 +0200 Subject: [PATCH] fix handling for lower enum cases and fixed tests --- .../languages/AbstractDartCodegen.java | 28 ++--- .../codegen/dart/DartClientOptionsTest.java | 1 + .../dart/dio/DartDioClientOptionsTest.java | 1 + .../options/DartClientOptionsProvider.java | 2 + .../options/DartDioClientOptionsProvider.java | 2 + .../3_0/petstore-use-lower-camel-case.yaml | 5 + .../README.md | 4 +- .../doc/Bar.md | 8 +- .../doc/BarApi.md | 8 +- .../doc/BarCreate.md | 8 +- .../doc/BarRef.md | 6 +- .../doc/BarRefOrValue.md | 10 +- .../doc/Entity.md | 4 +- .../doc/EntityRef.md | 6 +- .../doc/Extensible.md | 4 +- .../doc/Foo.md | 8 +- .../doc/FooRef.md | 8 +- .../doc/FooRefOrValue.md | 12 +- .../doc/Fruit.md | 2 +- .../doc/Pasta.md | 4 +- .../doc/Pizza.md | 6 +- .../doc/PizzaSpeziale.md | 6 +- .../lib/src/api/bar_api.dart | 6 +- .../lib/src/model/bar.dart | 106 +++++++++--------- .../lib/src/model/bar_create.dart | 106 +++++++++--------- .../lib/src/model/bar_ref.dart | 46 ++++---- .../lib/src/model/bar_ref_or_value.dart | 10 +- .../lib/src/model/entity.dart | 60 +++++----- .../lib/src/model/entity_ref.dart | 64 +++++------ .../lib/src/model/extensible.dart | 20 ++-- .../lib/src/model/foo.dart | 106 +++++++++--------- .../lib/src/model/foo_ref.dart | 78 ++++++------- .../lib/src/model/foo_ref_or_value.dart | 12 +- .../lib/src/model/fruit.dart | 10 +- .../lib/src/model/fruit_type.dart | 4 +- .../lib/src/model/pasta.dart | 60 +++++----- .../lib/src/model/pizza.dart | 70 ++++++------ .../lib/src/model/pizza_speziale.dart | 46 ++++---- .../README.md | 4 +- .../doc/AllOfWithSingleRef.md | 2 +- .../doc/Animal.md | 2 +- .../doc/AnotherFakeApi.md | 8 +- .../doc/ArrayOfArrayOfNumberOnly.md | 2 +- .../doc/ArrayOfNumberOnly.md | 2 +- .../doc/Capitalization.md | 8 +- .../doc/Cat.md | 2 +- .../doc/ChildWithNullable.md | 4 +- .../doc/Dog.md | 2 +- .../doc/EnumTest.md | 8 +- .../doc/FakeApi.md | 64 +++++------ .../doc/FakeBigDecimalMap200Response.md | 4 +- .../doc/FakeClassnameTags123Api.md | 8 +- .../doc/FormatTest.md | 2 +- .../doc/HealthCheckResult.md | 2 +- ...dPropertiesAndAdditionalPropertiesClass.md | 2 +- .../doc/ModelFile.md | 2 +- .../doc/NumberOnly.md | 2 +- .../doc/ObjectWithDeprecatedFields.md | 2 +- .../doc/Order.md | 4 +- .../doc/ParentWithNullable.md | 2 +- .../doc/Pet.md | 2 +- .../doc/PetApi.md | 52 ++++----- .../doc/SpecialModelName.md | 2 +- ...lineFreeformAdditionalPropertiesRequest.md | 2 +- .../doc/User.md | 6 +- .../lib/src/api/another_fake_api.dart | 6 +- .../lib/src/api/fake_api.dart | 46 ++++---- .../src/api/fake_classname_tags123_api.dart | 6 +- .../lib/src/api/pet_api.dart | 42 +++---- .../lib/src/model/all_of_with_single_ref.dart | 8 +- .../lib/src/model/animal.dart | 8 +- .../model/array_of_array_of_number_only.dart | 8 +- .../lib/src/model/array_of_number_only.dart | 8 +- .../lib/src/model/capitalization.dart | 32 +++--- .../lib/src/model/cat.dart | 8 +- .../lib/src/model/child_with_nullable.dart | 18 +-- .../lib/src/model/dog.dart | 8 +- .../lib/src/model/enum_test.dart | 40 +++---- .../fake_big_decimal_map200_response.dart | 16 +-- .../lib/src/model/format_test.dart | 8 +- .../lib/src/model/health_check_result.dart | 8 +- .../lib/src/model/map_test.dart | 2 +- ...rties_and_additional_properties_class.dart | 8 +- .../lib/src/model/model_enum_class.dart | 2 +- .../lib/src/model/model_file.dart | 8 +- .../lib/src/model/number_only.dart | 8 +- .../model/object_with_deprecated_fields.dart | 10 +- .../lib/src/model/order.dart | 16 +-- .../lib/src/model/parent_with_nullable.dart | 10 +- .../lib/src/model/pet.dart | 8 +- .../lib/src/model/special_model_name.dart | 8 +- ...reeform_additional_properties_request.dart | 8 +- .../lib/src/model/user.dart | 24 ++-- .../petstore_client_lib_fake/README.md | 4 +- .../doc/AllOfWithSingleRef.md | 2 +- .../petstore_client_lib_fake/doc/Animal.md | 2 +- .../doc/AnotherFakeApi.md | 8 +- .../doc/ArrayOfArrayOfNumberOnly.md | 2 +- .../doc/ArrayOfNumberOnly.md | 2 +- .../doc/Capitalization.md | 8 +- .../petstore_client_lib_fake/doc/Cat.md | 2 +- .../doc/ChildWithNullable.md | 4 +- .../petstore_client_lib_fake/doc/Dog.md | 2 +- .../petstore_client_lib_fake/doc/EnumTest.md | 8 +- .../petstore_client_lib_fake/doc/FakeApi.md | 64 +++++------ .../doc/FakeBigDecimalMap200Response.md | 4 +- .../doc/FakeClassnameTags123Api.md | 8 +- .../doc/FormatTest.md | 2 +- .../doc/HealthCheckResult.md | 2 +- ...dPropertiesAndAdditionalPropertiesClass.md | 2 +- .../petstore_client_lib_fake/doc/ModelFile.md | 2 +- .../doc/NumberOnly.md | 2 +- .../doc/ObjectWithDeprecatedFields.md | 2 +- .../petstore_client_lib_fake/doc/Order.md | 4 +- .../doc/ParentWithNullable.md | 2 +- .../petstore_client_lib_fake/doc/Pet.md | 2 +- .../petstore_client_lib_fake/doc/PetApi.md | 52 ++++----- .../doc/SpecialModelName.md | 2 +- ...lineFreeformAdditionalPropertiesRequest.md | 2 +- .../petstore_client_lib_fake/doc/User.md | 6 +- .../lib/src/api/another_fake_api.dart | 6 +- .../lib/src/api/fake_api.dart | 48 ++++---- .../src/api/fake_classname_tags123_api.dart | 6 +- .../lib/src/api/pet_api.dart | 48 ++++---- .../lib/src/model/all_of_with_single_ref.dart | 12 +- .../lib/src/model/animal.dart | 8 +- .../model/array_of_array_of_number_only.dart | 10 +- .../lib/src/model/array_of_number_only.dart | 10 +- .../lib/src/model/capitalization.dart | 40 +++---- .../lib/src/model/cat.dart | 28 ++--- .../lib/src/model/child_with_nullable.dart | 44 ++++---- .../lib/src/model/dog.dart | 28 ++--- .../lib/src/model/enum_test.dart | 56 ++++----- .../fake_big_decimal_map200_response.dart | 20 ++-- .../lib/src/model/format_test.dart | 10 +- .../lib/src/model/health_check_result.dart | 10 +- .../lib/src/model/map_test.dart | 2 +- ...rties_and_additional_properties_class.dart | 10 +- .../lib/src/model/model_enum_class.dart | 2 +- .../lib/src/model/model_file.dart | 10 +- .../lib/src/model/number_only.dart | 10 +- .../model/object_with_deprecated_fields.dart | 12 +- .../lib/src/model/order.dart | 20 ++-- .../lib/src/model/parent_with_nullable.dart | 12 +- .../lib/src/model/pet.dart | 8 +- .../lib/src/model/special_model_name.dart | 10 +- ...reeform_additional_properties_request.dart | 10 +- .../lib/src/model/user.dart | 30 ++--- .../.openapi-generator/FILES | 58 ---------- .../README.md | 4 +- .../doc/AllOfWithSingleRef.md | 2 +- .../doc/Animal.md | 2 +- .../doc/AnotherFakeApi.md | 8 +- .../doc/ArrayOfArrayOfNumberOnly.md | 2 +- .../doc/ArrayOfNumberOnly.md | 2 +- .../doc/Capitalization.md | 8 +- .../doc/Cat.md | 2 +- .../doc/ChildWithNullable.md | 4 +- .../doc/Dog.md | 2 +- .../doc/EnumTest.md | 8 +- .../doc/FakeApi.md | 64 +++++------ .../doc/FakeBigDecimalMap200Response.md | 4 +- .../doc/FakeClassnameTags123Api.md | 8 +- .../doc/FormatTest.md | 2 +- .../doc/HealthCheckResult.md | 2 +- ...dPropertiesAndAdditionalPropertiesClass.md | 2 +- .../doc/ModelFile.md | 2 +- .../doc/NumberOnly.md | 2 +- .../doc/ObjectWithDeprecatedFields.md | 2 +- .../doc/Order.md | 4 +- .../doc/ParentWithNullable.md | 2 +- .../doc/Pet.md | 2 +- .../doc/PetApi.md | 52 ++++----- .../doc/SpecialModelName.md | 2 +- ...lineFreeformAdditionalPropertiesRequest.md | 2 +- .../doc/User.md | 6 +- .../lib/src/api/another_fake_api.dart | 6 +- .../lib/src/api/fake_api.dart | 46 ++++---- .../src/api/fake_classname_tags123_api.dart | 6 +- .../lib/src/api/pet_api.dart | 42 +++---- .../lib/src/model/all_of_with_single_ref.dart | 8 +- .../lib/src/model/animal.dart | 8 +- .../model/array_of_array_of_number_only.dart | 8 +- .../lib/src/model/array_of_number_only.dart | 8 +- .../lib/src/model/capitalization.dart | 32 +++--- .../lib/src/model/cat.dart | 8 +- .../lib/src/model/child_with_nullable.dart | 18 +-- .../lib/src/model/dog.dart | 8 +- .../lib/src/model/enum_test.dart | 36 +++--- .../fake_big_decimal_map200_response.dart | 16 +-- .../lib/src/model/format_test.dart | 8 +- .../lib/src/model/health_check_result.dart | 8 +- ...rties_and_additional_properties_class.dart | 8 +- .../lib/src/model/model_enum_class.dart | 12 +- .../lib/src/model/model_file.dart | 8 +- .../lib/src/model/number_only.dart | 8 +- .../model/object_with_deprecated_fields.dart | 10 +- .../lib/src/model/order.dart | 16 +-- .../lib/src/model/parent_with_nullable.dart | 10 +- .../lib/src/model/pet.dart | 8 +- .../lib/src/model/special_model_name.dart | 8 +- ...reeform_additional_properties_request.dart | 8 +- .../lib/src/model/user.dart | 24 ++-- .../dart2/petstore_client_lib/doc/Order.md | 4 +- .../dart2/petstore_client_lib/doc/Pet.md | 2 +- .../dart2/petstore_client_lib/doc/PetApi.md | 36 +++--- .../dart2/petstore_client_lib/doc/StoreApi.md | 16 +-- .../dart2/petstore_client_lib/doc/User.md | 6 +- .../petstore_client_lib/lib/api/pet_api.dart | 56 ++++----- .../lib/api/store_api.dart | 24 ++-- .../petstore_client_lib/lib/model/order.dart | 30 ++--- .../petstore_client_lib/lib/model/pet.dart | 14 +-- .../petstore_client_lib/lib/model/user.dart | 44 ++++---- .../dart2/petstore_client_lib_fake/README.md | 4 +- .../doc/AllOfWithSingleRef.md | 2 +- .../petstore_client_lib_fake/doc/Animal.md | 2 +- .../doc/AnotherFakeApi.md | 8 +- .../doc/ArrayOfArrayOfNumberOnly.md | 2 +- .../doc/ArrayOfNumberOnly.md | 2 +- .../doc/Capitalization.md | 8 +- .../dart2/petstore_client_lib_fake/doc/Cat.md | 2 +- .../doc/ChildWithNullable.md | 4 +- .../dart2/petstore_client_lib_fake/doc/Dog.md | 2 +- .../petstore_client_lib_fake/doc/EnumTest.md | 8 +- .../petstore_client_lib_fake/doc/FakeApi.md | 64 +++++------ .../doc/FakeBigDecimalMap200Response.md | 4 +- .../doc/FakeClassnameTags123Api.md | 8 +- .../doc/FormatTest.md | 2 +- .../doc/HealthCheckResult.md | 2 +- ...dPropertiesAndAdditionalPropertiesClass.md | 2 +- .../petstore_client_lib_fake/doc/ModelFile.md | 2 +- .../doc/NumberOnly.md | 2 +- .../doc/ObjectWithDeprecatedFields.md | 2 +- .../petstore_client_lib_fake/doc/Order.md | 4 +- .../doc/ParentWithNullable.md | 2 +- .../dart2/petstore_client_lib_fake/doc/Pet.md | 2 +- .../petstore_client_lib_fake/doc/PetApi.md | 52 ++++----- .../doc/SpecialModelName.md | 2 +- ...lineFreeformAdditionalPropertiesRequest.md | 2 +- .../petstore_client_lib_fake/doc/User.md | 6 +- .../lib/api/another_fake_api.dart | 12 +- .../lib/api/fake_api.dart | 98 ++++++++-------- .../lib/api/fake_classname_tags123_api.dart | 12 +- .../lib/api/pet_api.dart | 86 +++++++------- .../lib/model/all_of_with_single_ref.dart | 16 +-- .../lib/model/animal.dart | 14 +-- .../model/array_of_array_of_number_only.dart | 14 +-- .../lib/model/array_of_number_only.dart | 14 +-- .../lib/model/capitalization.dart | 58 +++++----- .../lib/model/cat.dart | 14 +-- .../lib/model/child_with_nullable.dart | 36 +++--- .../lib/model/dog.dart | 14 +-- .../lib/model/enum_class.dart | 6 +- .../lib/model/enum_test.dart | 82 +++++++------- .../fake_big_decimal_map200_response.dart | 28 ++--- .../lib/model/format_test.dart | 16 +-- .../lib/model/health_check_result.dart | 16 +-- .../lib/model/map_test.dart | 6 +- ...rties_and_additional_properties_class.dart | 16 +-- .../lib/model/model_file.dart | 16 +-- .../lib/model/number_only.dart | 16 +-- .../model/object_with_deprecated_fields.dart | 16 +-- .../lib/model/order.dart | 30 ++--- .../lib/model/parent_with_nullable.dart | 22 ++-- .../lib/model/pet.dart | 14 +-- .../lib/model/special_model_name.dart | 16 +-- ...reeform_additional_properties_request.dart | 16 +-- .../lib/model/user.dart | 44 ++++---- .../.openapi-generator/FILES | 58 ---------- .../README.md | 4 +- .../doc/AllOfWithSingleRef.md | 2 +- .../doc/Animal.md | 2 +- .../doc/AnotherFakeApi.md | 8 +- .../doc/ArrayOfArrayOfNumberOnly.md | 2 +- .../doc/ArrayOfNumberOnly.md | 2 +- .../doc/Capitalization.md | 8 +- .../doc/Cat.md | 2 +- .../doc/ChildWithNullable.md | 4 +- .../doc/Dog.md | 2 +- .../doc/EnumTest.md | 8 +- .../doc/FakeApi.md | 64 +++++------ .../doc/FakeBigDecimalMap200Response.md | 4 +- .../doc/FakeClassnameTags123Api.md | 8 +- .../doc/FormatTest.md | 2 +- .../doc/HealthCheckResult.md | 2 +- ...dPropertiesAndAdditionalPropertiesClass.md | 2 +- .../doc/ModelFile.md | 2 +- .../doc/NumberOnly.md | 2 +- .../doc/ObjectWithDeprecatedFields.md | 2 +- .../doc/Order.md | 4 +- .../doc/ParentWithNullable.md | 2 +- .../doc/Pet.md | 2 +- .../doc/PetApi.md | 52 ++++----- .../doc/SpecialModelName.md | 2 +- ...lineFreeformAdditionalPropertiesRequest.md | 2 +- .../doc/User.md | 6 +- .../lib/api/another_fake_api.dart | 12 +- .../lib/api/fake_api.dart | 98 ++++++++-------- .../lib/api/fake_classname_tags123_api.dart | 12 +- .../lib/api/pet_api.dart | 86 +++++++------- .../lib/model/all_of_with_single_ref.dart | 16 +-- .../lib/model/animal.dart | 14 +-- .../model/array_of_array_of_number_only.dart | 14 +-- .../lib/model/array_of_number_only.dart | 14 +-- .../lib/model/capitalization.dart | 58 +++++----- .../lib/model/cat.dart | 14 +-- .../lib/model/child_with_nullable.dart | 36 +++--- .../lib/model/dog.dart | 14 +-- .../lib/model/enum_class.dart | 21 +++- .../lib/model/enum_test.dart | 70 ++++++------ .../fake_big_decimal_map200_response.dart | 28 ++--- .../lib/model/format_test.dart | 16 +-- .../lib/model/health_check_result.dart | 16 +-- ...rties_and_additional_properties_class.dart | 16 +-- .../lib/model/model_file.dart | 16 +-- .../lib/model/number_only.dart | 16 +-- .../model/object_with_deprecated_fields.dart | 16 +-- .../lib/model/order.dart | 30 ++--- .../lib/model/parent_with_nullable.dart | 22 ++-- .../lib/model/pet.dart | 14 +-- .../lib/model/special_model_name.dart | 16 +-- ...reeform_additional_properties_request.dart | 16 +-- .../lib/model/user.dart | 44 ++++---- 323 files changed, 2503 insertions(+), 2583 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java index 9015be82094..007c727801b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java @@ -58,7 +58,7 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { @Setter protected String pubRepository = null; @Setter protected String pubPublishTo = null; @Setter protected boolean useEnumExtension = false; - @Setter protected boolean useLowerCamelCase = true; + @Setter protected boolean useLowerCamelCase = false; @Setter protected String sourceFolder = "src"; protected String libPath = "lib" + File.separator; protected String apiDocPath = "doc/"; @@ -306,9 +306,9 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { } if (additionalProperties.containsKey(USE_LOWER_CAMEL_CASE)) { - this.setUseEnumExtension(convertPropertyToBooleanAndWriteBack(USE_LOWER_CAMEL_CASE)); + this.setUseLowerCamelCase(convertPropertyToBooleanAndWriteBack(USE_LOWER_CAMEL_CASE)); } else { - additionalProperties.put(USE_ENUM_EXTENSION, useLowerCamelCase); + additionalProperties.put(USE_LOWER_CAMEL_CASE, useLowerCamelCase); } if (additionalProperties.containsKey(CodegenConstants.SOURCE_FOLDER)) { @@ -395,8 +395,8 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { } name = name.replaceAll("^_", ""); - // if it's all upper case, do nothing - if (!useLowerCamelCase && name.matches("^[A-Z_]*$")) { + // if it's all upper case and more than two letters + if (name.matches("^[A-Z_]*$")) { return name; } @@ -408,14 +408,9 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { // remove the rest name = sanitizeName(name); - if (useLowerCamelCase) { - //to camelize it correctly it needs to be lower cased - name = camelize(name.toLowerCase(), LOWERCASE_FIRST_LETTER); - } else { - // camelize (lower first character) the variable name - // pet_id => petId - name = camelize(name, LOWERCASE_FIRST_LETTER); - } + // camelize (lower first character) the variable name + // pet_id => petI + name = camelize(name, LOWERCASE_FIRST_LETTER); if (name.matches("^\\d.*")) { name = "n" + name; @@ -746,9 +741,14 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { return enumNameMapping.get(value); } - if (value.length() == 0) { + if (value.isEmpty()) { return "empty"; } + + if (useLowerCamelCase && value.matches("^[A-Z_]*$")) { + value = value.toLowerCase(); + } + if (("number".equalsIgnoreCase(datatype) || "double".equalsIgnoreCase(datatype) || "int".equalsIgnoreCase(datatype)) && diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/DartClientOptionsTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/DartClientOptionsTest.java index 87dabbbfd00..1db5c5625b3 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/DartClientOptionsTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/DartClientOptionsTest.java @@ -52,6 +52,7 @@ public class DartClientOptionsTest extends AbstractOptionsTest { verify(clientCodegen).setPubPublishTo(DartClientOptionsProvider.PUB_PUBLISH_TO_VALUE); verify(clientCodegen).setSourceFolder(DartClientOptionsProvider.SOURCE_FOLDER_VALUE); verify(clientCodegen).setUseEnumExtension(Boolean.parseBoolean(DartClientOptionsProvider.USE_ENUM_EXTENSION)); + verify(clientCodegen).setUseLowerCamelCase(Boolean.parseBoolean(DartClientOptionsProvider.USE_LOWER_CAMEL_CASE)); verify(clientCodegen).setEnumUnknownDefaultCase(Boolean.parseBoolean(DartClientOptionsProvider.ENUM_UNKNOWN_DEFAULT_CASE_VALUE)); } } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/dio/DartDioClientOptionsTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/dio/DartDioClientOptionsTest.java index cb3350d57e2..0437eaf86b3 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/dio/DartDioClientOptionsTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dart/dio/DartDioClientOptionsTest.java @@ -54,6 +54,7 @@ public class DartDioClientOptionsTest extends AbstractOptionsTest { verify(clientCodegen).setDateLibrary(DartDioClientCodegen.DATE_LIBRARY_DEFAULT); verify(clientCodegen).setLibrary(DartDioClientCodegen.SERIALIZATION_LIBRARY_DEFAULT); verify(clientCodegen).setEqualityCheckMethod(DartDioClientCodegen.EQUALITY_CHECK_METHOD_DEFAULT); + verify(clientCodegen).setUseLowerCamelCase(Boolean.parseBoolean(DartDioClientOptionsProvider.USE_LOWER_CAMEL_CASE)); verify(clientCodegen).setEnumUnknownDefaultCase(Boolean.parseBoolean(DartDioClientOptionsProvider.ENUM_UNKNOWN_DEFAULT_CASE_VALUE)); } } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/options/DartClientOptionsProvider.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/options/DartClientOptionsProvider.java index 50bbfdb5e9b..fdc5e00573b 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/options/DartClientOptionsProvider.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/options/DartClientOptionsProvider.java @@ -38,6 +38,7 @@ public class DartClientOptionsProvider implements OptionsProvider { public static final String PUB_PUBLISH_TO_VALUE = "Publish To"; public static final String SOURCE_FOLDER_VALUE = "src"; public static final String USE_ENUM_EXTENSION = "true"; + public static final String USE_LOWER_CAMEL_CASE = "false"; public static final String ALLOW_UNICODE_IDENTIFIERS_VALUE = "false"; public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true"; public static final String ENUM_UNKNOWN_DEFAULT_CASE_VALUE = "false"; @@ -64,6 +65,7 @@ public class DartClientOptionsProvider implements OptionsProvider { .put(DartClientCodegen.PUB_PUBLISH_TO, PUB_PUBLISH_TO_VALUE) .put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE) .put(DartClientCodegen.USE_ENUM_EXTENSION, USE_ENUM_EXTENSION) + .put(DartClientCodegen.USE_LOWER_CAMEL_CASE, USE_LOWER_CAMEL_CASE) .put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, ALLOW_UNICODE_IDENTIFIERS_VALUE) .put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE) .put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true") diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/options/DartDioClientOptionsProvider.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/options/DartDioClientOptionsProvider.java index bcda220f432..ef5c34543cc 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/options/DartDioClientOptionsProvider.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/options/DartDioClientOptionsProvider.java @@ -40,6 +40,7 @@ public class DartDioClientOptionsProvider implements OptionsProvider { public static final String PUB_REPOSITORY_VALUE = "Repository"; public static final String PUB_PUBLISH_TO_VALUE = "Publish to"; public static final String ENUM_UNKNOWN_DEFAULT_CASE_VALUE = "false"; + public static final String USE_LOWER_CAMEL_CASE = "false"; @Override public String getLanguage() { @@ -67,6 +68,7 @@ public class DartDioClientOptionsProvider implements OptionsProvider { .put(DartDioClientCodegen.EQUALITY_CHECK_METHOD, DartDioClientCodegen.EQUALITY_CHECK_METHOD_DEFAULT) .put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE) .put(DartDioClientCodegen.USE_ENUM_EXTENSION, USE_ENUM_EXTENSION) + .put(DartDioClientCodegen.USE_LOWER_CAMEL_CASE, USE_LOWER_CAMEL_CASE) .put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, ALLOW_UNICODE_IDENTIFIERS_VALUE) .put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE) .put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true") diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-use-lower-camel-case.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-use-lower-camel-case.yaml index e4957b4e19d..8bb19186f3c 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-use-lower-camel-case.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-use-lower-camel-case.yaml @@ -1668,6 +1668,11 @@ components: - _abc - '-efg' - (xyz) + - TEST + - TEST_A + - TEST_A_ABC + - TEST_a + - tEST Enum_Test: type: object required: diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/README.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/README.md index 6fb7317f863..7178005ffbe 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/README.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/README.md @@ -49,10 +49,10 @@ import 'package:openapi/openapi.dart'; final api = Openapi().getBarApi(); -final BarCreate barcreate = ; // BarCreate | +final BarCreate barCreate = ; // BarCreate | try { - final response = await api.createBar(barcreate); + final response = await api.createBar(barCreate); print(response); } catch on DioException (e) { print("Exception when calling BarApi->createBar: $e\n"); diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Bar.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Bar.md index 6ca4a897157..4cccc863a48 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Bar.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Bar.md @@ -9,12 +9,12 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **String** | | -**barpropa** | **String** | | [optional] -**foopropb** | **String** | | [optional] +**barPropA** | **String** | | [optional] +**fooPropB** | **String** | | [optional] **foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional] **href** | **String** | Hyperlink reference | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/BarApi.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarApi.md index fc31bb2aa1a..a6f23c00210 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarApi.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **createBar** -> Bar createBar(barcreate) +> Bar createBar(barCreate) Create a Bar @@ -22,10 +22,10 @@ Create a Bar import 'package:openapi/api.dart'; final api = Openapi().getBarApi(); -final BarCreate barcreate = ; // BarCreate | +final BarCreate barCreate = ; // BarCreate | try { - final response = api.createBar(barcreate); + final response = api.createBar(barCreate); print(response); } catch on DioException (e) { print('Exception when calling BarApi->createBar: $e\n'); @@ -36,7 +36,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **barcreate** | [**BarCreate**](BarCreate.md)| | + **barCreate** | [**BarCreate**](BarCreate.md)| | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarCreate.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarCreate.md index 70a8b149416..c0b4ba6edc9 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarCreate.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarCreate.md @@ -8,13 +8,13 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**barpropa** | **String** | | [optional] -**foopropb** | **String** | | [optional] +**barPropA** | **String** | | [optional] +**fooPropB** | **String** | | [optional] **foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/BarRef.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarRef.md index ca33215df45..cab0e7e5738 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarRef.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarRef.md @@ -9,11 +9,11 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the related entity. | [optional] -**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] +**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/BarRefOrValue.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarRefOrValue.md index 3b18db86bd4..f88727e11aa 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarRefOrValue.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/BarRefOrValue.md @@ -9,15 +9,15 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **String** | unique identifier | -**barpropa** | **String** | | [optional] -**foopropb** | **String** | | [optional] +**barPropA** | **String** | | [optional] +**fooPropB** | **String** | | [optional] **foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional] **href** | **String** | Hyperlink reference | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | **name** | **String** | Name of the related entity. | [optional] -**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] +**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] [[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/oneof_polymorphism_and_inheritance/doc/Entity.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Entity.md index 22723a0bf7c..5ba2144b44f 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Entity.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Entity.md @@ -10,8 +10,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/EntityRef.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/EntityRef.md index 4cb29d7527a..80eae55f414 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/EntityRef.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/EntityRef.md @@ -9,11 +9,11 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the related entity. | [optional] -**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] +**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/Extensible.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Extensible.md index d0e7caf9cf1..7a781e578ea 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Extensible.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Extensible.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/Foo.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Foo.md index 81ffbcbc751..2627691fefe 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Foo.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Foo.md @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**foopropa** | **String** | | [optional] -**foopropb** | **String** | | [optional] +**fooPropA** | **String** | | [optional] +**fooPropB** | **String** | | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/FooRef.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/FooRef.md index 009f3cffed2..bfa62bd4f54 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/FooRef.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/FooRef.md @@ -8,13 +8,13 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**foorefpropa** | **String** | | [optional] +**foorefPropA** | **String** | | [optional] **name** | **String** | Name of the related entity. | [optional] -**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] +**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/FooRefOrValue.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/FooRefOrValue.md index ce104c12ede..9bc8dec1057 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/FooRefOrValue.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/FooRefOrValue.md @@ -8,16 +8,16 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**foopropa** | **String** | | [optional] -**foopropb** | **String** | | [optional] +**fooPropA** | **String** | | [optional] +**fooPropB** | **String** | | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | -**foorefpropa** | **String** | | [optional] +**foorefPropA** | **String** | | [optional] **name** | **String** | Name of the related entity. | [optional] -**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] +**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional] [[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/oneof_polymorphism_and_inheritance/doc/Fruit.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Fruit.md index ebba72bb582..91c1f1cf9b5 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Fruit.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Fruit.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fruittype** | [**FruitType**](FruitType.md) | | +**fruitType** | [**FruitType**](FruitType.md) | | **seeds** | **int** | | **length** | **int** | | diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Pasta.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Pasta.md index ba936d6869c..034ff420d32 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Pasta.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Pasta.md @@ -11,8 +11,8 @@ Name | Type | Description | Notes **vendor** | **String** | | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/Pizza.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Pizza.md index 0041f71da65..e4b040a6a79 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Pizza.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/Pizza.md @@ -8,11 +8,11 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pizzasize** | **num** | | [optional] +**pizzaSize** | **num** | | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/doc/PizzaSpeziale.md b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/PizzaSpeziale.md index 7802c2184f2..4e3800773dc 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/PizzaSpeziale.md +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/doc/PizzaSpeziale.md @@ -9,11 +9,11 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **toppings** | **String** | | [optional] -**pizzasize** | **num** | | [optional] +**pizzaSize** | **num** | | [optional] **href** | **String** | Hyperlink reference | [optional] **id** | **String** | unique identifier | [optional] -**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] -**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional] +**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] +**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional] **atType** | **String** | When sub-classing, this defines the sub-class Extensible name | [[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/oneof_polymorphism_and_inheritance/lib/src/api/bar_api.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/bar_api.dart index 80575809203..50e9bfbc2e9 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/bar_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/api/bar_api.dart @@ -23,7 +23,7 @@ class BarApi { /// /// /// Parameters: - /// * [barcreate] + /// * [barCreate] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -34,7 +34,7 @@ class BarApi { /// Returns a [Future] containing a [Response] with a [Bar] as data /// Throws [DioException] if API call or serialization fails Future> createBar({ - required BarCreate barcreate, + required BarCreate barCreate, CancelToken? cancelToken, Map? headers, Map? extra, @@ -60,7 +60,7 @@ class BarApi { try { const _type = FullType(BarCreate); - _bodyData = _serializers.serialize(barcreate, specifiedType: _type); + _bodyData = _serializers.serialize(barCreate, specifiedType: _type); } catch(error, stackTrace) { throw DioException( diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar.dart index 5ee715b3b20..cb769550b4f 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar.dart @@ -14,23 +14,23 @@ part 'bar.g.dart'; /// /// Properties: /// * [id] -/// * [barpropa] -/// * [foopropb] +/// * [barPropA] +/// * [fooPropB] /// * [foo] /// * [href] - Hyperlink reference -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue() abstract class Bar implements Entity, Built { @BuiltValueField(wireName: r'foo') FooRefOrValue? get foo; - @BuiltValueField(wireName: r'barPropA') - String? get barpropa; - @BuiltValueField(wireName: r'fooPropB') - String? get foopropb; + String? get fooPropB; + + @BuiltValueField(wireName: r'barPropA') + String? get barPropA; Bar._(); @@ -55,10 +55,10 @@ class _$BarSerializer implements PrimitiveSerializer { Bar object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.atSchemalocation != null) { + if (object.atSchemaLocation != null) { yield r'@schemaLocation'; yield serializers.serialize( - object.atSchemalocation, + object.atSchemaLocation, specifiedType: const FullType(String), ); } @@ -69,6 +69,20 @@ class _$BarSerializer implements PrimitiveSerializer { specifiedType: const FullType(FooRefOrValue), ); } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } + if (object.fooPropB != null) { + yield r'fooPropB'; + yield serializers.serialize( + object.fooPropB, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -83,32 +97,18 @@ class _$BarSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.barpropa != null) { - yield r'barPropA'; - yield serializers.serialize( - object.barpropa, - specifiedType: const FullType(String), - ); - } - if (object.foopropb != null) { - yield r'fooPropB'; - yield serializers.serialize( - object.foopropb, - specifiedType: const FullType(String), - ); - } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, specifiedType: const FullType(String), ); + if (object.barPropA != null) { + yield r'barPropA'; + yield serializers.serialize( + object.barPropA, + specifiedType: const FullType(String), + ); + } } @override @@ -137,7 +137,7 @@ class _$BarSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(String), ) as String; - result.atSchemalocation = valueDes; + result.atSchemaLocation = valueDes; break; case r'foo': final valueDes = serializers.deserialize( @@ -146,6 +146,20 @@ class _$BarSerializer implements PrimitiveSerializer { ) as FooRefOrValue; result.foo.replace(valueDes); break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; + case r'fooPropB': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.fooPropB = valueDes; + break; case r'href': final valueDes = serializers.deserialize( value, @@ -160,27 +174,6 @@ class _$BarSerializer implements PrimitiveSerializer { ) as String; result.id = valueDes; break; - case r'barPropA': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.barpropa = valueDes; - break; - case r'fooPropB': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.foopropb = valueDes; - break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, @@ -188,6 +181,13 @@ class _$BarSerializer implements PrimitiveSerializer { ) as String; result.atType = valueDes; break; + case r'barPropA': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.barPropA = valueDes; + break; default: unhandled.add(key); unhandled.add(value); diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_create.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_create.dart index dd2246bc8fb..8942b6433f5 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_create.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_create.dart @@ -13,24 +13,24 @@ part 'bar_create.g.dart'; /// BarCreate /// /// Properties: -/// * [barpropa] -/// * [foopropb] +/// * [barPropA] +/// * [fooPropB] /// * [foo] /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue() abstract class BarCreate implements Entity, Built { @BuiltValueField(wireName: r'foo') FooRefOrValue? get foo; - @BuiltValueField(wireName: r'barPropA') - String? get barpropa; - @BuiltValueField(wireName: r'fooPropB') - String? get foopropb; + String? get fooPropB; + + @BuiltValueField(wireName: r'barPropA') + String? get barPropA; BarCreate._(); @@ -55,10 +55,10 @@ class _$BarCreateSerializer implements PrimitiveSerializer { BarCreate object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.atSchemalocation != null) { + if (object.atSchemaLocation != null) { yield r'@schemaLocation'; yield serializers.serialize( - object.atSchemalocation, + object.atSchemaLocation, specifiedType: const FullType(String), ); } @@ -69,6 +69,20 @@ class _$BarCreateSerializer implements PrimitiveSerializer { specifiedType: const FullType(FooRefOrValue), ); } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } + if (object.fooPropB != null) { + yield r'fooPropB'; + yield serializers.serialize( + object.fooPropB, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -83,32 +97,18 @@ class _$BarCreateSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.barpropa != null) { - yield r'barPropA'; - yield serializers.serialize( - object.barpropa, - specifiedType: const FullType(String), - ); - } - if (object.foopropb != null) { - yield r'fooPropB'; - yield serializers.serialize( - object.foopropb, - specifiedType: const FullType(String), - ); - } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, specifiedType: const FullType(String), ); + if (object.barPropA != null) { + yield r'barPropA'; + yield serializers.serialize( + object.barPropA, + specifiedType: const FullType(String), + ); + } } @override @@ -137,7 +137,7 @@ class _$BarCreateSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(String), ) as String; - result.atSchemalocation = valueDes; + result.atSchemaLocation = valueDes; break; case r'foo': final valueDes = serializers.deserialize( @@ -146,6 +146,20 @@ class _$BarCreateSerializer implements PrimitiveSerializer { ) as FooRefOrValue; result.foo.replace(valueDes); break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; + case r'fooPropB': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.fooPropB = valueDes; + break; case r'href': final valueDes = serializers.deserialize( value, @@ -160,27 +174,6 @@ class _$BarCreateSerializer implements PrimitiveSerializer { ) as String; result.id = valueDes; break; - case r'barPropA': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.barpropa = valueDes; - break; - case r'fooPropB': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.foopropb = valueDes; - break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, @@ -188,6 +181,13 @@ class _$BarCreateSerializer implements PrimitiveSerializer { ) as String; result.atType = valueDes; break; + case r'barPropA': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.barPropA = valueDes; + break; default: unhandled.add(key); unhandled.add(value); diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_ref.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_ref.dart index c9e3517665f..98f0724b35d 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_ref.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_ref.dart @@ -13,11 +13,11 @@ part 'bar_ref.g.dart'; /// /// Properties: /// * [name] - Name of the related entity. -/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation. +/// * [atReferredType] - The actual type of the target instance when needed for disambiguation. /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue() abstract class BarRef implements EntityRef, Built { @@ -44,17 +44,17 @@ class _$BarRefSerializer implements PrimitiveSerializer { BarRef object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.atSchemalocation != null) { + if (object.atSchemaLocation != null) { yield r'@schemaLocation'; yield serializers.serialize( - object.atSchemalocation, + object.atSchemaLocation, specifiedType: const FullType(String), ); } - if (object.atReferredtype != null) { + if (object.atReferredType != null) { yield r'@referredType'; yield serializers.serialize( - object.atReferredtype, + object.atReferredType, specifiedType: const FullType(String), ); } @@ -65,6 +65,13 @@ class _$BarRefSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -79,13 +86,6 @@ class _$BarRefSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, @@ -119,14 +119,14 @@ class _$BarRefSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(String), ) as String; - result.atSchemalocation = valueDes; + result.atSchemaLocation = valueDes; break; case r'@referredType': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.atReferredtype = valueDes; + result.atReferredType = valueDes; break; case r'name': final valueDes = serializers.deserialize( @@ -135,6 +135,13 @@ class _$BarRefSerializer implements PrimitiveSerializer { ) as String; result.name = valueDes; break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; case r'href': final valueDes = serializers.deserialize( value, @@ -149,13 +156,6 @@ class _$BarRefSerializer implements PrimitiveSerializer { ) as String; result.id = valueDes; break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_ref_or_value.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_ref_or_value.dart index 89f5e4b39cb..f880cb55795 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_ref_or_value.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/bar_ref_or_value.dart @@ -16,15 +16,15 @@ part 'bar_ref_or_value.g.dart'; /// /// Properties: /// * [id] - unique identifier -/// * [barpropa] -/// * [foopropb] +/// * [barPropA] +/// * [fooPropB] /// * [foo] /// * [href] - Hyperlink reference -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name /// * [name] - Name of the related entity. -/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation. +/// * [atReferredType] - The actual type of the target instance when needed for disambiguation. @BuiltValue() abstract class BarRefOrValue implements Built { /// One Of [Bar], [BarRef] diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/entity.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/entity.dart index ddf9abda578..7e27fab4738 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/entity.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/entity.dart @@ -21,8 +21,8 @@ part 'entity.g.dart'; /// Properties: /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue(instantiable: false) abstract class Entity implements Addressable, Extensible { @@ -100,6 +100,20 @@ class _$EntitySerializer implements PrimitiveSerializer { Entity object, { FullType specifiedType = FullType.unspecified, }) sync* { + if (object.atSchemaLocation != null) { + yield r'@schemaLocation'; + yield serializers.serialize( + object.atSchemaLocation, + specifiedType: const FullType(String), + ); + } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -114,20 +128,6 @@ class _$EntitySerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.atSchemalocation != null) { - yield r'@schemaLocation'; - yield serializers.serialize( - object.atSchemalocation, - specifiedType: const FullType(String), - ); - } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, @@ -232,6 +232,20 @@ class _$$EntitySerializer implements PrimitiveSerializer<$Entity> { final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { + case r'@schemaLocation': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atSchemaLocation = valueDes; + break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; case r'href': final valueDes = serializers.deserialize( value, @@ -246,20 +260,6 @@ class _$$EntitySerializer implements PrimitiveSerializer<$Entity> { ) as String; result.id = valueDes; break; - case r'@schemaLocation': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atSchemalocation = valueDes; - break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/entity_ref.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/entity_ref.dart index 705967fe006..7502c94dd7f 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/entity_ref.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/entity_ref.dart @@ -16,17 +16,17 @@ part 'entity_ref.g.dart'; /// /// Properties: /// * [name] - Name of the related entity. -/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation. +/// * [atReferredType] - The actual type of the target instance when needed for disambiguation. /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue(instantiable: false) abstract class EntityRef implements Addressable, Extensible { /// The actual type of the target instance when needed for disambiguation. @BuiltValueField(wireName: r'@referredType') - String? get atReferredtype; + String? get atReferredType; /// Name of the related entity. @BuiltValueField(wireName: r'name') @@ -78,17 +78,17 @@ class _$EntityRefSerializer implements PrimitiveSerializer { EntityRef object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.atReferredtype != null) { - yield r'@referredType'; + if (object.atSchemaLocation != null) { + yield r'@schemaLocation'; yield serializers.serialize( - object.atReferredtype, + object.atSchemaLocation, specifiedType: const FullType(String), ); } - if (object.atSchemalocation != null) { - yield r'@schemaLocation'; + if (object.atReferredType != null) { + yield r'@referredType'; yield serializers.serialize( - object.atSchemalocation, + object.atReferredType, specifiedType: const FullType(String), ); } @@ -99,6 +99,13 @@ class _$EntityRefSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -113,13 +120,6 @@ class _$EntityRefSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, @@ -204,19 +204,19 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> { final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { - case r'@referredType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atReferredtype = valueDes; - break; case r'@schemaLocation': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.atSchemalocation = valueDes; + result.atSchemaLocation = valueDes; + break; + case r'@referredType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atReferredType = valueDes; break; case r'name': final valueDes = serializers.deserialize( @@ -225,6 +225,13 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> { ) as String; result.name = valueDes; break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; case r'href': final valueDes = serializers.deserialize( value, @@ -239,13 +246,6 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> { ) as String; result.id = valueDes; break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/extensible.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/extensible.dart index ce9bc5ee0d9..2423fb27641 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/extensible.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/extensible.dart @@ -11,18 +11,18 @@ part 'extensible.g.dart'; /// Extensible /// /// Properties: -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue(instantiable: false) abstract class Extensible { /// A URI to a JSON-Schema file that defines additional attributes and relationships @BuiltValueField(wireName: r'@schemaLocation') - String? get atSchemalocation; + String? get atSchemaLocation; /// When sub-classing, this defines the super-class @BuiltValueField(wireName: r'@baseType') - String? get atBasetype; + String? get atBaseType; /// When sub-classing, this defines the sub-class Extensible name @BuiltValueField(wireName: r'@type') @@ -44,17 +44,17 @@ class _$ExtensibleSerializer implements PrimitiveSerializer { Extensible object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.atSchemalocation != null) { + if (object.atSchemaLocation != null) { yield r'@schemaLocation'; yield serializers.serialize( - object.atSchemalocation, + object.atSchemaLocation, specifiedType: const FullType(String), ); } - if (object.atBasetype != null) { + if (object.atBaseType != null) { yield r'@baseType'; yield serializers.serialize( - object.atBasetype, + object.atBaseType, specifiedType: const FullType(String), ); } @@ -131,14 +131,14 @@ class _$$ExtensibleSerializer implements PrimitiveSerializer<$Extensible> { value, specifiedType: const FullType(String), ) as String; - result.atSchemalocation = valueDes; + result.atSchemaLocation = valueDes; break; case r'@baseType': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.atBasetype = valueDes; + result.atBaseType = valueDes; break; case r'@type': final valueDes = serializers.deserialize( diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo.dart index 4ca53742c0c..d2e1f5817f2 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo.dart @@ -12,20 +12,20 @@ part 'foo.g.dart'; /// Foo /// /// Properties: -/// * [foopropa] -/// * [foopropb] +/// * [fooPropA] +/// * [fooPropB] /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue() abstract class Foo implements Entity, Built { - @BuiltValueField(wireName: r'fooPropB') - String? get foopropb; - @BuiltValueField(wireName: r'fooPropA') - String? get foopropa; + String? get fooPropA; + + @BuiltValueField(wireName: r'fooPropB') + String? get fooPropB; Foo._(); @@ -50,10 +50,31 @@ class _$FooSerializer implements PrimitiveSerializer { Foo object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.atSchemalocation != null) { + if (object.atSchemaLocation != null) { yield r'@schemaLocation'; yield serializers.serialize( - object.atSchemalocation, + object.atSchemaLocation, + specifiedType: const FullType(String), + ); + } + if (object.fooPropA != null) { + yield r'fooPropA'; + yield serializers.serialize( + object.fooPropA, + specifiedType: const FullType(String), + ); + } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } + if (object.fooPropB != null) { + yield r'fooPropB'; + yield serializers.serialize( + object.fooPropB, specifiedType: const FullType(String), ); } @@ -71,27 +92,6 @@ class _$FooSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.foopropb != null) { - yield r'fooPropB'; - yield serializers.serialize( - object.foopropb, - specifiedType: const FullType(String), - ); - } - if (object.foopropa != null) { - yield r'fooPropA'; - yield serializers.serialize( - object.foopropa, - specifiedType: const FullType(String), - ); - } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, @@ -125,7 +125,28 @@ class _$FooSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(String), ) as String; - result.atSchemalocation = valueDes; + result.atSchemaLocation = valueDes; + break; + case r'fooPropA': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.fooPropA = valueDes; + break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; + case r'fooPropB': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.fooPropB = valueDes; break; case r'href': final valueDes = serializers.deserialize( @@ -141,27 +162,6 @@ class _$FooSerializer implements PrimitiveSerializer { ) as String; result.id = valueDes; break; - case r'fooPropB': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.foopropb = valueDes; - break; - case r'fooPropA': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.foopropa = valueDes; - break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo_ref.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo_ref.dart index 8dd4ee83400..3f032ee8e08 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo_ref.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo_ref.dart @@ -12,18 +12,18 @@ part 'foo_ref.g.dart'; /// FooRef /// /// Properties: -/// * [foorefpropa] +/// * [foorefPropA] /// * [name] - Name of the related entity. -/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation. +/// * [atReferredType] - The actual type of the target instance when needed for disambiguation. /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue() abstract class FooRef implements EntityRef, Built { @BuiltValueField(wireName: r'foorefPropA') - String? get foorefpropa; + String? get foorefPropA; FooRef._(); @@ -48,17 +48,24 @@ class _$FooRefSerializer implements PrimitiveSerializer { FooRef object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.atSchemalocation != null) { + if (object.atSchemaLocation != null) { yield r'@schemaLocation'; yield serializers.serialize( - object.atSchemalocation, + object.atSchemaLocation, specifiedType: const FullType(String), ); } - if (object.atReferredtype != null) { + if (object.atReferredType != null) { yield r'@referredType'; yield serializers.serialize( - object.atReferredtype, + object.atReferredType, + specifiedType: const FullType(String), + ); + } + if (object.foorefPropA != null) { + yield r'foorefPropA'; + yield serializers.serialize( + object.foorefPropA, specifiedType: const FullType(String), ); } @@ -69,6 +76,13 @@ class _$FooRefSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -83,20 +97,6 @@ class _$FooRefSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.foorefpropa != null) { - yield r'foorefPropA'; - yield serializers.serialize( - object.foorefpropa, - specifiedType: const FullType(String), - ); - } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, @@ -130,14 +130,21 @@ class _$FooRefSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(String), ) as String; - result.atSchemalocation = valueDes; + result.atSchemaLocation = valueDes; break; case r'@referredType': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.atReferredtype = valueDes; + result.atReferredType = valueDes; + break; + case r'foorefPropA': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.foorefPropA = valueDes; break; case r'name': final valueDes = serializers.deserialize( @@ -146,6 +153,13 @@ class _$FooRefSerializer implements PrimitiveSerializer { ) as String; result.name = valueDes; break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; case r'href': final valueDes = serializers.deserialize( value, @@ -160,20 +174,6 @@ class _$FooRefSerializer implements PrimitiveSerializer { ) as String; result.id = valueDes; break; - case r'foorefPropA': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.foorefpropa = valueDes; - break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo_ref_or_value.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo_ref_or_value.dart index c5c3710da77..d8164c5b907 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo_ref_or_value.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/foo_ref_or_value.dart @@ -14,16 +14,16 @@ part 'foo_ref_or_value.g.dart'; /// FooRefOrValue /// /// Properties: -/// * [foopropa] -/// * [foopropb] +/// * [fooPropA] +/// * [fooPropB] /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name -/// * [foorefpropa] +/// * [foorefPropA] /// * [name] - Name of the related entity. -/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation. +/// * [atReferredType] - The actual type of the target instance when needed for disambiguation. @BuiltValue() abstract class FooRefOrValue implements Built { /// One Of [Foo], [FooRef] diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/fruit.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/fruit.dart index 7f8ec3b4637..31b61361de5 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/fruit.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/fruit.dart @@ -15,14 +15,14 @@ part 'fruit.g.dart'; /// Fruit /// /// Properties: -/// * [fruittype] +/// * [fruitType] /// * [seeds] /// * [length] @BuiltValue() abstract class Fruit implements Built { @BuiltValueField(wireName: r'fruitType') - FruitType get fruittype; - // enum fruittypeEnum { APPLE, BANANA, }; + FruitType get fruitType; + // enum fruitTypeEnum { APPLE, BANANA, }; /// One Of [Apple], [Banana] OneOf get oneOf; @@ -82,7 +82,7 @@ class _$FruitSerializer implements PrimitiveSerializer { }) sync* { yield r'fruitType'; yield serializers.serialize( - object.fruittype, + object.fruitType, specifiedType: const FullType(FruitType), ); } @@ -116,7 +116,7 @@ class _$FruitSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(FruitType), ) as FruitType; - result.fruittype = valueDes; + result.fruitType = valueDes; break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/fruit_type.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/fruit_type.dart index 85b674977c1..3985f198fd0 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/fruit_type.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/fruit_type.dart @@ -12,9 +12,9 @@ part 'fruit_type.g.dart'; class FruitType extends EnumClass { @BuiltValueEnumConst(wireName: r'APPLE') - static const FruitType apple = _$apple; + static const FruitType APPLE = _$APPLE; @BuiltValueEnumConst(wireName: r'BANANA') - static const FruitType banana = _$banana; + static const FruitType BANANA = _$BANANA; @BuiltValueEnumConst(wireName: r'unknown_default_open_api', fallback: true) static const FruitType unknownDefaultOpenApi = _$unknownDefaultOpenApi; diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pasta.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pasta.dart index 4acab0087fd..e8b1ebdf31e 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pasta.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pasta.dart @@ -15,8 +15,8 @@ part 'pasta.g.dart'; /// * [vendor] /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue() abstract class Pasta implements Entity, Built { @@ -46,6 +46,20 @@ class _$PastaSerializer implements PrimitiveSerializer { Pasta object, { FullType specifiedType = FullType.unspecified, }) sync* { + if (object.atSchemaLocation != null) { + yield r'@schemaLocation'; + yield serializers.serialize( + object.atSchemaLocation, + specifiedType: const FullType(String), + ); + } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -60,20 +74,6 @@ class _$PastaSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.atSchemalocation != null) { - yield r'@schemaLocation'; - yield serializers.serialize( - object.atSchemalocation, - specifiedType: const FullType(String), - ); - } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, @@ -109,6 +109,20 @@ class _$PastaSerializer implements PrimitiveSerializer { final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { + case r'@schemaLocation': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atSchemaLocation = valueDes; + break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; case r'href': final valueDes = serializers.deserialize( value, @@ -123,20 +137,6 @@ class _$PastaSerializer implements PrimitiveSerializer { ) as String; result.id = valueDes; break; - case r'@schemaLocation': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atSchemalocation = valueDes; - break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pizza.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pizza.dart index 3c252a6e9f3..14c06db06d7 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pizza.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pizza.dart @@ -13,16 +13,16 @@ part 'pizza.g.dart'; /// Pizza /// /// Properties: -/// * [pizzasize] +/// * [pizzaSize] /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue(instantiable: false) abstract class Pizza implements Entity { @BuiltValueField(wireName: r'pizzaSize') - num? get pizzasize; + num? get pizzaSize; static const String discriminatorFieldName = r'@type'; @@ -63,13 +63,27 @@ class _$PizzaSerializer implements PrimitiveSerializer { Pizza object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.pizzasize != null) { + if (object.pizzaSize != null) { yield r'pizzaSize'; yield serializers.serialize( - object.pizzasize, + object.pizzaSize, specifiedType: const FullType(num), ); } + if (object.atSchemaLocation != null) { + yield r'@schemaLocation'; + yield serializers.serialize( + object.atSchemaLocation, + specifiedType: const FullType(String), + ); + } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -84,20 +98,6 @@ class _$PizzaSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.atSchemalocation != null) { - yield r'@schemaLocation'; - yield serializers.serialize( - object.atSchemalocation, - specifiedType: const FullType(String), - ); - } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, @@ -182,7 +182,21 @@ class _$$PizzaSerializer implements PrimitiveSerializer<$Pizza> { value, specifiedType: const FullType(num), ) as num; - result.pizzasize = valueDes; + result.pizzaSize = valueDes; + break; + case r'@schemaLocation': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atSchemaLocation = valueDes; + break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; break; case r'href': final valueDes = serializers.deserialize( @@ -198,20 +212,6 @@ class _$$PizzaSerializer implements PrimitiveSerializer<$Pizza> { ) as String; result.id = valueDes; break; - case r'@schemaLocation': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atSchemalocation = valueDes; - break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, diff --git a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pizza_speziale.dart b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pizza_speziale.dart index 8d47467e1d7..73a2295df9b 100644 --- a/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pizza_speziale.dart +++ b/samples/openapi3/client/petstore/dart-dio/oneof_polymorphism_and_inheritance/lib/src/model/pizza_speziale.dart @@ -13,11 +13,11 @@ part 'pizza_speziale.g.dart'; /// /// Properties: /// * [toppings] -/// * [pizzasize] +/// * [pizzaSize] /// * [href] - Hyperlink reference /// * [id] - unique identifier -/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships -/// * [atBasetype] - When sub-classing, this defines the super-class +/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships +/// * [atBaseType] - When sub-classing, this defines the super-class /// * [atType] - When sub-classing, this defines the sub-class Extensible name @BuiltValue() abstract class PizzaSpeziale implements Pizza, Built { @@ -47,17 +47,17 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer { PizzaSpeziale object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.atSchemalocation != null) { + if (object.atSchemaLocation != null) { yield r'@schemaLocation'; yield serializers.serialize( - object.atSchemalocation, + object.atSchemaLocation, specifiedType: const FullType(String), ); } - if (object.pizzasize != null) { + if (object.pizzaSize != null) { yield r'pizzaSize'; yield serializers.serialize( - object.pizzasize, + object.pizzaSize, specifiedType: const FullType(num), ); } @@ -68,6 +68,13 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } + if (object.atBaseType != null) { + yield r'@baseType'; + yield serializers.serialize( + object.atBaseType, + specifiedType: const FullType(String), + ); + } if (object.href != null) { yield r'href'; yield serializers.serialize( @@ -82,13 +89,6 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.atBasetype != null) { - yield r'@baseType'; - yield serializers.serialize( - object.atBasetype, - specifiedType: const FullType(String), - ); - } yield r'@type'; yield serializers.serialize( object.atType, @@ -122,14 +122,14 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(String), ) as String; - result.atSchemalocation = valueDes; + result.atSchemaLocation = valueDes; break; case r'pizzaSize': final valueDes = serializers.deserialize( value, specifiedType: const FullType(num), ) as num; - result.pizzasize = valueDes; + result.pizzaSize = valueDes; break; case r'toppings': final valueDes = serializers.deserialize( @@ -138,6 +138,13 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer { ) as String; result.toppings = valueDes; break; + case r'@baseType': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.atBaseType = valueDes; + break; case r'href': final valueDes = serializers.deserialize( value, @@ -152,13 +159,6 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer { ) as String; result.id = valueDes; break; - case r'@baseType': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.atBasetype = valueDes; - break; case r'@type': final valueDes = serializers.deserialize( value, diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/README.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/README.md index d8a08b3c2a7..5a5211d271a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/README.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/README.md @@ -49,10 +49,10 @@ import 'package:openapi/openapi.dart'; final api = Openapi().getAnotherFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = await api.call123testSpecialTags(modelclient); + final response = await api.call123testSpecialTags(modelClient); print(response); } catch on DioException (e) { print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n"); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/AllOfWithSingleRef.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/AllOfWithSingleRef.md index 151142162f6..4c6f3ab2fe1 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/AllOfWithSingleRef.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/AllOfWithSingleRef.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **username** | **String** | | [optional] -**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional] +**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/Animal.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Animal.md index 570de2e45be..415b56e9bc2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Animal.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Animal.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] [[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/petstore_client_lib_fake-json_serializable/doc/AnotherFakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/AnotherFakeApi.md index 1ed2cb04d8f..36a94e6bb70 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/AnotherFakeApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> ModelClient call123testSpecialTags(modelclient) +> ModelClient call123testSpecialTags(modelClient) To test special tags @@ -24,10 +24,10 @@ To test special tags and operation ID starting with number import 'package:openapi/api.dart'; final api = Openapi().getAnotherFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.call123testSpecialTags(modelclient); + final response = api.call123testSpecialTags(modelClient); print(response); } catch on DioException (e) { print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n'); @@ -38,7 +38,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ArrayOfArrayOfNumberOnly.md index a1c3e86e055..e5b9d669a43 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ArrayOfArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayarraynumber** | [**List<List<num>>**](List.md) | | [optional] +**arrayArrayNumber** | [**List<List<num>>**](List.md) | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ArrayOfNumberOnly.md index 184bc6962f8..fe8e071eb45 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arraynumber** | **List<num>** | | [optional] +**arrayNumber** | **List<num>** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/Capitalization.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Capitalization.md index e673e7baef4..4a07b4eb820 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Capitalization.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Capitalization.md @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**smallcamel** | **String** | | [optional] -**capitalcamel** | **String** | | [optional] +**smallCamel** | **String** | | [optional] +**capitalCamel** | **String** | | [optional] **smallSnake** | **String** | | [optional] **capitalSnake** | **String** | | [optional] -**scaEthFlowPoints** | **String** | | [optional] -**attName** | **String** | Name of the pet | [optional] +**sCAETHFlowPoints** | **String** | | [optional] +**ATT_NAME** | **String** | Name of the pet | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/Cat.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Cat.md index 9c557ac9082..6552eea4b43 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Cat.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Cat.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **declawed** | **bool** | | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ChildWithNullable.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ChildWithNullable.md index 54b310b0f58..770494fcf4c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ChildWithNullable.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ChildWithNullable.md @@ -9,8 +9,8 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] -**otherproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] +**otherProperty** | **String** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/Dog.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Dog.md index b2ba3dfcef5..d36439b767b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Dog.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Dog.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **breed** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/EnumTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/EnumTest.md index f1b0758b868..7c24fe2347b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/EnumTest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/EnumTest.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **enumStringRequired** | **String** | | **enumInteger** | **int** | | [optional] **enumNumber** | **double** | | [optional] -**outerenum** | [**OuterEnum**](OuterEnum.md) | | [optional] -**outerenuminteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] -**outerenumdefaultvalue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] -**outerenumintegerdefaultvalue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] +**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] +**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] +**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] +**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/FakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeApi.md index 14e13ea83e5..1b5e1ca297c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeApi.md @@ -197,7 +197,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outercomposite) +> OuterComposite fakeOuterCompositeSerialize(outerComposite) @@ -208,10 +208,10 @@ Test serialization of object with outer number type import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final OuterComposite outercomposite = ; // OuterComposite | Input composite as post body +final OuterComposite outerComposite = ; // OuterComposite | Input composite as post body try { - final response = api.fakeOuterCompositeSerialize(outercomposite); + final response = api.fakeOuterCompositeSerialize(outerComposite); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->fakeOuterCompositeSerialize: $e\n'); @@ -222,7 +222,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outercomposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -326,7 +326,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakePropertyEnumIntegerSerialize** -> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty) +> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty) @@ -337,10 +337,10 @@ Test serialization of enum (int) properties with examples import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final OuterObjectWithEnumProperty outerobjectwithenumproperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body +final OuterObjectWithEnumProperty outerObjectWithEnumProperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body try { - final response = api.fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty); + final response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->fakePropertyEnumIntegerSerialize: $e\n'); @@ -351,7 +351,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerobjectwithenumproperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | + **outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | ### Return type @@ -453,7 +453,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileschematestclass) +> testBodyWithFileSchema(fileSchemaTestClass) @@ -464,10 +464,10 @@ For this test, the body for this request must reference a schema named `File`. import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final FileSchemaTestClass fileschematestclass = ; // FileSchemaTestClass | +final FileSchemaTestClass fileSchemaTestClass = ; // FileSchemaTestClass | try { - api.testBodyWithFileSchema(fileschematestclass); + api.testBodyWithFileSchema(fileSchemaTestClass); } catch on DioException (e) { print('Exception when calling FakeApi->testBodyWithFileSchema: $e\n'); } @@ -477,7 +477,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileschematestclass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -537,7 +537,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testClientModel** -> ModelClient testClientModel(modelclient) +> ModelClient testClientModel(modelClient) To test \"client\" model @@ -548,10 +548,10 @@ To test \"client\" model import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.testClientModel(modelclient); + final response = api.testClientModel(modelClient); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->testClientModel: $e\n'); @@ -562,7 +562,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -580,7 +580,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testEndpointParameters** -> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback) +> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -605,12 +605,12 @@ final double float = 3.4; // double | None final String string = string_example; // String | None final MultipartFile binary = BINARY_DATA_HERE; // MultipartFile | None final DateTime date = 2013-10-20; // DateTime | None -final DateTime datetime = 2013-10-20T19:20:30+01:00; // DateTime | None +final DateTime dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None final String password = password_example; // String | None final String callback = callback_example; // String | None try { - api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback); + api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback); } catch on DioException (e) { print('Exception when calling FakeApi->testEndpointParameters: $e\n'); } @@ -631,7 +631,7 @@ Name | Type | Description | Notes **string** | **String**| None | [optional] **binary** | **MultipartFile**| None | [optional] **date** | **DateTime**| None | [optional] - **datetime** | **DateTime**| None | [optional] + **dateTime** | **DateTime**| None | [optional] **password** | **String**| None | [optional] **callback** | **String**| None | [optional] @@ -803,7 +803,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testInlineFreeformAdditionalProperties** -> testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest) +> testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest) test inline free-form additionalProperties @@ -814,10 +814,10 @@ test inline free-form additionalProperties import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body +final TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body try { - api.testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest); + api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); } catch on DioException (e) { print('Exception when calling FakeApi->testInlineFreeformAdditionalProperties: $e\n'); } @@ -827,7 +827,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **testinlinefreeformadditionalpropertiesrequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | + **testInlineFreeformAdditionalPropertiesRequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | ### Return type @@ -889,7 +889,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testNullable** -> testNullable(childwithnullable) +> testNullable(childWithNullable) test nullable parent property @@ -900,10 +900,10 @@ test nullable parent property import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final ChildWithNullable childwithnullable = ; // ChildWithNullable | request body +final ChildWithNullable childWithNullable = ; // ChildWithNullable | request body try { - api.testNullable(childwithnullable); + api.testNullable(childWithNullable); } catch on DioException (e) { print('Exception when calling FakeApi->testNullable: $e\n'); } @@ -913,7 +913,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **childwithnullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | + **childWithNullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | ### Return type @@ -931,7 +931,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testQueryParameterCollectionFormat** -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language) +> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language) @@ -947,11 +947,11 @@ final List ioutil = ; // List | final List http = ; // List | final List url = ; // List | final List context = ; // List | -final String allowempty = allowempty_example; // String | +final String allowEmpty = allowEmpty_example; // String | final Map language = ; // Map | try { - api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language); + api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language); } catch on DioException (e) { print('Exception when calling FakeApi->testQueryParameterCollectionFormat: $e\n'); } @@ -966,7 +966,7 @@ Name | Type | Description | Notes **http** | [**List<String>**](String.md)| | **url** | [**List<String>**](String.md)| | **context** | [**List<String>**](String.md)| | - **allowempty** | **String**| | + **allowEmpty** | **String**| | **language** | [**Map<String, String>**](String.md)| | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeBigDecimalMap200Response.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeBigDecimalMap200Response.md index d01fd497347..281dfc44fd8 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeBigDecimalMap200Response.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeBigDecimalMap200Response.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someid** | **num** | | [optional] -**somemap** | **Map<String, num>** | | [optional] +**someId** | **num** | | [optional] +**someMap** | **Map<String, num>** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeClassnameTags123Api.md index 88a70afff0f..645aebf399f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeClassnameTags123Api.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **testClassname** -> ModelClient testClassname(modelclient) +> ModelClient testClassname(modelClient) To test class name in snake case @@ -28,10 +28,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key_query').apiKeyPrefix = 'Bearer'; final api = Openapi().getFakeClassnameTags123Api(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.testClassname(modelclient); + final response = api.testClassname(modelClient); print(response); } catch on DioException (e) { print('Exception when calling FakeClassnameTags123Api->testClassname: $e\n'); @@ -42,7 +42,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FormatTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FormatTest.md index a25a61c5334..83b60545eb6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FormatTest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FormatTest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **byte** | **String** | | **binary** | [**MultipartFile**](MultipartFile.md) | | [optional] **date** | [**DateTime**](DateTime.md) | | -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **uuid** | **String** | | [optional] **password** | **String** | | **patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/HealthCheckResult.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/HealthCheckResult.md index c912fb2e08f..4d6aeb75d96 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/HealthCheckResult.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/HealthCheckResult.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nullablemessage** | **String** | | [optional] +**nullableMessage** | **String** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/MixedPropertiesAndAdditionalPropertiesClass.md index e9a76c25800..66d0d39c42b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/MixedPropertiesAndAdditionalPropertiesClass.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **map** | [**Map<String, Animal>**](Animal.md) | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/ModelFile.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ModelFile.md index d54b1bbbea0..4be260e93f6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ModelFile.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ModelFile.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sourceuri** | **String** | Test capitalization | [optional] +**sourceURI** | **String** | Test capitalization | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/NumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/NumberOnly.md index f5fac6f8a17..d8096a3db37 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/NumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/NumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**justnumber** | **num** | | [optional] +**justNumber** | **num** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/ObjectWithDeprecatedFields.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ObjectWithDeprecatedFields.md index 9ba7fdf6634..dda2836d8d5 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ObjectWithDeprecatedFields.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ObjectWithDeprecatedFields.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] **id** | **num** | | [optional] -**deprecatedref** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **bars** | **List<String>** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/Order.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Order.md index 08914a83f30..bde5ffe51a2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Order.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Order.md @@ -9,9 +9,9 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**petid** | **int** | | [optional] +**petId** | **int** | | [optional] **quantity** | **int** | | [optional] -**shipdate** | [**DateTime**](DateTime.md) | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] **status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ParentWithNullable.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ParentWithNullable.md index 43546498705..17aa5ca0294 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ParentWithNullable.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/ParentWithNullable.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/Pet.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Pet.md index c6183f8d49d..3cd230bfb21 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Pet.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/Pet.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **id** | **int** | | [optional] **category** | [**Category**](Category.md) | | [optional] **name** | **String** | | -**photourls** | **Set<String>** | | +**photoUrls** | **Set<String>** | | **tags** | [**List<Tag>**](Tag.md) | | [optional] **status** | **String** | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/PetApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/PetApi.md index 3dc820b749b..5fc7fbd2657 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/PetApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/PetApi.md @@ -65,7 +65,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deletePet** -> deletePet(petid, apiKey) +> deletePet(petId, apiKey) Deletes a pet @@ -78,11 +78,11 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | Pet id to delete +final int petId = 789; // int | Pet id to delete final String apiKey = apiKey_example; // String | try { - api.deletePet(petid, apiKey); + api.deletePet(petId, apiKey); } catch on DioException (e) { print('Exception when calling PetApi->deletePet: $e\n'); } @@ -92,7 +92,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| Pet id to delete | + **petId** | **int**| Pet id to delete | **apiKey** | **String**| | [optional] ### Return type @@ -201,7 +201,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPetById** -> Pet getPetById(petid) +> Pet getPetById(petId) Find pet by ID @@ -216,10 +216,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to return +final int petId = 789; // int | ID of pet to return try { - final response = api.getPetById(petid); + final response = api.getPetById(petId); print(response); } catch on DioException (e) { print('Exception when calling PetApi->getPetById: $e\n'); @@ -230,7 +230,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to return | + **petId** | **int**| ID of pet to return | ### Return type @@ -292,7 +292,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updatePetWithForm** -> updatePetWithForm(petid, name, status) +> updatePetWithForm(petId, name, status) Updates a pet in the store with form data @@ -305,12 +305,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet that needs to be updated +final int petId = 789; // int | ID of pet that needs to be updated final String name = name_example; // String | Updated name of the pet final String status = status_example; // String | Updated status of the pet try { - api.updatePetWithForm(petid, name, status); + api.updatePetWithForm(petId, name, status); } catch on DioException (e) { print('Exception when calling PetApi->updatePetWithForm: $e\n'); } @@ -320,7 +320,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet that needs to be updated | + **petId** | **int**| ID of pet that needs to be updated | **name** | **String**| Updated name of the pet | [optional] **status** | **String**| Updated status of the pet | [optional] @@ -340,7 +340,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFile** -> ApiResponse uploadFile(petid, additionalmetadata, file) +> ApiResponse uploadFile(petId, additionalMetadata, file) uploads an image @@ -353,12 +353,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to update -final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final int petId = 789; // int | ID of pet to update +final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | file to upload try { - final response = api.uploadFile(petid, additionalmetadata, file); + final response = api.uploadFile(petId, additionalMetadata, file); print(response); } catch on DioException (e) { print('Exception when calling PetApi->uploadFile: $e\n'); @@ -369,8 +369,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] **file** | **MultipartFile**| file to upload | [optional] ### Return type @@ -389,7 +389,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFileWithRequiredFile** -> ApiResponse uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata) +> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) uploads an image (required) @@ -402,12 +402,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to update -final MultipartFile requiredfile = BINARY_DATA_HERE; // MultipartFile | file to upload -final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final int petId = 789; // int | ID of pet to update +final MultipartFile requiredFile = BINARY_DATA_HERE; // MultipartFile | file to upload +final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server try { - final response = api.uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata); + final response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); print(response); } catch on DioException (e) { print('Exception when calling PetApi->uploadFileWithRequiredFile: $e\n'); @@ -418,9 +418,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **requiredfile** | **MultipartFile**| file to upload | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **requiredFile** | **MultipartFile**| file to upload | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/SpecialModelName.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/SpecialModelName.md index 04697c8e622..5fcfa98e0b3 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/SpecialModelName.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/SpecialModelName.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket** | **int** | | [optional] +**dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket** | **int** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/TestInlineFreeformAdditionalPropertiesRequest.md index 894a3e60ee3..e2b2f1fd446 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/TestInlineFreeformAdditionalPropertiesRequest.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someproperty** | **String** | | [optional] +**someProperty** | **String** | | [optional] [[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/petstore_client_lib_fake-json_serializable/doc/User.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/User.md index 37aa8c50230..fa87e64d859 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/User.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/User.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] **username** | **String** | | [optional] -**firstname** | **String** | | [optional] -**lastname** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] **email** | **String** | | [optional] **password** | **String** | | [optional] **phone** | **String** | | [optional] -**userstatus** | **int** | User Status | [optional] +**userStatus** | **int** | User Status | [optional] [[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/petstore_client_lib_fake-json_serializable/lib/src/api/another_fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/another_fake_api.dart index 4ffb898ab95..d98f3c23f4f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/another_fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/another_fake_api.dart @@ -21,7 +21,7 @@ class AnotherFakeApi { /// To test special tags and operation ID starting with number /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -32,7 +32,7 @@ class AnotherFakeApi { /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> call123testSpecialTags({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -57,7 +57,7 @@ class AnotherFakeApi { dynamic _bodyData; try { -_bodyData=jsonEncode(modelclient); +_bodyData=jsonEncode(modelClient); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart index e4d673a4a32..06486358eda 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart @@ -340,7 +340,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'bool' /// Test serialization of object with outer number type /// /// Parameters: - /// * [outercomposite] - Input composite as post body + /// * [outerComposite] - Input composite as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -351,7 +351,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'bool' /// Returns a [Future] containing a [Response] with a [OuterComposite] as data /// Throws [DioException] if API call or serialization fails Future> fakeOuterCompositeSerialize({ - OuterComposite? outercomposite, + OuterComposite? outerComposite, CancelToken? cancelToken, Map? headers, Map? extra, @@ -376,7 +376,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'bool' dynamic _bodyData; try { -_bodyData=jsonEncode(outercomposite); +_bodyData=jsonEncode(outerComposite); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -607,7 +607,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S /// Test serialization of enum (int) properties with examples /// /// Parameters: - /// * [outerobjectwithenumproperty] - Input enum (int) as post body + /// * [outerObjectWithEnumProperty] - Input enum (int) as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -618,7 +618,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S /// Returns a [Future] containing a [Response] with a [OuterObjectWithEnumProperty] as data /// Throws [DioException] if API call or serialization fails Future> fakePropertyEnumIntegerSerialize({ - required OuterObjectWithEnumProperty outerobjectwithenumproperty, + required OuterObjectWithEnumProperty outerObjectWithEnumProperty, CancelToken? cancelToken, Map? headers, Map? extra, @@ -643,7 +643,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S dynamic _bodyData; try { -_bodyData=jsonEncode(outerobjectwithenumproperty); +_bodyData=jsonEncode(outerObjectWithEnumProperty); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -826,7 +826,7 @@ _bodyData=jsonEncode(body); /// For this test, the body for this request must reference a schema named `File`. /// /// Parameters: - /// * [fileschematestclass] + /// * [fileSchemaTestClass] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -837,7 +837,7 @@ _bodyData=jsonEncode(body); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testBodyWithFileSchema({ - required FileSchemaTestClass fileschematestclass, + required FileSchemaTestClass fileSchemaTestClass, CancelToken? cancelToken, Map? headers, Map? extra, @@ -862,7 +862,7 @@ _bodyData=jsonEncode(body); dynamic _bodyData; try { -_bodyData=jsonEncode(fileschematestclass); +_bodyData=jsonEncode(fileSchemaTestClass); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -964,7 +964,7 @@ _bodyData=jsonEncode(user); /// To test \"client\" model /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -975,7 +975,7 @@ _bodyData=jsonEncode(user); /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> testClientModel({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1000,7 +1000,7 @@ _bodyData=jsonEncode(user); dynamic _bodyData; try { -_bodyData=jsonEncode(modelclient); +_bodyData=jsonEncode(modelClient); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -1064,7 +1064,7 @@ _responseData = rawData == null ? null : deserialize(r /// * [string] - None /// * [binary] - None /// * [date] - None - /// * [datetime] - None + /// * [dateTime] - None /// * [password] - None /// * [callback] - None /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -1088,7 +1088,7 @@ _responseData = rawData == null ? null : deserialize(r String? string, MultipartFile? binary, DateTime? date, - DateTime? datetime, + DateTime? dateTime, String? password, String? callback, CancelToken? cancelToken, @@ -1381,7 +1381,7 @@ _bodyData=jsonEncode(requestBody); /// /// /// Parameters: - /// * [testinlinefreeformadditionalpropertiesrequest] - request body + /// * [testInlineFreeformAdditionalPropertiesRequest] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1392,7 +1392,7 @@ _bodyData=jsonEncode(requestBody); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testInlineFreeformAdditionalProperties({ - required TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest, + required TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1417,7 +1417,7 @@ _bodyData=jsonEncode(requestBody); dynamic _bodyData; try { -_bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest); +_bodyData=jsonEncode(testInlineFreeformAdditionalPropertiesRequest); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -1513,7 +1513,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest); /// /// /// Parameters: - /// * [childwithnullable] - request body + /// * [childWithNullable] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1524,7 +1524,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testNullable({ - required ChildWithNullable childwithnullable, + required ChildWithNullable childWithNullable, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1549,7 +1549,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest); dynamic _bodyData; try { -_bodyData=jsonEncode(childwithnullable); +_bodyData=jsonEncode(childWithNullable); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -1583,7 +1583,7 @@ _bodyData=jsonEncode(childwithnullable); /// * [http] /// * [url] /// * [context] - /// * [allowempty] + /// * [allowEmpty] /// * [language] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -1600,7 +1600,7 @@ _bodyData=jsonEncode(childwithnullable); required List http, required List url, required List context, - required String allowempty, + required String allowEmpty, Map? language, CancelToken? cancelToken, Map? headers, @@ -1629,7 +1629,7 @@ _bodyData=jsonEncode(childwithnullable); r'url': url, r'context': context, if (language != null) r'language': language, - r'allowEmpty': allowempty, + r'allowEmpty': allowEmpty, }; final _response = await _dio.request( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_classname_tags123_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_classname_tags123_api.dart index 7f1524c2f18..56ec33f1cac 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_classname_tags123_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_classname_tags123_api.dart @@ -21,7 +21,7 @@ class FakeClassnameTags123Api { /// To test class name in snake case /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -32,7 +32,7 @@ class FakeClassnameTags123Api { /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> testClassname({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -64,7 +64,7 @@ class FakeClassnameTags123Api { dynamic _bodyData; try { -_bodyData=jsonEncode(modelclient); +_bodyData=jsonEncode(modelClient); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/pet_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/pet_api.dart index 54e619b596f..ec20128ee1e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/pet_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/pet_api.dart @@ -92,7 +92,7 @@ _bodyData=jsonEncode(pet); /// /// /// Parameters: - /// * [petid] - Pet id to delete + /// * [petId] - Pet id to delete /// * [apiKey] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -104,7 +104,7 @@ _bodyData=jsonEncode(pet); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> deletePet({ - required int petid, + required int petId, String? apiKey, CancelToken? cancelToken, Map? headers, @@ -113,7 +113,7 @@ _bodyData=jsonEncode(pet); ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'DELETE', headers: { @@ -310,7 +310,7 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'Se /// Returns a single pet /// /// Parameters: - /// * [petid] - ID of pet to return + /// * [petId] - ID of pet to return /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -321,7 +321,7 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'Se /// Returns a [Future] containing a [Response] with a [Pet] as data /// Throws [DioException] if API call or serialization fails Future> getPetById({ - required int petid, + required int petId, CancelToken? cancelToken, Map? headers, Map? extra, @@ -329,7 +329,7 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'Se ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'GET', headers: { @@ -458,7 +458,7 @@ _bodyData=jsonEncode(pet); /// /// /// Parameters: - /// * [petid] - ID of pet that needs to be updated + /// * [petId] - ID of pet that needs to be updated /// * [name] - Updated name of the pet /// * [status] - Updated status of the pet /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -471,7 +471,7 @@ _bodyData=jsonEncode(pet); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> updatePetWithForm({ - required int petid, + required int petId, String? name, String? status, CancelToken? cancelToken, @@ -481,7 +481,7 @@ _bodyData=jsonEncode(pet); ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'POST', headers: { @@ -532,8 +532,8 @@ _bodyData=jsonEncode(pet); /// /// /// Parameters: - /// * [petid] - ID of pet to update - /// * [additionalmetadata] - Additional data to pass to server + /// * [petId] - ID of pet to update + /// * [additionalMetadata] - Additional data to pass to server /// * [file] - file to upload /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -545,8 +545,8 @@ _bodyData=jsonEncode(pet); /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails Future> uploadFile({ - required int petid, - String? additionalmetadata, + required int petId, + String? additionalMetadata, MultipartFile? file, CancelToken? cancelToken, Map? headers, @@ -555,7 +555,7 @@ _bodyData=jsonEncode(pet); ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'POST', headers: { @@ -630,9 +630,9 @@ _responseData = rawData == null ? null : deserialize(r /// /// /// Parameters: - /// * [petid] - ID of pet to update - /// * [requiredfile] - file to upload - /// * [additionalmetadata] - Additional data to pass to server + /// * [petId] - ID of pet to update + /// * [requiredFile] - file to upload + /// * [additionalMetadata] - Additional data to pass to server /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -643,9 +643,9 @@ _responseData = rawData == null ? null : deserialize(r /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails Future> uploadFileWithRequiredFile({ - required int petid, - required MultipartFile requiredfile, - String? additionalmetadata, + required int petId, + required MultipartFile requiredFile, + String? additionalMetadata, CancelToken? cancelToken, Map? headers, Map? extra, @@ -653,7 +653,7 @@ _responseData = rawData == null ? null : deserialize(r ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'POST', headers: { diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/all_of_with_single_ref.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/all_of_with_single_ref.dart index 126a3cbaf67..c196447ea5e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/all_of_with_single_ref.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/all_of_with_single_ref.dart @@ -21,7 +21,7 @@ class AllOfWithSingleRef { this.username, - this.singlereftype, + this.singleRefType, }); @JsonKey( @@ -45,7 +45,7 @@ class AllOfWithSingleRef { ) - final SingleRefType? singlereftype; + final SingleRefType? singleRefType; @@ -54,12 +54,12 @@ class AllOfWithSingleRef { @override bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef && other.username == username && - other.singlereftype == singlereftype; + other.singleRefType == singleRefType; @override int get hashCode => username.hashCode + - singlereftype.hashCode; + singleRefType.hashCode; factory AllOfWithSingleRef.fromJson(Map json) => _$AllOfWithSingleRefFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/animal.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/animal.dart index 11efc809e24..73232635722 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/animal.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/animal.dart @@ -18,7 +18,7 @@ class Animal { /// Returns a new [Animal] instance. Animal({ - required this.classname, + required this.className, this.color = 'red', }); @@ -31,7 +31,7 @@ class Animal { ) - final String classname; + final String className; @@ -51,12 +51,12 @@ class Animal { @override bool operator ==(Object other) => identical(this, other) || other is Animal && - other.classname == classname && + other.className == className && other.color == color; @override int get hashCode => - classname.hashCode + + className.hashCode + color.hashCode; factory Animal.fromJson(Map json) => _$AnimalFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_array_of_number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_array_of_number_only.dart index 2ba4f0c1928..da8de016929 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_array_of_number_only.dart @@ -18,7 +18,7 @@ class ArrayOfArrayOfNumberOnly { /// Returns a new [ArrayOfArrayOfNumberOnly] instance. ArrayOfArrayOfNumberOnly({ - this.arrayarraynumber, + this.arrayArrayNumber, }); @JsonKey( @@ -29,7 +29,7 @@ class ArrayOfArrayOfNumberOnly { ) - final List>? arrayarraynumber; + final List>? arrayArrayNumber; @@ -37,11 +37,11 @@ class ArrayOfArrayOfNumberOnly { @override bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly && - other.arrayarraynumber == arrayarraynumber; + other.arrayArrayNumber == arrayArrayNumber; @override int get hashCode => - arrayarraynumber.hashCode; + arrayArrayNumber.hashCode; factory ArrayOfArrayOfNumberOnly.fromJson(Map json) => _$ArrayOfArrayOfNumberOnlyFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_number_only.dart index e058704c51a..4ead761e76f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_number_only.dart @@ -18,7 +18,7 @@ class ArrayOfNumberOnly { /// Returns a new [ArrayOfNumberOnly] instance. ArrayOfNumberOnly({ - this.arraynumber, + this.arrayNumber, }); @JsonKey( @@ -29,7 +29,7 @@ class ArrayOfNumberOnly { ) - final List? arraynumber; + final List? arrayNumber; @@ -37,11 +37,11 @@ class ArrayOfNumberOnly { @override bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly && - other.arraynumber == arraynumber; + other.arrayNumber == arrayNumber; @override int get hashCode => - arraynumber.hashCode; + arrayNumber.hashCode; factory ArrayOfNumberOnly.fromJson(Map json) => _$ArrayOfNumberOnlyFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/capitalization.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/capitalization.dart index c248b9c5219..d2bc40f3383 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/capitalization.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/capitalization.dart @@ -18,17 +18,17 @@ class Capitalization { /// Returns a new [Capitalization] instance. Capitalization({ - this.smallcamel, + this.smallCamel, - this.capitalcamel, + this.capitalCamel, this.smallSnake, this.capitalSnake, - this.scaEthFlowPoints, + this.sCAETHFlowPoints, - this.attName, + this.ATT_NAME, }); @JsonKey( @@ -39,7 +39,7 @@ class Capitalization { ) - final String? smallcamel; + final String? smallCamel; @@ -51,7 +51,7 @@ class Capitalization { ) - final String? capitalcamel; + final String? capitalCamel; @@ -87,7 +87,7 @@ class Capitalization { ) - final String? scaEthFlowPoints; + final String? sCAETHFlowPoints; @@ -100,7 +100,7 @@ class Capitalization { ) - final String? attName; + final String? ATT_NAME; @@ -108,21 +108,21 @@ class Capitalization { @override bool operator ==(Object other) => identical(this, other) || other is Capitalization && - other.smallcamel == smallcamel && - other.capitalcamel == capitalcamel && + other.smallCamel == smallCamel && + other.capitalCamel == capitalCamel && other.smallSnake == smallSnake && other.capitalSnake == capitalSnake && - other.scaEthFlowPoints == scaEthFlowPoints && - other.attName == attName; + other.sCAETHFlowPoints == sCAETHFlowPoints && + other.ATT_NAME == ATT_NAME; @override int get hashCode => - smallcamel.hashCode + - capitalcamel.hashCode + + smallCamel.hashCode + + capitalCamel.hashCode + smallSnake.hashCode + capitalSnake.hashCode + - scaEthFlowPoints.hashCode + - attName.hashCode; + sCAETHFlowPoints.hashCode + + ATT_NAME.hashCode; factory Capitalization.fromJson(Map json) => _$CapitalizationFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/cat.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/cat.dart index d783b29bfeb..e2df6f2cc55 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/cat.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/cat.dart @@ -21,7 +21,7 @@ class Cat { /// Returns a new [Cat] instance. Cat({ - required this.classname, + required this.className, this.color = 'red', @@ -36,7 +36,7 @@ class Cat { ) - final String classname; + final String className; @@ -68,13 +68,13 @@ class Cat { @override bool operator ==(Object other) => identical(this, other) || other is Cat && - other.classname == classname && + other.className == className && other.color == color && other.declawed == declawed; @override int get hashCode => - classname.hashCode + + className.hashCode + color.hashCode + declawed.hashCode; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/child_with_nullable.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/child_with_nullable.dart index 24e56c0a068..dcda6f93ba6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/child_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/child_with_nullable.dart @@ -23,9 +23,9 @@ class ChildWithNullable { this.type, - this.nullableproperty, + this.nullableProperty, - this.otherproperty, + this.otherProperty, }); @JsonKey( @@ -49,7 +49,7 @@ class ChildWithNullable { ) - final String? nullableproperty; + final String? nullableProperty; @@ -61,7 +61,7 @@ class ChildWithNullable { ) - final String? otherproperty; + final String? otherProperty; @@ -70,14 +70,14 @@ class ChildWithNullable { @override bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable && other.type == type && - other.nullableproperty == nullableproperty && - other.otherproperty == otherproperty; + other.nullableProperty == nullableProperty && + other.otherProperty == otherProperty; @override int get hashCode => type.hashCode + - (nullableproperty == null ? 0 : nullableproperty.hashCode) + - otherproperty.hashCode; + (nullableProperty == null ? 0 : nullableProperty.hashCode) + + otherProperty.hashCode; factory ChildWithNullable.fromJson(Map json) => _$ChildWithNullableFromJson(json); @@ -93,7 +93,7 @@ class ChildWithNullable { enum ChildWithNullableTypeEnum { @JsonValue(r'ChildWithNullable') -childwithnullable(r'ChildWithNullable'), +childWithNullable(r'ChildWithNullable'), @JsonValue(r'unknown_default_open_api') unknownDefaultOpenApi(r'unknown_default_open_api'); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/dog.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/dog.dart index 871df64ab69..deb271b6dc3 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/dog.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/dog.dart @@ -21,7 +21,7 @@ class Dog { /// Returns a new [Dog] instance. Dog({ - required this.classname, + required this.className, this.color = 'red', @@ -36,7 +36,7 @@ class Dog { ) - final String classname; + final String className; @@ -68,13 +68,13 @@ class Dog { @override bool operator ==(Object other) => identical(this, other) || other is Dog && - other.classname == classname && + other.className == className && other.color == color && other.breed == breed; @override int get hashCode => - classname.hashCode + + className.hashCode + color.hashCode + breed.hashCode; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart index 0051b7a6da1..563f7038b97 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart @@ -30,13 +30,13 @@ class EnumTest { this.enumNumber, - this.outerenum, + this.outerEnum, - this.outerenuminteger, + this.outerEnumInteger, - this.outerenumdefaultvalue, + this.outerEnumDefaultValue, - this.outerenumintegerdefaultvalue, + this.outerEnumIntegerDefaultValue, }); @JsonKey( @@ -100,7 +100,7 @@ class EnumTest { ) - final OuterEnum? outerenum; + final OuterEnum? outerEnum; @@ -113,7 +113,7 @@ class EnumTest { ) - final OuterEnumInteger? outerenuminteger; + final OuterEnumInteger? outerEnumInteger; @@ -126,7 +126,7 @@ class EnumTest { ) - final OuterEnumDefaultValue? outerenumdefaultvalue; + final OuterEnumDefaultValue? outerEnumDefaultValue; @@ -139,7 +139,7 @@ class EnumTest { ) - final OuterEnumIntegerDefaultValue? outerenumintegerdefaultvalue; + final OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue; @@ -151,10 +151,10 @@ class EnumTest { other.enumStringRequired == enumStringRequired && other.enumInteger == enumInteger && other.enumNumber == enumNumber && - other.outerenum == outerenum && - other.outerenuminteger == outerenuminteger && - other.outerenumdefaultvalue == outerenumdefaultvalue && - other.outerenumintegerdefaultvalue == outerenumintegerdefaultvalue; + other.outerEnum == outerEnum && + other.outerEnumInteger == outerEnumInteger && + other.outerEnumDefaultValue == outerEnumDefaultValue && + other.outerEnumIntegerDefaultValue == outerEnumIntegerDefaultValue; @override int get hashCode => @@ -162,10 +162,10 @@ class EnumTest { enumStringRequired.hashCode + enumInteger.hashCode + enumNumber.hashCode + - (outerenum == null ? 0 : outerenum.hashCode) + - outerenuminteger.hashCode + - outerenumdefaultvalue.hashCode + - outerenumintegerdefaultvalue.hashCode; + (outerEnum == null ? 0 : outerEnum.hashCode) + + outerEnumInteger.hashCode + + outerEnumDefaultValue.hashCode + + outerEnumIntegerDefaultValue.hashCode; factory EnumTest.fromJson(Map json) => _$EnumTestFromJson(json); @@ -181,7 +181,7 @@ class EnumTest { enum EnumTestEnumStringEnum { @JsonValue(r'UPPER') -upper(r'UPPER'), +UPPER(r'UPPER'), @JsonValue(r'lower') lower(r'lower'), @JsonValue(r'') @@ -201,7 +201,7 @@ String toString() => value; enum EnumTestEnumStringRequiredEnum { @JsonValue(r'UPPER') -upper(r'UPPER'), +UPPER(r'UPPER'), @JsonValue(r'lower') lower(r'lower'), @JsonValue(r'') @@ -239,9 +239,9 @@ String toString() => value; enum EnumTestEnumNumberEnum { @JsonValue('1.1') -number1period1(''1.1''), +number1Period1(''1.1''), @JsonValue('-1.2') -numberNegative1period2(''-1.2''), +numberNegative1Period2(''-1.2''), @JsonValue('11184809') unknownDefaultOpenApi(''11184809''); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/fake_big_decimal_map200_response.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/fake_big_decimal_map200_response.dart index 9c994771886..1f0f2950a71 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/fake_big_decimal_map200_response.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/fake_big_decimal_map200_response.dart @@ -18,9 +18,9 @@ class FakeBigDecimalMap200Response { /// Returns a new [FakeBigDecimalMap200Response] instance. FakeBigDecimalMap200Response({ - this.someid, + this.someId, - this.somemap, + this.someMap, }); @JsonKey( @@ -31,7 +31,7 @@ class FakeBigDecimalMap200Response { ) - final num? someid; + final num? someId; @@ -43,7 +43,7 @@ class FakeBigDecimalMap200Response { ) - final Map? somemap; + final Map? someMap; @@ -51,13 +51,13 @@ class FakeBigDecimalMap200Response { @override bool operator ==(Object other) => identical(this, other) || other is FakeBigDecimalMap200Response && - other.someid == someid && - other.somemap == somemap; + other.someId == someId && + other.someMap == someMap; @override int get hashCode => - someid.hashCode + - somemap.hashCode; + someId.hashCode + + someMap.hashCode; factory FakeBigDecimalMap200Response.fromJson(Map json) => _$FakeBigDecimalMap200ResponseFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/format_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/format_test.dart index b724503e4ae..a20ba417fa5 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/format_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/format_test.dart @@ -41,7 +41,7 @@ class FormatTest { required this.date, - this.datetime, + this.dateTime, this.uuid, @@ -197,7 +197,7 @@ class FormatTest { ) - final DateTime? datetime; + final DateTime? dateTime; @@ -266,7 +266,7 @@ class FormatTest { other.byte == byte && other.binary == binary && other.date == date && - other.datetime == datetime && + other.dateTime == dateTime && other.uuid == uuid && other.password == password && other.patternWithDigits == patternWithDigits && @@ -285,7 +285,7 @@ class FormatTest { byte.hashCode + binary.hashCode + date.hashCode + - datetime.hashCode + + dateTime.hashCode + uuid.hashCode + password.hashCode + patternWithDigits.hashCode + diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/health_check_result.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/health_check_result.dart index fdacbc440a0..6fd362cdf35 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/health_check_result.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/health_check_result.dart @@ -18,7 +18,7 @@ class HealthCheckResult { /// Returns a new [HealthCheckResult] instance. HealthCheckResult({ - this.nullablemessage, + this.nullableMessage, }); @JsonKey( @@ -29,7 +29,7 @@ class HealthCheckResult { ) - final String? nullablemessage; + final String? nullableMessage; @@ -37,11 +37,11 @@ class HealthCheckResult { @override bool operator ==(Object other) => identical(this, other) || other is HealthCheckResult && - other.nullablemessage == nullablemessage; + other.nullableMessage == nullableMessage; @override int get hashCode => - (nullablemessage == null ? 0 : nullablemessage.hashCode); + (nullableMessage == null ? 0 : nullableMessage.hashCode); factory HealthCheckResult.fromJson(Map json) => _$HealthCheckResultFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/map_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/map_test.dart index d87a07d1035..59f9377d253 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/map_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/map_test.dart @@ -106,7 +106,7 @@ class MapTest { enum MapTestMapOfEnumStringEnum { @JsonValue(r'UPPER') -upper(r'UPPER'), +UPPER(r'UPPER'), @JsonValue(r'lower') lower(r'lower'), @JsonValue(r'unknown_default_open_api') diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/mixed_properties_and_additional_properties_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/mixed_properties_and_additional_properties_class.dart index 960e16bba37..458d2bd0534 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/mixed_properties_and_additional_properties_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/mixed_properties_and_additional_properties_class.dart @@ -21,7 +21,7 @@ class MixedPropertiesAndAdditionalPropertiesClass { this.uuid, - this.datetime, + this.dateTime, this.map, }); @@ -46,7 +46,7 @@ class MixedPropertiesAndAdditionalPropertiesClass { ) - final DateTime? datetime; + final DateTime? dateTime; @@ -67,13 +67,13 @@ class MixedPropertiesAndAdditionalPropertiesClass { @override bool operator ==(Object other) => identical(this, other) || other is MixedPropertiesAndAdditionalPropertiesClass && other.uuid == uuid && - other.datetime == datetime && + other.dateTime == dateTime && other.map == map; @override int get hashCode => uuid.hashCode + - datetime.hashCode + + dateTime.hashCode + map.hashCode; factory MixedPropertiesAndAdditionalPropertiesClass.fromJson(Map json) => _$MixedPropertiesAndAdditionalPropertiesClassFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/model_enum_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/model_enum_class.dart index 602fdc18d60..7ff6301e9ed 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/model_enum_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/model_enum_class.dart @@ -12,7 +12,7 @@ enum ModelEnumClass { @JsonValue(r'-efg') efg(r'-efg'), @JsonValue(r'(xyz)') - leftParenthesisXyzrightParenthesis(r'(xyz)'), + leftParenthesisXyzRightParenthesis(r'(xyz)'), @JsonValue(r'unknown_default_open_api') unknownDefaultOpenApi(r'unknown_default_open_api'); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/model_file.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/model_file.dart index 85a43bd2a46..cccca0412f4 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/model_file.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/model_file.dart @@ -18,7 +18,7 @@ class ModelFile { /// Returns a new [ModelFile] instance. ModelFile({ - this.sourceuri, + this.sourceURI, }); /// Test capitalization @@ -30,7 +30,7 @@ class ModelFile { ) - final String? sourceuri; + final String? sourceURI; @@ -38,11 +38,11 @@ class ModelFile { @override bool operator ==(Object other) => identical(this, other) || other is ModelFile && - other.sourceuri == sourceuri; + other.sourceURI == sourceURI; @override int get hashCode => - sourceuri.hashCode; + sourceURI.hashCode; factory ModelFile.fromJson(Map json) => _$ModelFileFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/number_only.dart index c511946d665..44e9d41a189 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/number_only.dart @@ -18,7 +18,7 @@ class NumberOnly { /// Returns a new [NumberOnly] instance. NumberOnly({ - this.justnumber, + this.justNumber, }); @JsonKey( @@ -29,7 +29,7 @@ class NumberOnly { ) - final num? justnumber; + final num? justNumber; @@ -37,11 +37,11 @@ class NumberOnly { @override bool operator ==(Object other) => identical(this, other) || other is NumberOnly && - other.justnumber == justnumber; + other.justNumber == justNumber; @override int get hashCode => - justnumber.hashCode; + justNumber.hashCode; factory NumberOnly.fromJson(Map json) => _$NumberOnlyFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/object_with_deprecated_fields.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/object_with_deprecated_fields.dart index 2c060a1ecfc..5a36ffb5147 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/object_with_deprecated_fields.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/object_with_deprecated_fields.dart @@ -23,7 +23,7 @@ class ObjectWithDeprecatedFields { this.id, - this.deprecatedref, + this.deprecatedRef, this.bars, }); @@ -53,7 +53,7 @@ class ObjectWithDeprecatedFields { - @Deprecated('deprecatedref has been deprecated') + @Deprecated('deprecatedRef has been deprecated') @JsonKey( name: r'deprecatedRef', @@ -62,7 +62,7 @@ class ObjectWithDeprecatedFields { ) - final DeprecatedObject? deprecatedref; + final DeprecatedObject? deprecatedRef; @@ -85,14 +85,14 @@ class ObjectWithDeprecatedFields { bool operator ==(Object other) => identical(this, other) || other is ObjectWithDeprecatedFields && other.uuid == uuid && other.id == id && - other.deprecatedref == deprecatedref && + other.deprecatedRef == deprecatedRef && other.bars == bars; @override int get hashCode => uuid.hashCode + id.hashCode + - deprecatedref.hashCode + + deprecatedRef.hashCode + bars.hashCode; factory ObjectWithDeprecatedFields.fromJson(Map json) => _$ObjectWithDeprecatedFieldsFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/order.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/order.dart index a554ecc6311..dfbc4f5c5e4 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/order.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/order.dart @@ -20,11 +20,11 @@ class Order { this.id, - this.petid, + this.petId, this.quantity, - this.shipdate, + this.shipDate, this.status, @@ -51,7 +51,7 @@ class Order { ) - final int? petid; + final int? petId; @@ -75,7 +75,7 @@ class Order { ) - final DateTime? shipdate; + final DateTime? shipDate; @@ -110,18 +110,18 @@ class Order { @override bool operator ==(Object other) => identical(this, other) || other is Order && other.id == id && - other.petid == petid && + other.petId == petId && other.quantity == quantity && - other.shipdate == shipdate && + other.shipDate == shipDate && other.status == status && other.complete == complete; @override int get hashCode => id.hashCode + - petid.hashCode + + petId.hashCode + quantity.hashCode + - shipdate.hashCode + + shipDate.hashCode + status.hashCode + complete.hashCode; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/parent_with_nullable.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/parent_with_nullable.dart index 6a0edc0716f..bda5847df5a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/parent_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/parent_with_nullable.dart @@ -20,7 +20,7 @@ class ParentWithNullable { this.type, - this.nullableproperty, + this.nullableProperty, }); @JsonKey( @@ -44,7 +44,7 @@ class ParentWithNullable { ) - final String? nullableproperty; + final String? nullableProperty; @@ -53,12 +53,12 @@ class ParentWithNullable { @override bool operator ==(Object other) => identical(this, other) || other is ParentWithNullable && other.type == type && - other.nullableproperty == nullableproperty; + other.nullableProperty == nullableProperty; @override int get hashCode => type.hashCode + - (nullableproperty == null ? 0 : nullableproperty.hashCode); + (nullableProperty == null ? 0 : nullableProperty.hashCode); factory ParentWithNullable.fromJson(Map json) => _$ParentWithNullableFromJson(json); @@ -74,7 +74,7 @@ class ParentWithNullable { enum ParentWithNullableTypeEnum { @JsonValue(r'ChildWithNullable') -childwithnullable(r'ChildWithNullable'), +childWithNullable(r'ChildWithNullable'), @JsonValue(r'unknown_default_open_api') unknownDefaultOpenApi(r'unknown_default_open_api'); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/pet.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/pet.dart index 6d41a485b6c..fdb70f9ce89 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/pet.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/pet.dart @@ -26,7 +26,7 @@ class Pet { required this.name, - required this.photourls, + required this.photoUrls, this.tags, @@ -77,7 +77,7 @@ class Pet { ) - final Set photourls; + final Set photoUrls; @@ -114,7 +114,7 @@ class Pet { other.id == id && other.category == category && other.name == name && - other.photourls == photourls && + other.photoUrls == photoUrls && other.tags == tags && other.status == status; @@ -123,7 +123,7 @@ class Pet { id.hashCode + category.hashCode + name.hashCode + - photourls.hashCode + + photoUrls.hashCode + tags.hashCode + status.hashCode; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/special_model_name.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/special_model_name.dart index 30d3bc67b80..175b6fb274c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/special_model_name.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/special_model_name.dart @@ -18,7 +18,7 @@ class SpecialModelName { /// Returns a new [SpecialModelName] instance. SpecialModelName({ - this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket, + this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket, }); @JsonKey( @@ -29,7 +29,7 @@ class SpecialModelName { ) - final int? dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + final int? dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; @@ -37,11 +37,11 @@ class SpecialModelName { @override bool operator ==(Object other) => identical(this, other) || other is SpecialModelName && - other.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket == dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + other.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket == dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; @override int get hashCode => - dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket.hashCode; + dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket.hashCode; factory SpecialModelName.fromJson(Map json) => _$SpecialModelNameFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/test_inline_freeform_additional_properties_request.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/test_inline_freeform_additional_properties_request.dart index c2f51d310a2..5eda7d48b38 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/test_inline_freeform_additional_properties_request.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/test_inline_freeform_additional_properties_request.dart @@ -18,7 +18,7 @@ class TestInlineFreeformAdditionalPropertiesRequest { /// Returns a new [TestInlineFreeformAdditionalPropertiesRequest] instance. TestInlineFreeformAdditionalPropertiesRequest({ - this.someproperty, + this.someProperty, }); @JsonKey( @@ -29,7 +29,7 @@ class TestInlineFreeformAdditionalPropertiesRequest { ) - final String? someproperty; + final String? someProperty; @@ -37,11 +37,11 @@ class TestInlineFreeformAdditionalPropertiesRequest { @override bool operator ==(Object other) => identical(this, other) || other is TestInlineFreeformAdditionalPropertiesRequest && - other.someproperty == someproperty; + other.someProperty == someProperty; @override int get hashCode => - someproperty.hashCode; + someProperty.hashCode; factory TestInlineFreeformAdditionalPropertiesRequest.fromJson(Map json) => _$TestInlineFreeformAdditionalPropertiesRequestFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/user.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/user.dart index 0e2de7c1878..56c95cb75f1 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/user.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/user.dart @@ -22,9 +22,9 @@ class User { this.username, - this.firstname, + this.firstName, - this.lastname, + this.lastName, this.email, @@ -32,7 +32,7 @@ class User { this.phone, - this.userstatus, + this.userStatus, }); @JsonKey( @@ -67,7 +67,7 @@ class User { ) - final String? firstname; + final String? firstName; @@ -79,7 +79,7 @@ class User { ) - final String? lastname; + final String? lastName; @@ -128,7 +128,7 @@ class User { ) - final int? userstatus; + final int? userStatus; @@ -138,23 +138,23 @@ class User { bool operator ==(Object other) => identical(this, other) || other is User && other.id == id && other.username == username && - other.firstname == firstname && - other.lastname == lastname && + other.firstName == firstName && + other.lastName == lastName && other.email == email && other.password == password && other.phone == phone && - other.userstatus == userstatus; + other.userStatus == userStatus; @override int get hashCode => id.hashCode + username.hashCode + - firstname.hashCode + - lastname.hashCode + + firstName.hashCode + + lastName.hashCode + email.hashCode + password.hashCode + phone.hashCode + - userstatus.hashCode; + userStatus.hashCode; factory User.fromJson(Map json) => _$UserFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md index 79de3b511b9..ecde40a0ade 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/README.md @@ -48,10 +48,10 @@ import 'package:openapi/openapi.dart'; final api = Openapi().getAnotherFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = await api.call123testSpecialTags(modelclient); + final response = await api.call123testSpecialTags(modelClient); print(response); } catch on DioException (e) { print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n"); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AllOfWithSingleRef.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AllOfWithSingleRef.md index 151142162f6..4c6f3ab2fe1 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AllOfWithSingleRef.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AllOfWithSingleRef.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **username** | **String** | | [optional] -**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional] +**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional] [[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/petstore_client_lib_fake/doc/Animal.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Animal.md index 570de2e45be..415b56e9bc2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Animal.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Animal.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] [[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/petstore_client_lib_fake/doc/AnotherFakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AnotherFakeApi.md index 1ed2cb04d8f..36a94e6bb70 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AnotherFakeApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> ModelClient call123testSpecialTags(modelclient) +> ModelClient call123testSpecialTags(modelClient) To test special tags @@ -24,10 +24,10 @@ To test special tags and operation ID starting with number import 'package:openapi/api.dart'; final api = Openapi().getAnotherFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.call123testSpecialTags(modelclient); + final response = api.call123testSpecialTags(modelClient); print(response); } catch on DioException (e) { print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n'); @@ -38,7 +38,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md index 0fa36a7fdaa..d1a272ab602 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayarraynumber** | [**BuiltList<BuiltList<num>>**](BuiltList.md) | | [optional] +**arrayArrayNumber** | [**BuiltList<BuiltList<num>>**](BuiltList.md) | | [optional] [[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/petstore_client_lib_fake/doc/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayOfNumberOnly.md index 11eab0b6dc4..94b60f272fd 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arraynumber** | **BuiltList<num>** | | [optional] +**arrayNumber** | **BuiltList<num>** | | [optional] [[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/petstore_client_lib_fake/doc/Capitalization.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Capitalization.md index e673e7baef4..4a07b4eb820 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Capitalization.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Capitalization.md @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**smallcamel** | **String** | | [optional] -**capitalcamel** | **String** | | [optional] +**smallCamel** | **String** | | [optional] +**capitalCamel** | **String** | | [optional] **smallSnake** | **String** | | [optional] **capitalSnake** | **String** | | [optional] -**scaEthFlowPoints** | **String** | | [optional] -**attName** | **String** | Name of the pet | [optional] +**sCAETHFlowPoints** | **String** | | [optional] +**ATT_NAME** | **String** | Name of the pet | [optional] [[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/petstore_client_lib_fake/doc/Cat.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Cat.md index 9c557ac9082..6552eea4b43 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Cat.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Cat.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **declawed** | **bool** | | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ChildWithNullable.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ChildWithNullable.md index 54b310b0f58..770494fcf4c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ChildWithNullable.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ChildWithNullable.md @@ -9,8 +9,8 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] -**otherproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] +**otherProperty** | **String** | | [optional] [[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/petstore_client_lib_fake/doc/Dog.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Dog.md index b2ba3dfcef5..d36439b767b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Dog.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Dog.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **breed** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/EnumTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/EnumTest.md index f1b0758b868..7c24fe2347b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/EnumTest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/EnumTest.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **enumStringRequired** | **String** | | **enumInteger** | **int** | | [optional] **enumNumber** | **double** | | [optional] -**outerenum** | [**OuterEnum**](OuterEnum.md) | | [optional] -**outerenuminteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] -**outerenumdefaultvalue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] -**outerenumintegerdefaultvalue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] +**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] +**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] +**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] +**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] [[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/petstore_client_lib_fake/doc/FakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md index 987edf55dfc..d9ba061a46e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md @@ -197,7 +197,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outercomposite) +> OuterComposite fakeOuterCompositeSerialize(outerComposite) @@ -208,10 +208,10 @@ Test serialization of object with outer number type import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final OuterComposite outercomposite = ; // OuterComposite | Input composite as post body +final OuterComposite outerComposite = ; // OuterComposite | Input composite as post body try { - final response = api.fakeOuterCompositeSerialize(outercomposite); + final response = api.fakeOuterCompositeSerialize(outerComposite); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->fakeOuterCompositeSerialize: $e\n'); @@ -222,7 +222,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outercomposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -326,7 +326,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakePropertyEnumIntegerSerialize** -> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty) +> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty) @@ -337,10 +337,10 @@ Test serialization of enum (int) properties with examples import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final OuterObjectWithEnumProperty outerobjectwithenumproperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body +final OuterObjectWithEnumProperty outerObjectWithEnumProperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body try { - final response = api.fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty); + final response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->fakePropertyEnumIntegerSerialize: $e\n'); @@ -351,7 +351,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerobjectwithenumproperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | + **outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | ### Return type @@ -453,7 +453,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileschematestclass) +> testBodyWithFileSchema(fileSchemaTestClass) @@ -464,10 +464,10 @@ For this test, the body for this request must reference a schema named `File`. import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final FileSchemaTestClass fileschematestclass = ; // FileSchemaTestClass | +final FileSchemaTestClass fileSchemaTestClass = ; // FileSchemaTestClass | try { - api.testBodyWithFileSchema(fileschematestclass); + api.testBodyWithFileSchema(fileSchemaTestClass); } catch on DioException (e) { print('Exception when calling FakeApi->testBodyWithFileSchema: $e\n'); } @@ -477,7 +477,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileschematestclass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -537,7 +537,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testClientModel** -> ModelClient testClientModel(modelclient) +> ModelClient testClientModel(modelClient) To test \"client\" model @@ -548,10 +548,10 @@ To test \"client\" model import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.testClientModel(modelclient); + final response = api.testClientModel(modelClient); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->testClientModel: $e\n'); @@ -562,7 +562,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -580,7 +580,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testEndpointParameters** -> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback) +> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -605,12 +605,12 @@ final double float = 3.4; // double | None final String string = string_example; // String | None final Uint8List binary = BINARY_DATA_HERE; // Uint8List | None final Date date = 2013-10-20; // Date | None -final DateTime datetime = 2013-10-20T19:20:30+01:00; // DateTime | None +final DateTime dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None final String password = password_example; // String | None final String callback = callback_example; // String | None try { - api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback); + api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback); } catch on DioException (e) { print('Exception when calling FakeApi->testEndpointParameters: $e\n'); } @@ -631,7 +631,7 @@ Name | Type | Description | Notes **string** | **String**| None | [optional] **binary** | **Uint8List**| None | [optional] **date** | **Date**| None | [optional] - **datetime** | **DateTime**| None | [optional] + **dateTime** | **DateTime**| None | [optional] **password** | **String**| None | [optional] **callback** | **String**| None | [optional] @@ -803,7 +803,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testInlineFreeformAdditionalProperties** -> testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest) +> testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest) test inline free-form additionalProperties @@ -814,10 +814,10 @@ test inline free-form additionalProperties import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body +final TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body try { - api.testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest); + api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); } catch on DioException (e) { print('Exception when calling FakeApi->testInlineFreeformAdditionalProperties: $e\n'); } @@ -827,7 +827,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **testinlinefreeformadditionalpropertiesrequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | + **testInlineFreeformAdditionalPropertiesRequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | ### Return type @@ -889,7 +889,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testNullable** -> testNullable(childwithnullable) +> testNullable(childWithNullable) test nullable parent property @@ -900,10 +900,10 @@ test nullable parent property import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final ChildWithNullable childwithnullable = ; // ChildWithNullable | request body +final ChildWithNullable childWithNullable = ; // ChildWithNullable | request body try { - api.testNullable(childwithnullable); + api.testNullable(childWithNullable); } catch on DioException (e) { print('Exception when calling FakeApi->testNullable: $e\n'); } @@ -913,7 +913,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **childwithnullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | + **childWithNullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | ### Return type @@ -931,7 +931,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testQueryParameterCollectionFormat** -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language) +> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language) @@ -947,11 +947,11 @@ final BuiltList ioutil = ; // BuiltList | final BuiltList http = ; // BuiltList | final BuiltList url = ; // BuiltList | final BuiltList context = ; // BuiltList | -final String allowempty = allowempty_example; // String | +final String allowEmpty = allowEmpty_example; // String | final BuiltMap language = ; // BuiltMap | try { - api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language); + api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language); } catch on DioException (e) { print('Exception when calling FakeApi->testQueryParameterCollectionFormat: $e\n'); } @@ -966,7 +966,7 @@ Name | Type | Description | Notes **http** | [**BuiltList<String>**](String.md)| | **url** | [**BuiltList<String>**](String.md)| | **context** | [**BuiltList<String>**](String.md)| | - **allowempty** | **String**| | + **allowEmpty** | **String**| | **language** | [**BuiltMap<String, String>**](String.md)| | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeBigDecimalMap200Response.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeBigDecimalMap200Response.md index 87733576b77..cedb487c954 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeBigDecimalMap200Response.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeBigDecimalMap200Response.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someid** | **num** | | [optional] -**somemap** | **BuiltMap<String, num>** | | [optional] +**someId** | **num** | | [optional] +**someMap** | **BuiltMap<String, num>** | | [optional] [[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/petstore_client_lib_fake/doc/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeClassnameTags123Api.md index 88a70afff0f..645aebf399f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeClassnameTags123Api.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **testClassname** -> ModelClient testClassname(modelclient) +> ModelClient testClassname(modelClient) To test class name in snake case @@ -28,10 +28,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key_query').apiKeyPrefix = 'Bearer'; final api = Openapi().getFakeClassnameTags123Api(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.testClassname(modelclient); + final response = api.testClassname(modelClient); print(response); } catch on DioException (e) { print('Exception when calling FakeClassnameTags123Api->testClassname: $e\n'); @@ -42,7 +42,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FormatTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FormatTest.md index e6b4ee4a6a9..f811264ca2b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FormatTest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FormatTest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **byte** | **String** | | **binary** | [**Uint8List**](Uint8List.md) | | [optional] **date** | [**Date**](Date.md) | | -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **uuid** | **String** | | [optional] **password** | **String** | | **patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/HealthCheckResult.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/HealthCheckResult.md index c912fb2e08f..4d6aeb75d96 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/HealthCheckResult.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/HealthCheckResult.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nullablemessage** | **String** | | [optional] +**nullableMessage** | **String** | | [optional] [[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/petstore_client_lib_fake/doc/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/MixedPropertiesAndAdditionalPropertiesClass.md index cda3d76a20a..b1a4c4ccc40 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/MixedPropertiesAndAdditionalPropertiesClass.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **map** | [**BuiltMap<String, Animal>**](Animal.md) | | [optional] [[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/petstore_client_lib_fake/doc/ModelFile.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelFile.md index d54b1bbbea0..4be260e93f6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelFile.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelFile.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sourceuri** | **String** | Test capitalization | [optional] +**sourceURI** | **String** | Test capitalization | [optional] [[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/petstore_client_lib_fake/doc/NumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/NumberOnly.md index f5fac6f8a17..d8096a3db37 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/NumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/NumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**justnumber** | **num** | | [optional] +**justNumber** | **num** | | [optional] [[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/petstore_client_lib_fake/doc/ObjectWithDeprecatedFields.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ObjectWithDeprecatedFields.md index b96040b7ec2..3e7848d382c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ObjectWithDeprecatedFields.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ObjectWithDeprecatedFields.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] **id** | **num** | | [optional] -**deprecatedref** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **bars** | **BuiltList<String>** | | [optional] [[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/petstore_client_lib_fake/doc/Order.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Order.md index 08914a83f30..bde5ffe51a2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Order.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Order.md @@ -9,9 +9,9 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**petid** | **int** | | [optional] +**petId** | **int** | | [optional] **quantity** | **int** | | [optional] -**shipdate** | [**DateTime**](DateTime.md) | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] **status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ParentWithNullable.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ParentWithNullable.md index 43546498705..17aa5ca0294 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ParentWithNullable.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ParentWithNullable.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] [[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/petstore_client_lib_fake/doc/Pet.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Pet.md index dc8144baf07..08e0aeedd78 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Pet.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Pet.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **id** | **int** | | [optional] **category** | [**Category**](Category.md) | | [optional] **name** | **String** | | -**photourls** | **BuiltSet<String>** | | +**photoUrls** | **BuiltSet<String>** | | **tags** | [**BuiltList<Tag>**](Tag.md) | | [optional] **status** | **String** | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/PetApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/PetApi.md index f7744bcc832..2b7766eb60d 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/PetApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/PetApi.md @@ -65,7 +65,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deletePet** -> deletePet(petid, apiKey) +> deletePet(petId, apiKey) Deletes a pet @@ -78,11 +78,11 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | Pet id to delete +final int petId = 789; // int | Pet id to delete final String apiKey = apiKey_example; // String | try { - api.deletePet(petid, apiKey); + api.deletePet(petId, apiKey); } catch on DioException (e) { print('Exception when calling PetApi->deletePet: $e\n'); } @@ -92,7 +92,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| Pet id to delete | + **petId** | **int**| Pet id to delete | **apiKey** | **String**| | [optional] ### Return type @@ -201,7 +201,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPetById** -> Pet getPetById(petid) +> Pet getPetById(petId) Find pet by ID @@ -216,10 +216,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to return +final int petId = 789; // int | ID of pet to return try { - final response = api.getPetById(petid); + final response = api.getPetById(petId); print(response); } catch on DioException (e) { print('Exception when calling PetApi->getPetById: $e\n'); @@ -230,7 +230,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to return | + **petId** | **int**| ID of pet to return | ### Return type @@ -292,7 +292,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updatePetWithForm** -> updatePetWithForm(petid, name, status) +> updatePetWithForm(petId, name, status) Updates a pet in the store with form data @@ -305,12 +305,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet that needs to be updated +final int petId = 789; // int | ID of pet that needs to be updated final String name = name_example; // String | Updated name of the pet final String status = status_example; // String | Updated status of the pet try { - api.updatePetWithForm(petid, name, status); + api.updatePetWithForm(petId, name, status); } catch on DioException (e) { print('Exception when calling PetApi->updatePetWithForm: $e\n'); } @@ -320,7 +320,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet that needs to be updated | + **petId** | **int**| ID of pet that needs to be updated | **name** | **String**| Updated name of the pet | [optional] **status** | **String**| Updated status of the pet | [optional] @@ -340,7 +340,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFile** -> ApiResponse uploadFile(petid, additionalmetadata, file) +> ApiResponse uploadFile(petId, additionalMetadata, file) uploads an image @@ -353,12 +353,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to update -final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final int petId = 789; // int | ID of pet to update +final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | file to upload try { - final response = api.uploadFile(petid, additionalmetadata, file); + final response = api.uploadFile(petId, additionalMetadata, file); print(response); } catch on DioException (e) { print('Exception when calling PetApi->uploadFile: $e\n'); @@ -369,8 +369,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] **file** | **MultipartFile**| file to upload | [optional] ### Return type @@ -389,7 +389,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFileWithRequiredFile** -> ApiResponse uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata) +> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) uploads an image (required) @@ -402,12 +402,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to update -final MultipartFile requiredfile = BINARY_DATA_HERE; // MultipartFile | file to upload -final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final int petId = 789; // int | ID of pet to update +final MultipartFile requiredFile = BINARY_DATA_HERE; // MultipartFile | file to upload +final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server try { - final response = api.uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata); + final response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); print(response); } catch on DioException (e) { print('Exception when calling PetApi->uploadFileWithRequiredFile: $e\n'); @@ -418,9 +418,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **requiredfile** | **MultipartFile**| file to upload | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **requiredFile** | **MultipartFile**| file to upload | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/SpecialModelName.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/SpecialModelName.md index 04697c8e622..5fcfa98e0b3 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/SpecialModelName.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/SpecialModelName.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket** | **int** | | [optional] +**dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket** | **int** | | [optional] [[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/petstore_client_lib_fake/doc/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/TestInlineFreeformAdditionalPropertiesRequest.md index 894a3e60ee3..e2b2f1fd446 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/TestInlineFreeformAdditionalPropertiesRequest.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someproperty** | **String** | | [optional] +**someProperty** | **String** | | [optional] [[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/petstore_client_lib_fake/doc/User.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/User.md index 37aa8c50230..fa87e64d859 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/User.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/User.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] **username** | **String** | | [optional] -**firstname** | **String** | | [optional] -**lastname** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] **email** | **String** | | [optional] **password** | **String** | | [optional] **phone** | **String** | | [optional] -**userstatus** | **int** | User Status | [optional] +**userStatus** | **int** | User Status | [optional] [[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/petstore_client_lib_fake/lib/src/api/another_fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/another_fake_api.dart index 15199a7d2f2..5d287618307 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/another_fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/another_fake_api.dart @@ -22,7 +22,7 @@ class AnotherFakeApi { /// To test special tags and operation ID starting with number /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -33,7 +33,7 @@ class AnotherFakeApi { /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> call123testSpecialTags({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -59,7 +59,7 @@ class AnotherFakeApi { try { const _type = FullType(ModelClient); - _bodyData = _serializers.serialize(modelclient, specifiedType: _type); + _bodyData = _serializers.serialize(modelClient, specifiedType: _type); } catch(error, stackTrace) { throw DioException( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart index 756b1fe22f6..1cfaf9712ad 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart @@ -358,7 +358,7 @@ class FakeApi { /// Test serialization of object with outer number type /// /// Parameters: - /// * [outercomposite] - Input composite as post body + /// * [outerComposite] - Input composite as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -369,7 +369,7 @@ class FakeApi { /// Returns a [Future] containing a [Response] with a [OuterComposite] as data /// Throws [DioException] if API call or serialization fails Future> fakeOuterCompositeSerialize({ - OuterComposite? outercomposite, + OuterComposite? outerComposite, CancelToken? cancelToken, Map? headers, Map? extra, @@ -395,7 +395,7 @@ class FakeApi { try { const _type = FullType(OuterComposite); - _bodyData = outercomposite == null ? null : _serializers.serialize(outercomposite, specifiedType: _type); + _bodyData = outerComposite == null ? null : _serializers.serialize(outerComposite, specifiedType: _type); } catch(error, stackTrace) { throw DioException( @@ -635,7 +635,7 @@ class FakeApi { /// Test serialization of enum (int) properties with examples /// /// Parameters: - /// * [outerobjectwithenumproperty] - Input enum (int) as post body + /// * [outerObjectWithEnumProperty] - Input enum (int) as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -646,7 +646,7 @@ class FakeApi { /// Returns a [Future] containing a [Response] with a [OuterObjectWithEnumProperty] as data /// Throws [DioException] if API call or serialization fails Future> fakePropertyEnumIntegerSerialize({ - required OuterObjectWithEnumProperty outerobjectwithenumproperty, + required OuterObjectWithEnumProperty outerObjectWithEnumProperty, CancelToken? cancelToken, Map? headers, Map? extra, @@ -672,7 +672,7 @@ class FakeApi { try { const _type = FullType(OuterObjectWithEnumProperty); - _bodyData = _serializers.serialize(outerobjectwithenumproperty, specifiedType: _type); + _bodyData = _serializers.serialize(outerObjectWithEnumProperty, specifiedType: _type); } catch(error, stackTrace) { throw DioException( @@ -863,7 +863,7 @@ class FakeApi { /// For this test, the body for this request must reference a schema named `File`. /// /// Parameters: - /// * [fileschematestclass] + /// * [fileSchemaTestClass] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -874,7 +874,7 @@ class FakeApi { /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testBodyWithFileSchema({ - required FileSchemaTestClass fileschematestclass, + required FileSchemaTestClass fileSchemaTestClass, CancelToken? cancelToken, Map? headers, Map? extra, @@ -900,7 +900,7 @@ class FakeApi { try { const _type = FullType(FileSchemaTestClass); - _bodyData = _serializers.serialize(fileschematestclass, specifiedType: _type); + _bodyData = _serializers.serialize(fileSchemaTestClass, specifiedType: _type); } catch(error, stackTrace) { throw DioException( @@ -1005,7 +1005,7 @@ class FakeApi { /// To test \"client\" model /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1016,7 +1016,7 @@ class FakeApi { /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> testClientModel({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1042,7 +1042,7 @@ class FakeApi { try { const _type = FullType(ModelClient); - _bodyData = _serializers.serialize(modelclient, specifiedType: _type); + _bodyData = _serializers.serialize(modelClient, specifiedType: _type); } catch(error, stackTrace) { throw DioException( @@ -1111,7 +1111,7 @@ class FakeApi { /// * [string] - None /// * [binary] - None /// * [date] - None - /// * [datetime] - None + /// * [dateTime] - None /// * [password] - None /// * [callback] - None /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -1135,7 +1135,7 @@ class FakeApi { String? string, Uint8List? binary, Date? date, - DateTime? datetime, + DateTime? dateTime, String? password, String? callback, CancelToken? cancelToken, @@ -1180,7 +1180,7 @@ class FakeApi { r'byte': encodeQueryParameter(_serializers, byte, const FullType(String)), if (binary != null) r'binary': encodeQueryParameter(_serializers, binary, const FullType(Uint8List)), if (date != null) r'date': encodeQueryParameter(_serializers, date, const FullType(Date)), - if (datetime != null) r'dateTime': encodeQueryParameter(_serializers, datetime, const FullType(DateTime)), + if (dateTime != null) r'dateTime': encodeQueryParameter(_serializers, dateTime, const FullType(DateTime)), if (password != null) r'password': encodeQueryParameter(_serializers, password, const FullType(String)), if (callback != null) r'callback': encodeQueryParameter(_serializers, callback, const FullType(String)), }; @@ -1450,7 +1450,7 @@ class FakeApi { /// /// /// Parameters: - /// * [testinlinefreeformadditionalpropertiesrequest] - request body + /// * [testInlineFreeformAdditionalPropertiesRequest] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1461,7 +1461,7 @@ class FakeApi { /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testInlineFreeformAdditionalProperties({ - required TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest, + required TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1487,7 +1487,7 @@ class FakeApi { try { const _type = FullType(TestInlineFreeformAdditionalPropertiesRequest); - _bodyData = _serializers.serialize(testinlinefreeformadditionalpropertiesrequest, specifiedType: _type); + _bodyData = _serializers.serialize(testInlineFreeformAdditionalPropertiesRequest, specifiedType: _type); } catch(error, stackTrace) { throw DioException( @@ -1588,7 +1588,7 @@ class FakeApi { /// /// /// Parameters: - /// * [childwithnullable] - request body + /// * [childWithNullable] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1599,7 +1599,7 @@ class FakeApi { /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testNullable({ - required ChildWithNullable childwithnullable, + required ChildWithNullable childWithNullable, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1625,7 +1625,7 @@ class FakeApi { try { const _type = FullType(ChildWithNullable); - _bodyData = _serializers.serialize(childwithnullable, specifiedType: _type); + _bodyData = _serializers.serialize(childWithNullable, specifiedType: _type); } catch(error, stackTrace) { throw DioException( @@ -1660,7 +1660,7 @@ class FakeApi { /// * [http] /// * [url] /// * [context] - /// * [allowempty] + /// * [allowEmpty] /// * [language] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -1677,7 +1677,7 @@ class FakeApi { required BuiltList http, required BuiltList url, required BuiltList context, - required String allowempty, + required String allowEmpty, BuiltMap? language, CancelToken? cancelToken, Map? headers, @@ -1706,7 +1706,7 @@ class FakeApi { r'url': encodeCollectionQueryParameter(_serializers, url, const FullType(BuiltList, [FullType(String)]), format: ListFormat.csv,), r'context': encodeCollectionQueryParameter(_serializers, context, const FullType(BuiltList, [FullType(String)]), format: ListFormat.multi,), if (language != null) r'language': encodeQueryParameter(_serializers, language, const FullType(BuiltMap, [FullType(String), FullType(String)]), ), - r'allowEmpty': encodeQueryParameter(_serializers, allowempty, const FullType(String)), + r'allowEmpty': encodeQueryParameter(_serializers, allowEmpty, const FullType(String)), }; final _response = await _dio.request( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_classname_tags123_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_classname_tags123_api.dart index 7f9ec576afe..671ec766ab4 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_classname_tags123_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_classname_tags123_api.dart @@ -22,7 +22,7 @@ class FakeClassnameTags123Api { /// To test class name in snake case /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -33,7 +33,7 @@ class FakeClassnameTags123Api { /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> testClassname({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -66,7 +66,7 @@ class FakeClassnameTags123Api { try { const _type = FullType(ModelClient); - _bodyData = _serializers.serialize(modelclient, specifiedType: _type); + _bodyData = _serializers.serialize(modelClient, specifiedType: _type); } catch(error, stackTrace) { throw DioException( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/pet_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/pet_api.dart index 9507fb04307..a4da1c5ff6d 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/pet_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/pet_api.dart @@ -97,7 +97,7 @@ class PetApi { /// /// /// Parameters: - /// * [petid] - Pet id to delete + /// * [petId] - Pet id to delete /// * [apiKey] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -109,7 +109,7 @@ class PetApi { /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> deletePet({ - required int petid, + required int petId, String? apiKey, CancelToken? cancelToken, Map? headers, @@ -118,7 +118,7 @@ class PetApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petid, const FullType(int)).toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petId, const FullType(int)).toString()); final _options = Options( method: r'DELETE', headers: { @@ -323,7 +323,7 @@ class PetApi { /// Returns a single pet /// /// Parameters: - /// * [petid] - ID of pet to return + /// * [petId] - ID of pet to return /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -334,7 +334,7 @@ class PetApi { /// Returns a [Future] containing a [Response] with a [Pet] as data /// Throws [DioException] if API call or serialization fails Future> getPetById({ - required int petid, + required int petId, CancelToken? cancelToken, Map? headers, Map? extra, @@ -342,7 +342,7 @@ class PetApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petid, const FullType(int)).toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petId, const FullType(int)).toString()); final _options = Options( method: r'GET', headers: { @@ -477,7 +477,7 @@ class PetApi { /// /// /// Parameters: - /// * [petid] - ID of pet that needs to be updated + /// * [petId] - ID of pet that needs to be updated /// * [name] - Updated name of the pet /// * [status] - Updated status of the pet /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -490,7 +490,7 @@ class PetApi { /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> updatePetWithForm({ - required int petid, + required int petId, String? name, String? status, CancelToken? cancelToken, @@ -500,7 +500,7 @@ class PetApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petid, const FullType(int)).toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petId, const FullType(int)).toString()); final _options = Options( method: r'POST', headers: { @@ -555,8 +555,8 @@ class PetApi { /// /// /// Parameters: - /// * [petid] - ID of pet to update - /// * [additionalmetadata] - Additional data to pass to server + /// * [petId] - ID of pet to update + /// * [additionalMetadata] - Additional data to pass to server /// * [file] - file to upload /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -568,8 +568,8 @@ class PetApi { /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails Future> uploadFile({ - required int petid, - String? additionalmetadata, + required int petId, + String? additionalMetadata, MultipartFile? file, CancelToken? cancelToken, Map? headers, @@ -578,7 +578,7 @@ class PetApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petid, const FullType(int)).toString()); + final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petId, const FullType(int)).toString()); final _options = Options( method: r'POST', headers: { @@ -601,7 +601,7 @@ class PetApi { try { _bodyData = FormData.fromMap({ - if (additionalmetadata != null) r'additionalMetadata': encodeFormParameter(_serializers, additionalmetadata, const FullType(String)), + if (additionalMetadata != null) r'additionalMetadata': encodeFormParameter(_serializers, additionalMetadata, const FullType(String)), if (file != null) r'file': file, }); @@ -661,9 +661,9 @@ class PetApi { /// /// /// Parameters: - /// * [petid] - ID of pet to update - /// * [requiredfile] - file to upload - /// * [additionalmetadata] - Additional data to pass to server + /// * [petId] - ID of pet to update + /// * [requiredFile] - file to upload + /// * [additionalMetadata] - Additional data to pass to server /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -674,9 +674,9 @@ class PetApi { /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails Future> uploadFileWithRequiredFile({ - required int petid, - required MultipartFile requiredfile, - String? additionalmetadata, + required int petId, + required MultipartFile requiredFile, + String? additionalMetadata, CancelToken? cancelToken, Map? headers, Map? extra, @@ -684,7 +684,7 @@ class PetApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petid, const FullType(int)).toString()); + final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', encodeQueryParameter(_serializers, petId, const FullType(int)).toString()); final _options = Options( method: r'POST', headers: { @@ -707,8 +707,8 @@ class PetApi { try { _bodyData = FormData.fromMap({ - if (additionalmetadata != null) r'additionalMetadata': encodeFormParameter(_serializers, additionalmetadata, const FullType(String)), - r'requiredFile': requiredfile, + if (additionalMetadata != null) r'additionalMetadata': encodeFormParameter(_serializers, additionalMetadata, const FullType(String)), + r'requiredFile': requiredFile, }); } catch(error, stackTrace) { diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/all_of_with_single_ref.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/all_of_with_single_ref.dart index 15e316036e0..5bcd7d9dee8 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/all_of_with_single_ref.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/all_of_with_single_ref.dart @@ -13,15 +13,15 @@ part 'all_of_with_single_ref.g.dart'; /// /// Properties: /// * [username] -/// * [singlereftype] +/// * [singleRefType] @BuiltValue() abstract class AllOfWithSingleRef implements Built { @BuiltValueField(wireName: r'username') String? get username; @BuiltValueField(wireName: r'SingleRefType') - SingleRefType? get singlereftype; - // enum singlereftypeEnum { admin, user, }; + SingleRefType? get singleRefType; + // enum singleRefTypeEnum { admin, user, }; AllOfWithSingleRef._(); @@ -53,10 +53,10 @@ class _$AllOfWithSingleRefSerializer implements PrimitiveSerializer { }) sync* { yield r'className'; yield serializers.serialize( - object.classname, + object.className, specifiedType: const FullType(String), ); if (object.color != null) { @@ -165,7 +165,7 @@ class _$$AnimalSerializer implements PrimitiveSerializer<$Animal> { value, specifiedType: const FullType(String), ) as String; - result.classname = valueDes; + result.className = valueDes; break; case r'color': final valueDes = serializers.deserialize( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/array_of_array_of_number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/array_of_array_of_number_only.dart index 8a571b40fb9..5bc0982b8ab 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/array_of_array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/array_of_array_of_number_only.dart @@ -12,11 +12,11 @@ part 'array_of_array_of_number_only.g.dart'; /// ArrayOfArrayOfNumberOnly /// /// Properties: -/// * [arrayarraynumber] +/// * [arrayArrayNumber] @BuiltValue() abstract class ArrayOfArrayOfNumberOnly implements Built { @BuiltValueField(wireName: r'ArrayArrayNumber') - BuiltList>? get arrayarraynumber; + BuiltList>? get arrayArrayNumber; ArrayOfArrayOfNumberOnly._(); @@ -41,10 +41,10 @@ class _$ArrayOfArrayOfNumberOnlySerializer implements PrimitiveSerializer>; - result.arrayarraynumber.replace(valueDes); + result.arrayArrayNumber.replace(valueDes); break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/array_of_number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/array_of_number_only.dart index a2925f243ca..72239924f5e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/array_of_number_only.dart @@ -12,11 +12,11 @@ part 'array_of_number_only.g.dart'; /// ArrayOfNumberOnly /// /// Properties: -/// * [arraynumber] +/// * [arrayNumber] @BuiltValue() abstract class ArrayOfNumberOnly implements Built { @BuiltValueField(wireName: r'ArrayNumber') - BuiltList? get arraynumber; + BuiltList? get arrayNumber; ArrayOfNumberOnly._(); @@ -41,10 +41,10 @@ class _$ArrayOfNumberOnlySerializer implements PrimitiveSerializer; - result.arraynumber.replace(valueDes); + result.arrayNumber.replace(valueDes); break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/capitalization.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/capitalization.dart index 985611a9cf2..75827b9a429 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/capitalization.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/capitalization.dart @@ -11,19 +11,19 @@ part 'capitalization.g.dart'; /// Capitalization /// /// Properties: -/// * [smallcamel] -/// * [capitalcamel] +/// * [smallCamel] +/// * [capitalCamel] /// * [smallSnake] /// * [capitalSnake] -/// * [scaEthFlowPoints] -/// * [attName] - Name of the pet +/// * [sCAETHFlowPoints] +/// * [ATT_NAME] - Name of the pet @BuiltValue() abstract class Capitalization implements Built { @BuiltValueField(wireName: r'smallCamel') - String? get smallcamel; + String? get smallCamel; @BuiltValueField(wireName: r'CapitalCamel') - String? get capitalcamel; + String? get capitalCamel; @BuiltValueField(wireName: r'small_Snake') String? get smallSnake; @@ -32,11 +32,11 @@ abstract class Capitalization implements Built Capitalization object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.smallcamel != null) { + if (object.smallCamel != null) { yield r'smallCamel'; yield serializers.serialize( - object.smallcamel, + object.smallCamel, specifiedType: const FullType(String), ); } - if (object.capitalcamel != null) { + if (object.capitalCamel != null) { yield r'CapitalCamel'; yield serializers.serialize( - object.capitalcamel, + object.capitalCamel, specifiedType: const FullType(String), ); } @@ -89,17 +89,17 @@ class _$CapitalizationSerializer implements PrimitiveSerializer specifiedType: const FullType(String), ); } - if (object.scaEthFlowPoints != null) { + if (object.sCAETHFlowPoints != null) { yield r'SCA_ETH_Flow_Points'; yield serializers.serialize( - object.scaEthFlowPoints, + object.sCAETHFlowPoints, specifiedType: const FullType(String), ); } - if (object.attName != null) { + if (object.ATT_NAME != null) { yield r'ATT_NAME'; yield serializers.serialize( - object.attName, + object.ATT_NAME, specifiedType: const FullType(String), ); } @@ -131,14 +131,14 @@ class _$CapitalizationSerializer implements PrimitiveSerializer value, specifiedType: const FullType(String), ) as String; - result.smallcamel = valueDes; + result.smallCamel = valueDes; break; case r'CapitalCamel': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.capitalcamel = valueDes; + result.capitalCamel = valueDes; break; case r'small_Snake': final valueDes = serializers.deserialize( @@ -159,14 +159,14 @@ class _$CapitalizationSerializer implements PrimitiveSerializer value, specifiedType: const FullType(String), ) as String; - result.scaEthFlowPoints = valueDes; + result.sCAETHFlowPoints = valueDes; break; case r'ATT_NAME': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.attName = valueDes; + result.ATT_NAME = valueDes; break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/cat.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/cat.dart index 5b7162354b4..af1faeef25c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/cat.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/cat.dart @@ -12,7 +12,7 @@ part 'cat.g.dart'; /// Cat /// /// Properties: -/// * [classname] +/// * [className] /// * [color] /// * [declawed] @BuiltValue() @@ -25,7 +25,7 @@ abstract class Cat implements Animal, Built { factory Cat([void updates(CatBuilder b)]) = _$Cat; @BuiltValueHook(initializeBuilder: true) - static void _defaults(CatBuilder b) => b..classname=b.discriminatorValue + static void _defaults(CatBuilder b) => b..className=b.discriminatorValue ..color = 'red'; @BuiltValueSerializer(custom: true) @@ -44,11 +44,6 @@ class _$CatSerializer implements PrimitiveSerializer { Cat object, { FullType specifiedType = FullType.unspecified, }) sync* { - yield r'className'; - yield serializers.serialize( - object.classname, - specifiedType: const FullType(String), - ); if (object.color != null) { yield r'color'; yield serializers.serialize( @@ -63,6 +58,11 @@ class _$CatSerializer implements PrimitiveSerializer { specifiedType: const FullType(bool), ); } + yield r'className'; + yield serializers.serialize( + object.className, + specifiedType: const FullType(String), + ); } @override @@ -86,13 +86,6 @@ class _$CatSerializer implements PrimitiveSerializer { final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { - case r'className': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.classname = valueDes; - break; case r'color': final valueDes = serializers.deserialize( value, @@ -107,6 +100,13 @@ class _$CatSerializer implements PrimitiveSerializer { ) as bool; result.declawed = valueDes; break; + case r'className': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.className = valueDes; + break; default: unhandled.add(key); unhandled.add(value); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/child_with_nullable.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/child_with_nullable.dart index 39de46a560e..8e40eb1d237 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/child_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/child_with_nullable.dart @@ -14,12 +14,12 @@ part 'child_with_nullable.g.dart'; /// /// Properties: /// * [type] -/// * [nullableproperty] -/// * [otherproperty] +/// * [nullableProperty] +/// * [otherProperty] @BuiltValue() abstract class ChildWithNullable implements ParentWithNullable, Built { @BuiltValueField(wireName: r'otherProperty') - String? get otherproperty; + String? get otherProperty; ChildWithNullable._(); @@ -44,13 +44,6 @@ class _$ChildWithNullableSerializer implements PrimitiveSerializer { factory Dog([void updates(DogBuilder b)]) = _$Dog; @BuiltValueHook(initializeBuilder: true) - static void _defaults(DogBuilder b) => b..classname=b.discriminatorValue + static void _defaults(DogBuilder b) => b..className=b.discriminatorValue ..color = 'red'; @BuiltValueSerializer(custom: true) @@ -44,11 +44,6 @@ class _$DogSerializer implements PrimitiveSerializer { Dog object, { FullType specifiedType = FullType.unspecified, }) sync* { - yield r'className'; - yield serializers.serialize( - object.classname, - specifiedType: const FullType(String), - ); if (object.color != null) { yield r'color'; yield serializers.serialize( @@ -63,6 +58,11 @@ class _$DogSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } + yield r'className'; + yield serializers.serialize( + object.className, + specifiedType: const FullType(String), + ); } @override @@ -86,13 +86,6 @@ class _$DogSerializer implements PrimitiveSerializer { final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { - case r'className': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.classname = valueDes; - break; case r'color': final valueDes = serializers.deserialize( value, @@ -107,6 +100,13 @@ class _$DogSerializer implements PrimitiveSerializer { ) as String; result.breed = valueDes; break; + case r'className': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.className = valueDes; + break; default: unhandled.add(key); unhandled.add(value); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/enum_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/enum_test.dart index c88058c10a6..831f5b9d6d2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/enum_test.dart @@ -20,10 +20,10 @@ part 'enum_test.g.dart'; /// * [enumStringRequired] /// * [enumInteger] /// * [enumNumber] -/// * [outerenum] -/// * [outerenuminteger] -/// * [outerenumdefaultvalue] -/// * [outerenumintegerdefaultvalue] +/// * [outerEnum] +/// * [outerEnumInteger] +/// * [outerEnumDefaultValue] +/// * [outerEnumIntegerDefaultValue] @BuiltValue() abstract class EnumTest implements Built { @BuiltValueField(wireName: r'enum_string') @@ -43,20 +43,20 @@ abstract class EnumTest implements Built { // enum enumNumberEnum { 1.1, -1.2, }; @BuiltValueField(wireName: r'outerEnum') - OuterEnum? get outerenum; - // enum outerenumEnum { placed, approved, delivered, }; + OuterEnum? get outerEnum; + // enum outerEnumEnum { placed, approved, delivered, }; @BuiltValueField(wireName: r'outerEnumInteger') - OuterEnumInteger? get outerenuminteger; - // enum outerenumintegerEnum { 0, 1, 2, }; + OuterEnumInteger? get outerEnumInteger; + // enum outerEnumIntegerEnum { 0, 1, 2, }; @BuiltValueField(wireName: r'outerEnumDefaultValue') - OuterEnumDefaultValue? get outerenumdefaultvalue; - // enum outerenumdefaultvalueEnum { placed, approved, delivered, }; + OuterEnumDefaultValue? get outerEnumDefaultValue; + // enum outerEnumDefaultValueEnum { placed, approved, delivered, }; @BuiltValueField(wireName: r'outerEnumIntegerDefaultValue') - OuterEnumIntegerDefaultValue? get outerenumintegerdefaultvalue; - // enum outerenumintegerdefaultvalueEnum { 0, 1, 2, }; + OuterEnumIntegerDefaultValue? get outerEnumIntegerDefaultValue; + // enum outerEnumIntegerDefaultValueEnum { 0, 1, 2, }; EnumTest._(); @@ -107,31 +107,31 @@ class _$EnumTestSerializer implements PrimitiveSerializer { specifiedType: const FullType(EnumTestEnumNumberEnum), ); } - if (object.outerenum != null) { + if (object.outerEnum != null) { yield r'outerEnum'; yield serializers.serialize( - object.outerenum, + object.outerEnum, specifiedType: const FullType.nullable(OuterEnum), ); } - if (object.outerenuminteger != null) { + if (object.outerEnumInteger != null) { yield r'outerEnumInteger'; yield serializers.serialize( - object.outerenuminteger, + object.outerEnumInteger, specifiedType: const FullType(OuterEnumInteger), ); } - if (object.outerenumdefaultvalue != null) { + if (object.outerEnumDefaultValue != null) { yield r'outerEnumDefaultValue'; yield serializers.serialize( - object.outerenumdefaultvalue, + object.outerEnumDefaultValue, specifiedType: const FullType(OuterEnumDefaultValue), ); } - if (object.outerenumintegerdefaultvalue != null) { + if (object.outerEnumIntegerDefaultValue != null) { yield r'outerEnumIntegerDefaultValue'; yield serializers.serialize( - object.outerenumintegerdefaultvalue, + object.outerEnumIntegerDefaultValue, specifiedType: const FullType(OuterEnumIntegerDefaultValue), ); } @@ -192,28 +192,28 @@ class _$EnumTestSerializer implements PrimitiveSerializer { specifiedType: const FullType.nullable(OuterEnum), ) as OuterEnum?; if (valueDes == null) continue; - result.outerenum = valueDes; + result.outerEnum = valueDes; break; case r'outerEnumInteger': final valueDes = serializers.deserialize( value, specifiedType: const FullType(OuterEnumInteger), ) as OuterEnumInteger; - result.outerenuminteger = valueDes; + result.outerEnumInteger = valueDes; break; case r'outerEnumDefaultValue': final valueDes = serializers.deserialize( value, specifiedType: const FullType(OuterEnumDefaultValue), ) as OuterEnumDefaultValue; - result.outerenumdefaultvalue = valueDes; + result.outerEnumDefaultValue = valueDes; break; case r'outerEnumIntegerDefaultValue': final valueDes = serializers.deserialize( value, specifiedType: const FullType(OuterEnumIntegerDefaultValue), ) as OuterEnumIntegerDefaultValue; - result.outerenumintegerdefaultvalue = valueDes; + result.outerEnumIntegerDefaultValue = valueDes; break; default: unhandled.add(key); @@ -247,7 +247,7 @@ class _$EnumTestSerializer implements PrimitiveSerializer { class EnumTestEnumStringEnum extends EnumClass { @BuiltValueEnumConst(wireName: r'UPPER') - static const EnumTestEnumStringEnum upper = _$enumTestEnumStringEnum_upper; + static const EnumTestEnumStringEnum UPPER = _$enumTestEnumStringEnum_UPPER; @BuiltValueEnumConst(wireName: r'lower') static const EnumTestEnumStringEnum lower = _$enumTestEnumStringEnum_lower; @BuiltValueEnumConst(wireName: r'') @@ -266,7 +266,7 @@ class EnumTestEnumStringEnum extends EnumClass { class EnumTestEnumStringRequiredEnum extends EnumClass { @BuiltValueEnumConst(wireName: r'UPPER') - static const EnumTestEnumStringRequiredEnum upper = _$enumTestEnumStringRequiredEnum_upper; + static const EnumTestEnumStringRequiredEnum UPPER = _$enumTestEnumStringRequiredEnum_UPPER; @BuiltValueEnumConst(wireName: r'lower') static const EnumTestEnumStringRequiredEnum lower = _$enumTestEnumStringRequiredEnum_lower; @BuiltValueEnumConst(wireName: r'') @@ -302,9 +302,9 @@ class EnumTestEnumIntegerEnum extends EnumClass { class EnumTestEnumNumberEnum extends EnumClass { @BuiltValueEnumConst(wireName: r'1.1') - static const EnumTestEnumNumberEnum number1period1 = _$enumTestEnumNumberEnum_number1period1; + static const EnumTestEnumNumberEnum number1Period1 = _$enumTestEnumNumberEnum_number1Period1; @BuiltValueEnumConst(wireName: r'-1.2') - static const EnumTestEnumNumberEnum numberNegative1period2 = _$enumTestEnumNumberEnum_numberNegative1period2; + static const EnumTestEnumNumberEnum numberNegative1Period2 = _$enumTestEnumNumberEnum_numberNegative1Period2; @BuiltValueEnumConst(wireName: r'11184809', fallback: true) static const EnumTestEnumNumberEnum unknownDefaultOpenApi = _$enumTestEnumNumberEnum_unknownDefaultOpenApi; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/fake_big_decimal_map200_response.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/fake_big_decimal_map200_response.dart index ce10b09df98..ddfab9d2b56 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/fake_big_decimal_map200_response.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/fake_big_decimal_map200_response.dart @@ -12,15 +12,15 @@ part 'fake_big_decimal_map200_response.g.dart'; /// FakeBigDecimalMap200Response /// /// Properties: -/// * [someid] -/// * [somemap] +/// * [someId] +/// * [someMap] @BuiltValue() abstract class FakeBigDecimalMap200Response implements Built { @BuiltValueField(wireName: r'someId') - num? get someid; + num? get someId; @BuiltValueField(wireName: r'someMap') - BuiltMap? get somemap; + BuiltMap? get someMap; FakeBigDecimalMap200Response._(); @@ -45,17 +45,17 @@ class _$FakeBigDecimalMap200ResponseSerializer implements PrimitiveSerializer; - result.somemap.replace(valueDes); + result.someMap.replace(valueDes); break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/format_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/format_test.dart index 72d0e102062..33775231476 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/format_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/format_test.dart @@ -24,7 +24,7 @@ part 'format_test.g.dart'; /// * [byte] /// * [binary] /// * [date] -/// * [datetime] +/// * [dateTime] /// * [uuid] /// * [password] /// * [patternWithDigits] - A string that is a 10 digit number. Can have leading zeros. @@ -65,7 +65,7 @@ abstract class FormatTest implements Built { Date get date; @BuiltValueField(wireName: r'dateTime') - DateTime? get datetime; + DateTime? get dateTime; @BuiltValueField(wireName: r'uuid') String? get uuid; @@ -175,10 +175,10 @@ class _$FormatTestSerializer implements PrimitiveSerializer { object.date, specifiedType: const FullType(Date), ); - if (object.datetime != null) { + if (object.dateTime != null) { yield r'dateTime'; yield serializers.serialize( - object.datetime, + object.dateTime, specifiedType: const FullType(DateTime), ); } @@ -313,7 +313,7 @@ class _$FormatTestSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(DateTime), ) as DateTime; - result.datetime = valueDes; + result.dateTime = valueDes; break; case r'uuid': final valueDes = serializers.deserialize( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/health_check_result.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/health_check_result.dart index f84095e35b3..c092a535f2f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/health_check_result.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/health_check_result.dart @@ -11,11 +11,11 @@ part 'health_check_result.g.dart'; /// Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. /// /// Properties: -/// * [nullablemessage] +/// * [nullableMessage] @BuiltValue() abstract class HealthCheckResult implements Built { @BuiltValueField(wireName: r'NullableMessage') - String? get nullablemessage; + String? get nullableMessage; HealthCheckResult._(); @@ -40,10 +40,10 @@ class _$HealthCheckResultSerializer implements PrimitiveSerializer { class MapTestMapOfEnumStringEnum extends EnumClass { @BuiltValueEnumConst(wireName: r'UPPER') - static const MapTestMapOfEnumStringEnum upper = _$mapTestMapOfEnumStringEnum_upper; + static const MapTestMapOfEnumStringEnum UPPER = _$mapTestMapOfEnumStringEnum_UPPER; @BuiltValueEnumConst(wireName: r'lower') static const MapTestMapOfEnumStringEnum lower = _$mapTestMapOfEnumStringEnum_lower; @BuiltValueEnumConst(wireName: r'unknown_default_open_api', fallback: true) diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/mixed_properties_and_additional_properties_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/mixed_properties_and_additional_properties_class.dart index 8c2c2a93b4d..76b5933ae5a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/mixed_properties_and_additional_properties_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/mixed_properties_and_additional_properties_class.dart @@ -14,7 +14,7 @@ part 'mixed_properties_and_additional_properties_class.g.dart'; /// /// Properties: /// * [uuid] -/// * [datetime] +/// * [dateTime] /// * [map] @BuiltValue() abstract class MixedPropertiesAndAdditionalPropertiesClass implements Built { @@ -22,7 +22,7 @@ abstract class MixedPropertiesAndAdditionalPropertiesClass implements Built? get map; @@ -57,10 +57,10 @@ class _$MixedPropertiesAndAdditionalPropertiesClassSerializer implements Primiti specifiedType: const FullType(String), ); } - if (object.datetime != null) { + if (object.dateTime != null) { yield r'dateTime'; yield serializers.serialize( - object.datetime, + object.dateTime, specifiedType: const FullType(DateTime), ); } @@ -106,7 +106,7 @@ class _$MixedPropertiesAndAdditionalPropertiesClassSerializer implements Primiti value, specifiedType: const FullType(DateTime), ) as DateTime; - result.datetime = valueDes; + result.dateTime = valueDes; break; case r'map': final valueDes = serializers.deserialize( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/model_enum_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/model_enum_class.dart index 82bad309aa2..ac609bfd15a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/model_enum_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/model_enum_class.dart @@ -16,7 +16,7 @@ class ModelEnumClass extends EnumClass { @BuiltValueEnumConst(wireName: r'-efg') static const ModelEnumClass efg = _$efg; @BuiltValueEnumConst(wireName: r'(xyz)') - static const ModelEnumClass leftParenthesisXyzrightParenthesis = _$leftParenthesisXyzrightParenthesis; + static const ModelEnumClass leftParenthesisXyzRightParenthesis = _$leftParenthesisXyzRightParenthesis; @BuiltValueEnumConst(wireName: r'unknown_default_open_api', fallback: true) static const ModelEnumClass unknownDefaultOpenApi = _$unknownDefaultOpenApi; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/model_file.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/model_file.dart index 1e77f54615e..2702c21d36f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/model_file.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/model_file.dart @@ -11,12 +11,12 @@ part 'model_file.g.dart'; /// Must be named `File` for test. /// /// Properties: -/// * [sourceuri] - Test capitalization +/// * [sourceURI] - Test capitalization @BuiltValue() abstract class ModelFile implements Built { /// Test capitalization @BuiltValueField(wireName: r'sourceURI') - String? get sourceuri; + String? get sourceURI; ModelFile._(); @@ -41,10 +41,10 @@ class _$ModelFileSerializer implements PrimitiveSerializer { ModelFile object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.sourceuri != null) { + if (object.sourceURI != null) { yield r'sourceURI'; yield serializers.serialize( - object.sourceuri, + object.sourceURI, specifiedType: const FullType(String), ); } @@ -76,7 +76,7 @@ class _$ModelFileSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(String), ) as String; - result.sourceuri = valueDes; + result.sourceURI = valueDes; break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/number_only.dart index 7913cd56368..482a95f3e52 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/number_only.dart @@ -11,11 +11,11 @@ part 'number_only.g.dart'; /// NumberOnly /// /// Properties: -/// * [justnumber] +/// * [justNumber] @BuiltValue() abstract class NumberOnly implements Built { @BuiltValueField(wireName: r'JustNumber') - num? get justnumber; + num? get justNumber; NumberOnly._(); @@ -40,10 +40,10 @@ class _$NumberOnlySerializer implements PrimitiveSerializer { NumberOnly object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.justnumber != null) { + if (object.justNumber != null) { yield r'JustNumber'; yield serializers.serialize( - object.justnumber, + object.justNumber, specifiedType: const FullType(num), ); } @@ -75,7 +75,7 @@ class _$NumberOnlySerializer implements PrimitiveSerializer { value, specifiedType: const FullType(num), ) as num; - result.justnumber = valueDes; + result.justNumber = valueDes; break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/object_with_deprecated_fields.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/object_with_deprecated_fields.dart index c48d4071524..4e0ae04ae50 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/object_with_deprecated_fields.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/object_with_deprecated_fields.dart @@ -15,7 +15,7 @@ part 'object_with_deprecated_fields.g.dart'; /// Properties: /// * [uuid] /// * [id] -/// * [deprecatedref] +/// * [deprecatedRef] /// * [bars] @BuiltValue() abstract class ObjectWithDeprecatedFields implements Built { @@ -26,9 +26,9 @@ abstract class ObjectWithDeprecatedFields implements Built { int? get id; @BuiltValueField(wireName: r'petId') - int? get petid; + int? get petId; @BuiltValueField(wireName: r'quantity') int? get quantity; @BuiltValueField(wireName: r'shipDate') - DateTime? get shipdate; + DateTime? get shipDate; /// Order Status @BuiltValueField(wireName: r'status') @@ -71,10 +71,10 @@ class _$OrderSerializer implements PrimitiveSerializer { specifiedType: const FullType(int), ); } - if (object.petid != null) { + if (object.petId != null) { yield r'petId'; yield serializers.serialize( - object.petid, + object.petId, specifiedType: const FullType(int), ); } @@ -85,10 +85,10 @@ class _$OrderSerializer implements PrimitiveSerializer { specifiedType: const FullType(int), ); } - if (object.shipdate != null) { + if (object.shipDate != null) { yield r'shipDate'; yield serializers.serialize( - object.shipdate, + object.shipDate, specifiedType: const FullType(DateTime), ); } @@ -141,7 +141,7 @@ class _$OrderSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(int), ) as int; - result.petid = valueDes; + result.petId = valueDes; break; case r'quantity': final valueDes = serializers.deserialize( @@ -155,7 +155,7 @@ class _$OrderSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(DateTime), ) as DateTime; - result.shipdate = valueDes; + result.shipDate = valueDes; break; case r'status': final valueDes = serializers.deserialize( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/parent_with_nullable.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/parent_with_nullable.dart index 4c15298b89b..bf1252135cd 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/parent_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/parent_with_nullable.dart @@ -14,7 +14,7 @@ part 'parent_with_nullable.g.dart'; /// /// Properties: /// * [type] -/// * [nullableproperty] +/// * [nullableProperty] @BuiltValue(instantiable: false) abstract class ParentWithNullable { @BuiltValueField(wireName: r'type') @@ -22,7 +22,7 @@ abstract class ParentWithNullable { // enum typeEnum { ChildWithNullable, }; @BuiltValueField(wireName: r'nullableProperty') - String? get nullableproperty; + String? get nullableProperty; static const String discriminatorFieldName = r'type'; @@ -70,10 +70,10 @@ class _$ParentWithNullableSerializer implements PrimitiveSerializer { String get name; @BuiltValueField(wireName: r'photoUrls') - BuiltSet get photourls; + BuiltSet get photoUrls; @BuiltValueField(wireName: r'tags') BuiltList? get tags; @@ -86,7 +86,7 @@ class _$PetSerializer implements PrimitiveSerializer { ); yield r'photoUrls'; yield serializers.serialize( - object.photourls, + object.photoUrls, specifiedType: const FullType(BuiltSet, [FullType(String)]), ); if (object.tags != null) { @@ -152,7 +152,7 @@ class _$PetSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(BuiltSet, [FullType(String)]), ) as BuiltSet; - result.photourls.replace(valueDes); + result.photoUrls.replace(valueDes); break; case r'tags': final valueDes = serializers.deserialize( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/special_model_name.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/special_model_name.dart index 23d062c575e..fa860056b45 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/special_model_name.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/special_model_name.dart @@ -11,11 +11,11 @@ part 'special_model_name.g.dart'; /// SpecialModelName /// /// Properties: -/// * [dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket] +/// * [dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket] @BuiltValue() abstract class SpecialModelName implements Built { @BuiltValueField(wireName: r'$special[property.name]') - int? get dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + int? get dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; SpecialModelName._(); @@ -40,10 +40,10 @@ class _$SpecialModelNameSerializer implements PrimitiveSerializer { @BuiltValueField(wireName: r'someProperty') - String? get someproperty; + String? get someProperty; TestInlineFreeformAdditionalPropertiesRequest._(); @@ -42,10 +42,10 @@ class _$TestInlineFreeformAdditionalPropertiesRequestSerializer implements Primi TestInlineFreeformAdditionalPropertiesRequest object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.someproperty != null) { + if (object.someProperty != null) { yield r'someProperty'; yield serializers.serialize( - object.someproperty, + object.someProperty, specifiedType: const FullType(String), ); } @@ -77,7 +77,7 @@ class _$TestInlineFreeformAdditionalPropertiesRequestSerializer implements Primi value, specifiedType: const FullType(String), ) as String; - result.someproperty = valueDes; + result.someProperty = valueDes; break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/user.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/user.dart index 70b9cfe546a..f7577d7e1ee 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/user.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/user.dart @@ -13,12 +13,12 @@ part 'user.g.dart'; /// Properties: /// * [id] /// * [username] -/// * [firstname] -/// * [lastname] +/// * [firstName] +/// * [lastName] /// * [email] /// * [password] /// * [phone] -/// * [userstatus] - User Status +/// * [userStatus] - User Status @BuiltValue() abstract class User implements Built { @BuiltValueField(wireName: r'id') @@ -28,10 +28,10 @@ abstract class User implements Built { String? get username; @BuiltValueField(wireName: r'firstName') - String? get firstname; + String? get firstName; @BuiltValueField(wireName: r'lastName') - String? get lastname; + String? get lastName; @BuiltValueField(wireName: r'email') String? get email; @@ -44,7 +44,7 @@ abstract class User implements Built { /// User Status @BuiltValueField(wireName: r'userStatus') - int? get userstatus; + int? get userStatus; User._(); @@ -83,17 +83,17 @@ class _$UserSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.firstname != null) { + if (object.firstName != null) { yield r'firstName'; yield serializers.serialize( - object.firstname, + object.firstName, specifiedType: const FullType(String), ); } - if (object.lastname != null) { + if (object.lastName != null) { yield r'lastName'; yield serializers.serialize( - object.lastname, + object.lastName, specifiedType: const FullType(String), ); } @@ -118,10 +118,10 @@ class _$UserSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } - if (object.userstatus != null) { + if (object.userStatus != null) { yield r'userStatus'; yield serializers.serialize( - object.userstatus, + object.userStatus, specifiedType: const FullType(int), ); } @@ -167,14 +167,14 @@ class _$UserSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(String), ) as String; - result.firstname = valueDes; + result.firstName = valueDes; break; case r'lastName': final valueDes = serializers.deserialize( value, specifiedType: const FullType(String), ) as String; - result.lastname = valueDes; + result.lastName = valueDes; break; case r'email': final valueDes = serializers.deserialize( @@ -202,7 +202,7 @@ class _$UserSerializer implements PrimitiveSerializer { value, specifiedType: const FullType(int), ) as int; - result.userstatus = valueDes; + result.userStatus = valueDes; break; default: unhandled.add(key); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/.openapi-generator/FILES b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/.openapi-generator/FILES index fe0cc70c073..1a5e5be7594 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore README.md analysis_options.yaml build.yaml @@ -126,60 +125,3 @@ lib/src/model/tag.dart lib/src/model/test_inline_freeform_additional_properties_request.dart lib/src/model/user.dart pubspec.yaml -test/additional_properties_class_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/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_test.dart -test/category_test.dart -test/child_with_nullable_test.dart -test/class_model_test.dart -test/default_api_test.dart -test/deprecated_object_test.dart -test/dog_test.dart -test/enum_arrays_test.dart -test/enum_test_test.dart -test/fake_api_test.dart -test/fake_big_decimal_map200_response_test.dart -test/fake_classname_tags123_api_test.dart -test/file_schema_test_class_test.dart -test/foo_get_default_response_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/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/parent_with_nullable_test.dart -test/pet_api_test.dart -test/pet_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/test_inline_freeform_additional_properties_request_test.dart -test/user_api_test.dart -test/user_test.dart diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/README.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/README.md index d8a08b3c2a7..5a5211d271a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/README.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/README.md @@ -49,10 +49,10 @@ import 'package:openapi/openapi.dart'; final api = Openapi().getAnotherFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = await api.call123testSpecialTags(modelclient); + final response = await api.call123testSpecialTags(modelClient); print(response); } catch on DioException (e) { print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n"); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/AllOfWithSingleRef.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/AllOfWithSingleRef.md index 151142162f6..4c6f3ab2fe1 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/AllOfWithSingleRef.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/AllOfWithSingleRef.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **username** | **String** | | [optional] -**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional] +**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/Animal.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Animal.md index 570de2e45be..415b56e9bc2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Animal.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Animal.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] [[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/petstore_client_lib_use_lower_camel_case/doc/AnotherFakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/AnotherFakeApi.md index 1ed2cb04d8f..36a94e6bb70 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/AnotherFakeApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> ModelClient call123testSpecialTags(modelclient) +> ModelClient call123testSpecialTags(modelClient) To test special tags @@ -24,10 +24,10 @@ To test special tags and operation ID starting with number import 'package:openapi/api.dart'; final api = Openapi().getAnotherFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.call123testSpecialTags(modelclient); + final response = api.call123testSpecialTags(modelClient); print(response); } catch on DioException (e) { print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n'); @@ -38,7 +38,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ArrayOfArrayOfNumberOnly.md index a1c3e86e055..e5b9d669a43 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ArrayOfArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayarraynumber** | [**List<List<num>>**](List.md) | | [optional] +**arrayArrayNumber** | [**List<List<num>>**](List.md) | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ArrayOfNumberOnly.md index 184bc6962f8..fe8e071eb45 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arraynumber** | **List<num>** | | [optional] +**arrayNumber** | **List<num>** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/Capitalization.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Capitalization.md index e673e7baef4..4a07b4eb820 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Capitalization.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Capitalization.md @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**smallcamel** | **String** | | [optional] -**capitalcamel** | **String** | | [optional] +**smallCamel** | **String** | | [optional] +**capitalCamel** | **String** | | [optional] **smallSnake** | **String** | | [optional] **capitalSnake** | **String** | | [optional] -**scaEthFlowPoints** | **String** | | [optional] -**attName** | **String** | Name of the pet | [optional] +**sCAETHFlowPoints** | **String** | | [optional] +**ATT_NAME** | **String** | Name of the pet | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/Cat.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Cat.md index 9c557ac9082..6552eea4b43 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Cat.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Cat.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **declawed** | **bool** | | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ChildWithNullable.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ChildWithNullable.md index 54b310b0f58..770494fcf4c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ChildWithNullable.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ChildWithNullable.md @@ -9,8 +9,8 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] -**otherproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] +**otherProperty** | **String** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/Dog.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Dog.md index b2ba3dfcef5..d36439b767b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Dog.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Dog.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **breed** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/EnumTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/EnumTest.md index f1b0758b868..7c24fe2347b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/EnumTest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/EnumTest.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **enumStringRequired** | **String** | | **enumInteger** | **int** | | [optional] **enumNumber** | **double** | | [optional] -**outerenum** | [**OuterEnum**](OuterEnum.md) | | [optional] -**outerenuminteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] -**outerenumdefaultvalue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] -**outerenumintegerdefaultvalue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] +**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] +**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] +**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] +**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/FakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeApi.md index 14e13ea83e5..1b5e1ca297c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeApi.md @@ -197,7 +197,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outercomposite) +> OuterComposite fakeOuterCompositeSerialize(outerComposite) @@ -208,10 +208,10 @@ Test serialization of object with outer number type import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final OuterComposite outercomposite = ; // OuterComposite | Input composite as post body +final OuterComposite outerComposite = ; // OuterComposite | Input composite as post body try { - final response = api.fakeOuterCompositeSerialize(outercomposite); + final response = api.fakeOuterCompositeSerialize(outerComposite); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->fakeOuterCompositeSerialize: $e\n'); @@ -222,7 +222,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outercomposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -326,7 +326,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakePropertyEnumIntegerSerialize** -> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty) +> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty) @@ -337,10 +337,10 @@ Test serialization of enum (int) properties with examples import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final OuterObjectWithEnumProperty outerobjectwithenumproperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body +final OuterObjectWithEnumProperty outerObjectWithEnumProperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body try { - final response = api.fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty); + final response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->fakePropertyEnumIntegerSerialize: $e\n'); @@ -351,7 +351,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerobjectwithenumproperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | + **outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | ### Return type @@ -453,7 +453,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileschematestclass) +> testBodyWithFileSchema(fileSchemaTestClass) @@ -464,10 +464,10 @@ For this test, the body for this request must reference a schema named `File`. import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final FileSchemaTestClass fileschematestclass = ; // FileSchemaTestClass | +final FileSchemaTestClass fileSchemaTestClass = ; // FileSchemaTestClass | try { - api.testBodyWithFileSchema(fileschematestclass); + api.testBodyWithFileSchema(fileSchemaTestClass); } catch on DioException (e) { print('Exception when calling FakeApi->testBodyWithFileSchema: $e\n'); } @@ -477,7 +477,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileschematestclass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -537,7 +537,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testClientModel** -> ModelClient testClientModel(modelclient) +> ModelClient testClientModel(modelClient) To test \"client\" model @@ -548,10 +548,10 @@ To test \"client\" model import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.testClientModel(modelclient); + final response = api.testClientModel(modelClient); print(response); } catch on DioException (e) { print('Exception when calling FakeApi->testClientModel: $e\n'); @@ -562,7 +562,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -580,7 +580,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testEndpointParameters** -> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback) +> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -605,12 +605,12 @@ final double float = 3.4; // double | None final String string = string_example; // String | None final MultipartFile binary = BINARY_DATA_HERE; // MultipartFile | None final DateTime date = 2013-10-20; // DateTime | None -final DateTime datetime = 2013-10-20T19:20:30+01:00; // DateTime | None +final DateTime dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None final String password = password_example; // String | None final String callback = callback_example; // String | None try { - api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback); + api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback); } catch on DioException (e) { print('Exception when calling FakeApi->testEndpointParameters: $e\n'); } @@ -631,7 +631,7 @@ Name | Type | Description | Notes **string** | **String**| None | [optional] **binary** | **MultipartFile**| None | [optional] **date** | **DateTime**| None | [optional] - **datetime** | **DateTime**| None | [optional] + **dateTime** | **DateTime**| None | [optional] **password** | **String**| None | [optional] **callback** | **String**| None | [optional] @@ -803,7 +803,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testInlineFreeformAdditionalProperties** -> testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest) +> testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest) test inline free-form additionalProperties @@ -814,10 +814,10 @@ test inline free-form additionalProperties import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body +final TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body try { - api.testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest); + api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); } catch on DioException (e) { print('Exception when calling FakeApi->testInlineFreeformAdditionalProperties: $e\n'); } @@ -827,7 +827,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **testinlinefreeformadditionalpropertiesrequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | + **testInlineFreeformAdditionalPropertiesRequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | ### Return type @@ -889,7 +889,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testNullable** -> testNullable(childwithnullable) +> testNullable(childWithNullable) test nullable parent property @@ -900,10 +900,10 @@ test nullable parent property import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final ChildWithNullable childwithnullable = ; // ChildWithNullable | request body +final ChildWithNullable childWithNullable = ; // ChildWithNullable | request body try { - api.testNullable(childwithnullable); + api.testNullable(childWithNullable); } catch on DioException (e) { print('Exception when calling FakeApi->testNullable: $e\n'); } @@ -913,7 +913,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **childwithnullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | + **childWithNullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | ### Return type @@ -931,7 +931,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testQueryParameterCollectionFormat** -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language) +> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language) @@ -947,11 +947,11 @@ final List ioutil = ; // List | final List http = ; // List | final List url = ; // List | final List context = ; // List | -final String allowempty = allowempty_example; // String | +final String allowEmpty = allowEmpty_example; // String | final Map language = ; // Map | try { - api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language); + api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language); } catch on DioException (e) { print('Exception when calling FakeApi->testQueryParameterCollectionFormat: $e\n'); } @@ -966,7 +966,7 @@ Name | Type | Description | Notes **http** | [**List<String>**](String.md)| | **url** | [**List<String>**](String.md)| | **context** | [**List<String>**](String.md)| | - **allowempty** | **String**| | + **allowEmpty** | **String**| | **language** | [**Map<String, String>**](String.md)| | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeBigDecimalMap200Response.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeBigDecimalMap200Response.md index d01fd497347..281dfc44fd8 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeBigDecimalMap200Response.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeBigDecimalMap200Response.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someid** | **num** | | [optional] -**somemap** | **Map<String, num>** | | [optional] +**someId** | **num** | | [optional] +**someMap** | **Map<String, num>** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeClassnameTags123Api.md index 88a70afff0f..645aebf399f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FakeClassnameTags123Api.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **testClassname** -> ModelClient testClassname(modelclient) +> ModelClient testClassname(modelClient) To test class name in snake case @@ -28,10 +28,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key_query').apiKeyPrefix = 'Bearer'; final api = Openapi().getFakeClassnameTags123Api(); -final ModelClient modelclient = ; // ModelClient | client model +final ModelClient modelClient = ; // ModelClient | client model try { - final response = api.testClassname(modelclient); + final response = api.testClassname(modelClient); print(response); } catch on DioException (e) { print('Exception when calling FakeClassnameTags123Api->testClassname: $e\n'); @@ -42,7 +42,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FormatTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FormatTest.md index a25a61c5334..83b60545eb6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FormatTest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/FormatTest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **byte** | **String** | | **binary** | [**MultipartFile**](MultipartFile.md) | | [optional] **date** | [**DateTime**](DateTime.md) | | -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **uuid** | **String** | | [optional] **password** | **String** | | **patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/HealthCheckResult.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/HealthCheckResult.md index c912fb2e08f..4d6aeb75d96 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/HealthCheckResult.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/HealthCheckResult.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nullablemessage** | **String** | | [optional] +**nullableMessage** | **String** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/MixedPropertiesAndAdditionalPropertiesClass.md index e9a76c25800..66d0d39c42b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/MixedPropertiesAndAdditionalPropertiesClass.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **map** | [**Map<String, Animal>**](Animal.md) | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/ModelFile.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ModelFile.md index d54b1bbbea0..4be260e93f6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ModelFile.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ModelFile.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sourceuri** | **String** | Test capitalization | [optional] +**sourceURI** | **String** | Test capitalization | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/NumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/NumberOnly.md index f5fac6f8a17..d8096a3db37 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/NumberOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/NumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**justnumber** | **num** | | [optional] +**justNumber** | **num** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/ObjectWithDeprecatedFields.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ObjectWithDeprecatedFields.md index 9ba7fdf6634..dda2836d8d5 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ObjectWithDeprecatedFields.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ObjectWithDeprecatedFields.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] **id** | **num** | | [optional] -**deprecatedref** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **bars** | **List<String>** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/Order.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Order.md index 08914a83f30..bde5ffe51a2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Order.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Order.md @@ -9,9 +9,9 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**petid** | **int** | | [optional] +**petId** | **int** | | [optional] **quantity** | **int** | | [optional] -**shipdate** | [**DateTime**](DateTime.md) | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] **status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ParentWithNullable.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ParentWithNullable.md index 43546498705..17aa5ca0294 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ParentWithNullable.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/ParentWithNullable.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/Pet.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Pet.md index c6183f8d49d..3cd230bfb21 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Pet.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/Pet.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **id** | **int** | | [optional] **category** | [**Category**](Category.md) | | [optional] **name** | **String** | | -**photourls** | **Set<String>** | | +**photoUrls** | **Set<String>** | | **tags** | [**List<Tag>**](Tag.md) | | [optional] **status** | **String** | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/PetApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/PetApi.md index 3dc820b749b..5fc7fbd2657 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/PetApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/PetApi.md @@ -65,7 +65,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deletePet** -> deletePet(petid, apiKey) +> deletePet(petId, apiKey) Deletes a pet @@ -78,11 +78,11 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | Pet id to delete +final int petId = 789; // int | Pet id to delete final String apiKey = apiKey_example; // String | try { - api.deletePet(petid, apiKey); + api.deletePet(petId, apiKey); } catch on DioException (e) { print('Exception when calling PetApi->deletePet: $e\n'); } @@ -92,7 +92,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| Pet id to delete | + **petId** | **int**| Pet id to delete | **apiKey** | **String**| | [optional] ### Return type @@ -201,7 +201,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPetById** -> Pet getPetById(petid) +> Pet getPetById(petId) Find pet by ID @@ -216,10 +216,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to return +final int petId = 789; // int | ID of pet to return try { - final response = api.getPetById(petid); + final response = api.getPetById(petId); print(response); } catch on DioException (e) { print('Exception when calling PetApi->getPetById: $e\n'); @@ -230,7 +230,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to return | + **petId** | **int**| ID of pet to return | ### Return type @@ -292,7 +292,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updatePetWithForm** -> updatePetWithForm(petid, name, status) +> updatePetWithForm(petId, name, status) Updates a pet in the store with form data @@ -305,12 +305,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet that needs to be updated +final int petId = 789; // int | ID of pet that needs to be updated final String name = name_example; // String | Updated name of the pet final String status = status_example; // String | Updated status of the pet try { - api.updatePetWithForm(petid, name, status); + api.updatePetWithForm(petId, name, status); } catch on DioException (e) { print('Exception when calling PetApi->updatePetWithForm: $e\n'); } @@ -320,7 +320,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet that needs to be updated | + **petId** | **int**| ID of pet that needs to be updated | **name** | **String**| Updated name of the pet | [optional] **status** | **String**| Updated status of the pet | [optional] @@ -340,7 +340,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFile** -> ApiResponse uploadFile(petid, additionalmetadata, file) +> ApiResponse uploadFile(petId, additionalMetadata, file) uploads an image @@ -353,12 +353,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to update -final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final int petId = 789; // int | ID of pet to update +final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | file to upload try { - final response = api.uploadFile(petid, additionalmetadata, file); + final response = api.uploadFile(petId, additionalMetadata, file); print(response); } catch on DioException (e) { print('Exception when calling PetApi->uploadFile: $e\n'); @@ -369,8 +369,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] **file** | **MultipartFile**| file to upload | [optional] ### Return type @@ -389,7 +389,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFileWithRequiredFile** -> ApiResponse uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata) +> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) uploads an image (required) @@ -402,12 +402,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api = Openapi().getPetApi(); -final int petid = 789; // int | ID of pet to update -final MultipartFile requiredfile = BINARY_DATA_HERE; // MultipartFile | file to upload -final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final int petId = 789; // int | ID of pet to update +final MultipartFile requiredFile = BINARY_DATA_HERE; // MultipartFile | file to upload +final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server try { - final response = api.uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata); + final response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); print(response); } catch on DioException (e) { print('Exception when calling PetApi->uploadFileWithRequiredFile: $e\n'); @@ -418,9 +418,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **requiredfile** | **MultipartFile**| file to upload | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **requiredFile** | **MultipartFile**| file to upload | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/SpecialModelName.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/SpecialModelName.md index 04697c8e622..5fcfa98e0b3 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/SpecialModelName.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/SpecialModelName.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket** | **int** | | [optional] +**dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket** | **int** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/TestInlineFreeformAdditionalPropertiesRequest.md index 894a3e60ee3..e2b2f1fd446 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/TestInlineFreeformAdditionalPropertiesRequest.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someproperty** | **String** | | [optional] +**someProperty** | **String** | | [optional] [[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/petstore_client_lib_use_lower_camel_case/doc/User.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/User.md index 37aa8c50230..fa87e64d859 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/User.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/doc/User.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] **username** | **String** | | [optional] -**firstname** | **String** | | [optional] -**lastname** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] **email** | **String** | | [optional] **password** | **String** | | [optional] **phone** | **String** | | [optional] -**userstatus** | **int** | User Status | [optional] +**userStatus** | **int** | User Status | [optional] [[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/petstore_client_lib_use_lower_camel_case/lib/src/api/another_fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/another_fake_api.dart index 4ffb898ab95..d98f3c23f4f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/another_fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/another_fake_api.dart @@ -21,7 +21,7 @@ class AnotherFakeApi { /// To test special tags and operation ID starting with number /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -32,7 +32,7 @@ class AnotherFakeApi { /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> call123testSpecialTags({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -57,7 +57,7 @@ class AnotherFakeApi { dynamic _bodyData; try { -_bodyData=jsonEncode(modelclient); +_bodyData=jsonEncode(modelClient); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/fake_api.dart index e4d673a4a32..06486358eda 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/fake_api.dart @@ -340,7 +340,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'bool' /// Test serialization of object with outer number type /// /// Parameters: - /// * [outercomposite] - Input composite as post body + /// * [outerComposite] - Input composite as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -351,7 +351,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'bool' /// Returns a [Future] containing a [Response] with a [OuterComposite] as data /// Throws [DioException] if API call or serialization fails Future> fakeOuterCompositeSerialize({ - OuterComposite? outercomposite, + OuterComposite? outerComposite, CancelToken? cancelToken, Map? headers, Map? extra, @@ -376,7 +376,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'bool' dynamic _bodyData; try { -_bodyData=jsonEncode(outercomposite); +_bodyData=jsonEncode(outerComposite); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -607,7 +607,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S /// Test serialization of enum (int) properties with examples /// /// Parameters: - /// * [outerobjectwithenumproperty] - Input enum (int) as post body + /// * [outerObjectWithEnumProperty] - Input enum (int) as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -618,7 +618,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S /// Returns a [Future] containing a [Response] with a [OuterObjectWithEnumProperty] as data /// Throws [DioException] if API call or serialization fails Future> fakePropertyEnumIntegerSerialize({ - required OuterObjectWithEnumProperty outerobjectwithenumproperty, + required OuterObjectWithEnumProperty outerObjectWithEnumProperty, CancelToken? cancelToken, Map? headers, Map? extra, @@ -643,7 +643,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'S dynamic _bodyData; try { -_bodyData=jsonEncode(outerobjectwithenumproperty); +_bodyData=jsonEncode(outerObjectWithEnumProperty); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -826,7 +826,7 @@ _bodyData=jsonEncode(body); /// For this test, the body for this request must reference a schema named `File`. /// /// Parameters: - /// * [fileschematestclass] + /// * [fileSchemaTestClass] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -837,7 +837,7 @@ _bodyData=jsonEncode(body); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testBodyWithFileSchema({ - required FileSchemaTestClass fileschematestclass, + required FileSchemaTestClass fileSchemaTestClass, CancelToken? cancelToken, Map? headers, Map? extra, @@ -862,7 +862,7 @@ _bodyData=jsonEncode(body); dynamic _bodyData; try { -_bodyData=jsonEncode(fileschematestclass); +_bodyData=jsonEncode(fileSchemaTestClass); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -964,7 +964,7 @@ _bodyData=jsonEncode(user); /// To test \"client\" model /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -975,7 +975,7 @@ _bodyData=jsonEncode(user); /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> testClientModel({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1000,7 +1000,7 @@ _bodyData=jsonEncode(user); dynamic _bodyData; try { -_bodyData=jsonEncode(modelclient); +_bodyData=jsonEncode(modelClient); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -1064,7 +1064,7 @@ _responseData = rawData == null ? null : deserialize(r /// * [string] - None /// * [binary] - None /// * [date] - None - /// * [datetime] - None + /// * [dateTime] - None /// * [password] - None /// * [callback] - None /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -1088,7 +1088,7 @@ _responseData = rawData == null ? null : deserialize(r String? string, MultipartFile? binary, DateTime? date, - DateTime? datetime, + DateTime? dateTime, String? password, String? callback, CancelToken? cancelToken, @@ -1381,7 +1381,7 @@ _bodyData=jsonEncode(requestBody); /// /// /// Parameters: - /// * [testinlinefreeformadditionalpropertiesrequest] - request body + /// * [testInlineFreeformAdditionalPropertiesRequest] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1392,7 +1392,7 @@ _bodyData=jsonEncode(requestBody); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testInlineFreeformAdditionalProperties({ - required TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest, + required TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1417,7 +1417,7 @@ _bodyData=jsonEncode(requestBody); dynamic _bodyData; try { -_bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest); +_bodyData=jsonEncode(testInlineFreeformAdditionalPropertiesRequest); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -1513,7 +1513,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest); /// /// /// Parameters: - /// * [childwithnullable] - request body + /// * [childWithNullable] - request body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1524,7 +1524,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> testNullable({ - required ChildWithNullable childwithnullable, + required ChildWithNullable childWithNullable, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1549,7 +1549,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest); dynamic _bodyData; try { -_bodyData=jsonEncode(childwithnullable); +_bodyData=jsonEncode(childWithNullable); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( @@ -1583,7 +1583,7 @@ _bodyData=jsonEncode(childwithnullable); /// * [http] /// * [url] /// * [context] - /// * [allowempty] + /// * [allowEmpty] /// * [language] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -1600,7 +1600,7 @@ _bodyData=jsonEncode(childwithnullable); required List http, required List url, required List context, - required String allowempty, + required String allowEmpty, Map? language, CancelToken? cancelToken, Map? headers, @@ -1629,7 +1629,7 @@ _bodyData=jsonEncode(childwithnullable); r'url': url, r'context': context, if (language != null) r'language': language, - r'allowEmpty': allowempty, + r'allowEmpty': allowEmpty, }; final _response = await _dio.request( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/fake_classname_tags123_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/fake_classname_tags123_api.dart index 7f1524c2f18..56ec33f1cac 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/fake_classname_tags123_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/fake_classname_tags123_api.dart @@ -21,7 +21,7 @@ class FakeClassnameTags123Api { /// To test class name in snake case /// /// Parameters: - /// * [modelclient] - client model + /// * [modelClient] - client model /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -32,7 +32,7 @@ class FakeClassnameTags123Api { /// Returns a [Future] containing a [Response] with a [ModelClient] as data /// Throws [DioException] if API call or serialization fails Future> testClassname({ - required ModelClient modelclient, + required ModelClient modelClient, CancelToken? cancelToken, Map? headers, Map? extra, @@ -64,7 +64,7 @@ class FakeClassnameTags123Api { dynamic _bodyData; try { -_bodyData=jsonEncode(modelclient); +_bodyData=jsonEncode(modelClient); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/pet_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/pet_api.dart index 54e619b596f..ec20128ee1e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/pet_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/api/pet_api.dart @@ -92,7 +92,7 @@ _bodyData=jsonEncode(pet); /// /// /// Parameters: - /// * [petid] - Pet id to delete + /// * [petId] - Pet id to delete /// * [apiKey] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -104,7 +104,7 @@ _bodyData=jsonEncode(pet); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> deletePet({ - required int petid, + required int petId, String? apiKey, CancelToken? cancelToken, Map? headers, @@ -113,7 +113,7 @@ _bodyData=jsonEncode(pet); ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'DELETE', headers: { @@ -310,7 +310,7 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'Se /// Returns a single pet /// /// Parameters: - /// * [petid] - ID of pet to return + /// * [petId] - ID of pet to return /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -321,7 +321,7 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'Se /// Returns a [Future] containing a [Response] with a [Pet] as data /// Throws [DioException] if API call or serialization fails Future> getPetById({ - required int petid, + required int petId, CancelToken? cancelToken, Map? headers, Map? extra, @@ -329,7 +329,7 @@ _responseData = rawData == null ? null : deserialize, Pet>(rawData, 'Se ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'GET', headers: { @@ -458,7 +458,7 @@ _bodyData=jsonEncode(pet); /// /// /// Parameters: - /// * [petid] - ID of pet that needs to be updated + /// * [petId] - ID of pet that needs to be updated /// * [name] - Updated name of the pet /// * [status] - Updated status of the pet /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -471,7 +471,7 @@ _bodyData=jsonEncode(pet); /// Returns a [Future] /// Throws [DioException] if API call or serialization fails Future> updatePetWithForm({ - required int petid, + required int petId, String? name, String? status, CancelToken? cancelToken, @@ -481,7 +481,7 @@ _bodyData=jsonEncode(pet); ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'POST', headers: { @@ -532,8 +532,8 @@ _bodyData=jsonEncode(pet); /// /// /// Parameters: - /// * [petid] - ID of pet to update - /// * [additionalmetadata] - Additional data to pass to server + /// * [petId] - ID of pet to update + /// * [additionalMetadata] - Additional data to pass to server /// * [file] - file to upload /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -545,8 +545,8 @@ _bodyData=jsonEncode(pet); /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails Future> uploadFile({ - required int petid, - String? additionalmetadata, + required int petId, + String? additionalMetadata, MultipartFile? file, CancelToken? cancelToken, Map? headers, @@ -555,7 +555,7 @@ _bodyData=jsonEncode(pet); ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'POST', headers: { @@ -630,9 +630,9 @@ _responseData = rawData == null ? null : deserialize(r /// /// /// Parameters: - /// * [petid] - ID of pet to update - /// * [requiredfile] - file to upload - /// * [additionalmetadata] - Additional data to pass to server + /// * [petId] - ID of pet to update + /// * [requiredFile] - file to upload + /// * [additionalMetadata] - Additional data to pass to server /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -643,9 +643,9 @@ _responseData = rawData == null ? null : deserialize(r /// Returns a [Future] containing a [Response] with a [ApiResponse] as data /// Throws [DioException] if API call or serialization fails Future> uploadFileWithRequiredFile({ - required int petid, - required MultipartFile requiredfile, - String? additionalmetadata, + required int petId, + required MultipartFile requiredFile, + String? additionalMetadata, CancelToken? cancelToken, Map? headers, Map? extra, @@ -653,7 +653,7 @@ _responseData = rawData == null ? null : deserialize(r ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', petid.toString()); + final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', petId.toString()); final _options = Options( method: r'POST', headers: { diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/all_of_with_single_ref.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/all_of_with_single_ref.dart index 126a3cbaf67..c196447ea5e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/all_of_with_single_ref.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/all_of_with_single_ref.dart @@ -21,7 +21,7 @@ class AllOfWithSingleRef { this.username, - this.singlereftype, + this.singleRefType, }); @JsonKey( @@ -45,7 +45,7 @@ class AllOfWithSingleRef { ) - final SingleRefType? singlereftype; + final SingleRefType? singleRefType; @@ -54,12 +54,12 @@ class AllOfWithSingleRef { @override bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef && other.username == username && - other.singlereftype == singlereftype; + other.singleRefType == singleRefType; @override int get hashCode => username.hashCode + - singlereftype.hashCode; + singleRefType.hashCode; factory AllOfWithSingleRef.fromJson(Map json) => _$AllOfWithSingleRefFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/animal.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/animal.dart index 11efc809e24..73232635722 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/animal.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/animal.dart @@ -18,7 +18,7 @@ class Animal { /// Returns a new [Animal] instance. Animal({ - required this.classname, + required this.className, this.color = 'red', }); @@ -31,7 +31,7 @@ class Animal { ) - final String classname; + final String className; @@ -51,12 +51,12 @@ class Animal { @override bool operator ==(Object other) => identical(this, other) || other is Animal && - other.classname == classname && + other.className == className && other.color == color; @override int get hashCode => - classname.hashCode + + className.hashCode + color.hashCode; factory Animal.fromJson(Map json) => _$AnimalFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/array_of_array_of_number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/array_of_array_of_number_only.dart index 2ba4f0c1928..da8de016929 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/array_of_array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/array_of_array_of_number_only.dart @@ -18,7 +18,7 @@ class ArrayOfArrayOfNumberOnly { /// Returns a new [ArrayOfArrayOfNumberOnly] instance. ArrayOfArrayOfNumberOnly({ - this.arrayarraynumber, + this.arrayArrayNumber, }); @JsonKey( @@ -29,7 +29,7 @@ class ArrayOfArrayOfNumberOnly { ) - final List>? arrayarraynumber; + final List>? arrayArrayNumber; @@ -37,11 +37,11 @@ class ArrayOfArrayOfNumberOnly { @override bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly && - other.arrayarraynumber == arrayarraynumber; + other.arrayArrayNumber == arrayArrayNumber; @override int get hashCode => - arrayarraynumber.hashCode; + arrayArrayNumber.hashCode; factory ArrayOfArrayOfNumberOnly.fromJson(Map json) => _$ArrayOfArrayOfNumberOnlyFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/array_of_number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/array_of_number_only.dart index e058704c51a..4ead761e76f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/array_of_number_only.dart @@ -18,7 +18,7 @@ class ArrayOfNumberOnly { /// Returns a new [ArrayOfNumberOnly] instance. ArrayOfNumberOnly({ - this.arraynumber, + this.arrayNumber, }); @JsonKey( @@ -29,7 +29,7 @@ class ArrayOfNumberOnly { ) - final List? arraynumber; + final List? arrayNumber; @@ -37,11 +37,11 @@ class ArrayOfNumberOnly { @override bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly && - other.arraynumber == arraynumber; + other.arrayNumber == arrayNumber; @override int get hashCode => - arraynumber.hashCode; + arrayNumber.hashCode; factory ArrayOfNumberOnly.fromJson(Map json) => _$ArrayOfNumberOnlyFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/capitalization.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/capitalization.dart index c248b9c5219..d2bc40f3383 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/capitalization.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/capitalization.dart @@ -18,17 +18,17 @@ class Capitalization { /// Returns a new [Capitalization] instance. Capitalization({ - this.smallcamel, + this.smallCamel, - this.capitalcamel, + this.capitalCamel, this.smallSnake, this.capitalSnake, - this.scaEthFlowPoints, + this.sCAETHFlowPoints, - this.attName, + this.ATT_NAME, }); @JsonKey( @@ -39,7 +39,7 @@ class Capitalization { ) - final String? smallcamel; + final String? smallCamel; @@ -51,7 +51,7 @@ class Capitalization { ) - final String? capitalcamel; + final String? capitalCamel; @@ -87,7 +87,7 @@ class Capitalization { ) - final String? scaEthFlowPoints; + final String? sCAETHFlowPoints; @@ -100,7 +100,7 @@ class Capitalization { ) - final String? attName; + final String? ATT_NAME; @@ -108,21 +108,21 @@ class Capitalization { @override bool operator ==(Object other) => identical(this, other) || other is Capitalization && - other.smallcamel == smallcamel && - other.capitalcamel == capitalcamel && + other.smallCamel == smallCamel && + other.capitalCamel == capitalCamel && other.smallSnake == smallSnake && other.capitalSnake == capitalSnake && - other.scaEthFlowPoints == scaEthFlowPoints && - other.attName == attName; + other.sCAETHFlowPoints == sCAETHFlowPoints && + other.ATT_NAME == ATT_NAME; @override int get hashCode => - smallcamel.hashCode + - capitalcamel.hashCode + + smallCamel.hashCode + + capitalCamel.hashCode + smallSnake.hashCode + capitalSnake.hashCode + - scaEthFlowPoints.hashCode + - attName.hashCode; + sCAETHFlowPoints.hashCode + + ATT_NAME.hashCode; factory Capitalization.fromJson(Map json) => _$CapitalizationFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/cat.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/cat.dart index d783b29bfeb..e2df6f2cc55 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/cat.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/cat.dart @@ -21,7 +21,7 @@ class Cat { /// Returns a new [Cat] instance. Cat({ - required this.classname, + required this.className, this.color = 'red', @@ -36,7 +36,7 @@ class Cat { ) - final String classname; + final String className; @@ -68,13 +68,13 @@ class Cat { @override bool operator ==(Object other) => identical(this, other) || other is Cat && - other.classname == classname && + other.className == className && other.color == color && other.declawed == declawed; @override int get hashCode => - classname.hashCode + + className.hashCode + color.hashCode + declawed.hashCode; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/child_with_nullable.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/child_with_nullable.dart index 24e56c0a068..dcda6f93ba6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/child_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/child_with_nullable.dart @@ -23,9 +23,9 @@ class ChildWithNullable { this.type, - this.nullableproperty, + this.nullableProperty, - this.otherproperty, + this.otherProperty, }); @JsonKey( @@ -49,7 +49,7 @@ class ChildWithNullable { ) - final String? nullableproperty; + final String? nullableProperty; @@ -61,7 +61,7 @@ class ChildWithNullable { ) - final String? otherproperty; + final String? otherProperty; @@ -70,14 +70,14 @@ class ChildWithNullable { @override bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable && other.type == type && - other.nullableproperty == nullableproperty && - other.otherproperty == otherproperty; + other.nullableProperty == nullableProperty && + other.otherProperty == otherProperty; @override int get hashCode => type.hashCode + - (nullableproperty == null ? 0 : nullableproperty.hashCode) + - otherproperty.hashCode; + (nullableProperty == null ? 0 : nullableProperty.hashCode) + + otherProperty.hashCode; factory ChildWithNullable.fromJson(Map json) => _$ChildWithNullableFromJson(json); @@ -93,7 +93,7 @@ class ChildWithNullable { enum ChildWithNullableTypeEnum { @JsonValue(r'ChildWithNullable') -childwithnullable(r'ChildWithNullable'), +childWithNullable(r'ChildWithNullable'), @JsonValue(r'unknown_default_open_api') unknownDefaultOpenApi(r'unknown_default_open_api'); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/dog.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/dog.dart index 871df64ab69..deb271b6dc3 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/dog.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/dog.dart @@ -21,7 +21,7 @@ class Dog { /// Returns a new [Dog] instance. Dog({ - required this.classname, + required this.className, this.color = 'red', @@ -36,7 +36,7 @@ class Dog { ) - final String classname; + final String className; @@ -68,13 +68,13 @@ class Dog { @override bool operator ==(Object other) => identical(this, other) || other is Dog && - other.classname == classname && + other.className == className && other.color == color && other.breed == breed; @override int get hashCode => - classname.hashCode + + className.hashCode + color.hashCode + breed.hashCode; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/enum_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/enum_test.dart index 0051b7a6da1..e0fe5915107 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/enum_test.dart @@ -30,13 +30,13 @@ class EnumTest { this.enumNumber, - this.outerenum, + this.outerEnum, - this.outerenuminteger, + this.outerEnumInteger, - this.outerenumdefaultvalue, + this.outerEnumDefaultValue, - this.outerenumintegerdefaultvalue, + this.outerEnumIntegerDefaultValue, }); @JsonKey( @@ -100,7 +100,7 @@ class EnumTest { ) - final OuterEnum? outerenum; + final OuterEnum? outerEnum; @@ -113,7 +113,7 @@ class EnumTest { ) - final OuterEnumInteger? outerenuminteger; + final OuterEnumInteger? outerEnumInteger; @@ -126,7 +126,7 @@ class EnumTest { ) - final OuterEnumDefaultValue? outerenumdefaultvalue; + final OuterEnumDefaultValue? outerEnumDefaultValue; @@ -139,7 +139,7 @@ class EnumTest { ) - final OuterEnumIntegerDefaultValue? outerenumintegerdefaultvalue; + final OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue; @@ -151,10 +151,10 @@ class EnumTest { other.enumStringRequired == enumStringRequired && other.enumInteger == enumInteger && other.enumNumber == enumNumber && - other.outerenum == outerenum && - other.outerenuminteger == outerenuminteger && - other.outerenumdefaultvalue == outerenumdefaultvalue && - other.outerenumintegerdefaultvalue == outerenumintegerdefaultvalue; + other.outerEnum == outerEnum && + other.outerEnumInteger == outerEnumInteger && + other.outerEnumDefaultValue == outerEnumDefaultValue && + other.outerEnumIntegerDefaultValue == outerEnumIntegerDefaultValue; @override int get hashCode => @@ -162,10 +162,10 @@ class EnumTest { enumStringRequired.hashCode + enumInteger.hashCode + enumNumber.hashCode + - (outerenum == null ? 0 : outerenum.hashCode) + - outerenuminteger.hashCode + - outerenumdefaultvalue.hashCode + - outerenumintegerdefaultvalue.hashCode; + (outerEnum == null ? 0 : outerEnum.hashCode) + + outerEnumInteger.hashCode + + outerEnumDefaultValue.hashCode + + outerEnumIntegerDefaultValue.hashCode; factory EnumTest.fromJson(Map json) => _$EnumTestFromJson(json); @@ -239,9 +239,9 @@ String toString() => value; enum EnumTestEnumNumberEnum { @JsonValue('1.1') -number1period1(''1.1''), +number1Period1(''1.1''), @JsonValue('-1.2') -numberNegative1period2(''-1.2''), +numberNegative1Period2(''-1.2''), @JsonValue('11184809') unknownDefaultOpenApi(''11184809''); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/fake_big_decimal_map200_response.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/fake_big_decimal_map200_response.dart index 9c994771886..1f0f2950a71 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/fake_big_decimal_map200_response.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/fake_big_decimal_map200_response.dart @@ -18,9 +18,9 @@ class FakeBigDecimalMap200Response { /// Returns a new [FakeBigDecimalMap200Response] instance. FakeBigDecimalMap200Response({ - this.someid, + this.someId, - this.somemap, + this.someMap, }); @JsonKey( @@ -31,7 +31,7 @@ class FakeBigDecimalMap200Response { ) - final num? someid; + final num? someId; @@ -43,7 +43,7 @@ class FakeBigDecimalMap200Response { ) - final Map? somemap; + final Map? someMap; @@ -51,13 +51,13 @@ class FakeBigDecimalMap200Response { @override bool operator ==(Object other) => identical(this, other) || other is FakeBigDecimalMap200Response && - other.someid == someid && - other.somemap == somemap; + other.someId == someId && + other.someMap == someMap; @override int get hashCode => - someid.hashCode + - somemap.hashCode; + someId.hashCode + + someMap.hashCode; factory FakeBigDecimalMap200Response.fromJson(Map json) => _$FakeBigDecimalMap200ResponseFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/format_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/format_test.dart index b724503e4ae..a20ba417fa5 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/format_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/format_test.dart @@ -41,7 +41,7 @@ class FormatTest { required this.date, - this.datetime, + this.dateTime, this.uuid, @@ -197,7 +197,7 @@ class FormatTest { ) - final DateTime? datetime; + final DateTime? dateTime; @@ -266,7 +266,7 @@ class FormatTest { other.byte == byte && other.binary == binary && other.date == date && - other.datetime == datetime && + other.dateTime == dateTime && other.uuid == uuid && other.password == password && other.patternWithDigits == patternWithDigits && @@ -285,7 +285,7 @@ class FormatTest { byte.hashCode + binary.hashCode + date.hashCode + - datetime.hashCode + + dateTime.hashCode + uuid.hashCode + password.hashCode + patternWithDigits.hashCode + diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/health_check_result.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/health_check_result.dart index fdacbc440a0..6fd362cdf35 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/health_check_result.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/health_check_result.dart @@ -18,7 +18,7 @@ class HealthCheckResult { /// Returns a new [HealthCheckResult] instance. HealthCheckResult({ - this.nullablemessage, + this.nullableMessage, }); @JsonKey( @@ -29,7 +29,7 @@ class HealthCheckResult { ) - final String? nullablemessage; + final String? nullableMessage; @@ -37,11 +37,11 @@ class HealthCheckResult { @override bool operator ==(Object other) => identical(this, other) || other is HealthCheckResult && - other.nullablemessage == nullablemessage; + other.nullableMessage == nullableMessage; @override int get hashCode => - (nullablemessage == null ? 0 : nullablemessage.hashCode); + (nullableMessage == null ? 0 : nullableMessage.hashCode); factory HealthCheckResult.fromJson(Map json) => _$HealthCheckResultFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/mixed_properties_and_additional_properties_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/mixed_properties_and_additional_properties_class.dart index 960e16bba37..458d2bd0534 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/mixed_properties_and_additional_properties_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/mixed_properties_and_additional_properties_class.dart @@ -21,7 +21,7 @@ class MixedPropertiesAndAdditionalPropertiesClass { this.uuid, - this.datetime, + this.dateTime, this.map, }); @@ -46,7 +46,7 @@ class MixedPropertiesAndAdditionalPropertiesClass { ) - final DateTime? datetime; + final DateTime? dateTime; @@ -67,13 +67,13 @@ class MixedPropertiesAndAdditionalPropertiesClass { @override bool operator ==(Object other) => identical(this, other) || other is MixedPropertiesAndAdditionalPropertiesClass && other.uuid == uuid && - other.datetime == datetime && + other.dateTime == dateTime && other.map == map; @override int get hashCode => uuid.hashCode + - datetime.hashCode + + dateTime.hashCode + map.hashCode; factory MixedPropertiesAndAdditionalPropertiesClass.fromJson(Map json) => _$MixedPropertiesAndAdditionalPropertiesClassFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/model_enum_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/model_enum_class.dart index 602fdc18d60..ec3d9ceee53 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/model_enum_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/model_enum_class.dart @@ -12,7 +12,17 @@ enum ModelEnumClass { @JsonValue(r'-efg') efg(r'-efg'), @JsonValue(r'(xyz)') - leftParenthesisXyzrightParenthesis(r'(xyz)'), + leftParenthesisXyzRightParenthesis(r'(xyz)'), + @JsonValue(r'TEST') + test(r'TEST'), + @JsonValue(r'TEST_A') + testA(r'TEST_A'), + @JsonValue(r'TEST_A_ABC') + testAAbc(r'TEST_A_ABC'), + @JsonValue(r'TEST_a') + tESTA(r'TEST_a'), + @JsonValue(r'tEST') + tEST(r'tEST'), @JsonValue(r'unknown_default_open_api') unknownDefaultOpenApi(r'unknown_default_open_api'); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/model_file.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/model_file.dart index 85a43bd2a46..cccca0412f4 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/model_file.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/model_file.dart @@ -18,7 +18,7 @@ class ModelFile { /// Returns a new [ModelFile] instance. ModelFile({ - this.sourceuri, + this.sourceURI, }); /// Test capitalization @@ -30,7 +30,7 @@ class ModelFile { ) - final String? sourceuri; + final String? sourceURI; @@ -38,11 +38,11 @@ class ModelFile { @override bool operator ==(Object other) => identical(this, other) || other is ModelFile && - other.sourceuri == sourceuri; + other.sourceURI == sourceURI; @override int get hashCode => - sourceuri.hashCode; + sourceURI.hashCode; factory ModelFile.fromJson(Map json) => _$ModelFileFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/number_only.dart index c511946d665..44e9d41a189 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/number_only.dart @@ -18,7 +18,7 @@ class NumberOnly { /// Returns a new [NumberOnly] instance. NumberOnly({ - this.justnumber, + this.justNumber, }); @JsonKey( @@ -29,7 +29,7 @@ class NumberOnly { ) - final num? justnumber; + final num? justNumber; @@ -37,11 +37,11 @@ class NumberOnly { @override bool operator ==(Object other) => identical(this, other) || other is NumberOnly && - other.justnumber == justnumber; + other.justNumber == justNumber; @override int get hashCode => - justnumber.hashCode; + justNumber.hashCode; factory NumberOnly.fromJson(Map json) => _$NumberOnlyFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/object_with_deprecated_fields.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/object_with_deprecated_fields.dart index 2c060a1ecfc..5a36ffb5147 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/object_with_deprecated_fields.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/object_with_deprecated_fields.dart @@ -23,7 +23,7 @@ class ObjectWithDeprecatedFields { this.id, - this.deprecatedref, + this.deprecatedRef, this.bars, }); @@ -53,7 +53,7 @@ class ObjectWithDeprecatedFields { - @Deprecated('deprecatedref has been deprecated') + @Deprecated('deprecatedRef has been deprecated') @JsonKey( name: r'deprecatedRef', @@ -62,7 +62,7 @@ class ObjectWithDeprecatedFields { ) - final DeprecatedObject? deprecatedref; + final DeprecatedObject? deprecatedRef; @@ -85,14 +85,14 @@ class ObjectWithDeprecatedFields { bool operator ==(Object other) => identical(this, other) || other is ObjectWithDeprecatedFields && other.uuid == uuid && other.id == id && - other.deprecatedref == deprecatedref && + other.deprecatedRef == deprecatedRef && other.bars == bars; @override int get hashCode => uuid.hashCode + id.hashCode + - deprecatedref.hashCode + + deprecatedRef.hashCode + bars.hashCode; factory ObjectWithDeprecatedFields.fromJson(Map json) => _$ObjectWithDeprecatedFieldsFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/order.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/order.dart index a554ecc6311..dfbc4f5c5e4 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/order.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/order.dart @@ -20,11 +20,11 @@ class Order { this.id, - this.petid, + this.petId, this.quantity, - this.shipdate, + this.shipDate, this.status, @@ -51,7 +51,7 @@ class Order { ) - final int? petid; + final int? petId; @@ -75,7 +75,7 @@ class Order { ) - final DateTime? shipdate; + final DateTime? shipDate; @@ -110,18 +110,18 @@ class Order { @override bool operator ==(Object other) => identical(this, other) || other is Order && other.id == id && - other.petid == petid && + other.petId == petId && other.quantity == quantity && - other.shipdate == shipdate && + other.shipDate == shipDate && other.status == status && other.complete == complete; @override int get hashCode => id.hashCode + - petid.hashCode + + petId.hashCode + quantity.hashCode + - shipdate.hashCode + + shipDate.hashCode + status.hashCode + complete.hashCode; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/parent_with_nullable.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/parent_with_nullable.dart index 6a0edc0716f..bda5847df5a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/parent_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/parent_with_nullable.dart @@ -20,7 +20,7 @@ class ParentWithNullable { this.type, - this.nullableproperty, + this.nullableProperty, }); @JsonKey( @@ -44,7 +44,7 @@ class ParentWithNullable { ) - final String? nullableproperty; + final String? nullableProperty; @@ -53,12 +53,12 @@ class ParentWithNullable { @override bool operator ==(Object other) => identical(this, other) || other is ParentWithNullable && other.type == type && - other.nullableproperty == nullableproperty; + other.nullableProperty == nullableProperty; @override int get hashCode => type.hashCode + - (nullableproperty == null ? 0 : nullableproperty.hashCode); + (nullableProperty == null ? 0 : nullableProperty.hashCode); factory ParentWithNullable.fromJson(Map json) => _$ParentWithNullableFromJson(json); @@ -74,7 +74,7 @@ class ParentWithNullable { enum ParentWithNullableTypeEnum { @JsonValue(r'ChildWithNullable') -childwithnullable(r'ChildWithNullable'), +childWithNullable(r'ChildWithNullable'), @JsonValue(r'unknown_default_open_api') unknownDefaultOpenApi(r'unknown_default_open_api'); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/pet.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/pet.dart index 6d41a485b6c..fdb70f9ce89 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/pet.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/pet.dart @@ -26,7 +26,7 @@ class Pet { required this.name, - required this.photourls, + required this.photoUrls, this.tags, @@ -77,7 +77,7 @@ class Pet { ) - final Set photourls; + final Set photoUrls; @@ -114,7 +114,7 @@ class Pet { other.id == id && other.category == category && other.name == name && - other.photourls == photourls && + other.photoUrls == photoUrls && other.tags == tags && other.status == status; @@ -123,7 +123,7 @@ class Pet { id.hashCode + category.hashCode + name.hashCode + - photourls.hashCode + + photoUrls.hashCode + tags.hashCode + status.hashCode; diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/special_model_name.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/special_model_name.dart index 30d3bc67b80..175b6fb274c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/special_model_name.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/special_model_name.dart @@ -18,7 +18,7 @@ class SpecialModelName { /// Returns a new [SpecialModelName] instance. SpecialModelName({ - this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket, + this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket, }); @JsonKey( @@ -29,7 +29,7 @@ class SpecialModelName { ) - final int? dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + final int? dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; @@ -37,11 +37,11 @@ class SpecialModelName { @override bool operator ==(Object other) => identical(this, other) || other is SpecialModelName && - other.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket == dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + other.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket == dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; @override int get hashCode => - dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket.hashCode; + dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket.hashCode; factory SpecialModelName.fromJson(Map json) => _$SpecialModelNameFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/test_inline_freeform_additional_properties_request.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/test_inline_freeform_additional_properties_request.dart index c2f51d310a2..5eda7d48b38 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/test_inline_freeform_additional_properties_request.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/test_inline_freeform_additional_properties_request.dart @@ -18,7 +18,7 @@ class TestInlineFreeformAdditionalPropertiesRequest { /// Returns a new [TestInlineFreeformAdditionalPropertiesRequest] instance. TestInlineFreeformAdditionalPropertiesRequest({ - this.someproperty, + this.someProperty, }); @JsonKey( @@ -29,7 +29,7 @@ class TestInlineFreeformAdditionalPropertiesRequest { ) - final String? someproperty; + final String? someProperty; @@ -37,11 +37,11 @@ class TestInlineFreeformAdditionalPropertiesRequest { @override bool operator ==(Object other) => identical(this, other) || other is TestInlineFreeformAdditionalPropertiesRequest && - other.someproperty == someproperty; + other.someProperty == someProperty; @override int get hashCode => - someproperty.hashCode; + someProperty.hashCode; factory TestInlineFreeformAdditionalPropertiesRequest.fromJson(Map json) => _$TestInlineFreeformAdditionalPropertiesRequestFromJson(json); diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/user.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/user.dart index 0e2de7c1878..56c95cb75f1 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/user.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_use_lower_camel_case/lib/src/model/user.dart @@ -22,9 +22,9 @@ class User { this.username, - this.firstname, + this.firstName, - this.lastname, + this.lastName, this.email, @@ -32,7 +32,7 @@ class User { this.phone, - this.userstatus, + this.userStatus, }); @JsonKey( @@ -67,7 +67,7 @@ class User { ) - final String? firstname; + final String? firstName; @@ -79,7 +79,7 @@ class User { ) - final String? lastname; + final String? lastName; @@ -128,7 +128,7 @@ class User { ) - final int? userstatus; + final int? userStatus; @@ -138,23 +138,23 @@ class User { bool operator ==(Object other) => identical(this, other) || other is User && other.id == id && other.username == username && - other.firstname == firstname && - other.lastname == lastname && + other.firstName == firstName && + other.lastName == lastName && other.email == email && other.password == password && other.phone == phone && - other.userstatus == userstatus; + other.userStatus == userStatus; @override int get hashCode => id.hashCode + username.hashCode + - firstname.hashCode + - lastname.hashCode + + firstName.hashCode + + lastName.hashCode + email.hashCode + password.hashCode + phone.hashCode + - userstatus.hashCode; + userStatus.hashCode; factory User.fromJson(Map json) => _$UserFromJson(json); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/Order.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/Order.md index 08914a83f30..bde5ffe51a2 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/Order.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/Order.md @@ -9,9 +9,9 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**petid** | **int** | | [optional] +**petId** | **int** | | [optional] **quantity** | **int** | | [optional] -**shipdate** | [**DateTime**](DateTime.md) | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] **status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/Pet.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/Pet.md index a6acc8ba01e..88512ee3703 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/Pet.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/Pet.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **id** | **int** | | [optional] **category** | [**Category**](Category.md) | | [optional] **name** | **String** | | -**photourls** | **List** | | [default to const []] +**photoUrls** | **List** | | [default to const []] **tags** | [**List**](Tag.md) | | [optional] [default to const []] **status** | **String** | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/PetApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/PetApi.md index 12637767ba2..267b97755be 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/PetApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/PetApi.md @@ -65,7 +65,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deletePet** -> deletePet(petid, apiKey) +> deletePet(petId, apiKey) Deletes a pet @@ -78,11 +78,11 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | Pet id to delete +final petId = 789; // int | Pet id to delete final apiKey = apiKey_example; // String | try { - api_instance.deletePet(petid, apiKey); + api_instance.deletePet(petId, apiKey); } catch (e) { print('Exception when calling PetApi->deletePet: $e\n'); } @@ -92,7 +92,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| Pet id to delete | + **petId** | **int**| Pet id to delete | **apiKey** | **String**| | [optional] ### Return type @@ -201,7 +201,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPetById** -> Pet getPetById(petid) +> Pet getPetById(petId) Find pet by ID @@ -216,10 +216,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet to return +final petId = 789; // int | ID of pet to return try { - final result = api_instance.getPetById(petid); + final result = api_instance.getPetById(petId); print(result); } catch (e) { print('Exception when calling PetApi->getPetById: $e\n'); @@ -230,7 +230,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to return | + **petId** | **int**| ID of pet to return | ### Return type @@ -293,7 +293,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updatePetWithForm** -> updatePetWithForm(petid, name, status) +> updatePetWithForm(petId, name, status) Updates a pet in the store with form data @@ -306,12 +306,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet that needs to be updated +final petId = 789; // int | ID of pet that needs to be updated final name = name_example; // String | Updated name of the pet final status = status_example; // String | Updated status of the pet try { - api_instance.updatePetWithForm(petid, name, status); + api_instance.updatePetWithForm(petId, name, status); } catch (e) { print('Exception when calling PetApi->updatePetWithForm: $e\n'); } @@ -321,7 +321,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet that needs to be updated | + **petId** | **int**| ID of pet that needs to be updated | **name** | **String**| Updated name of the pet | [optional] **status** | **String**| Updated status of the pet | [optional] @@ -341,7 +341,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFile** -> ApiResponse uploadFile(petid, additionalmetadata, file) +> ApiResponse uploadFile(petId, additionalMetadata, file) uploads an image @@ -354,12 +354,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet to update -final additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final petId = 789; // int | ID of pet to update +final additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server final file = BINARY_DATA_HERE; // MultipartFile | file to upload try { - final result = api_instance.uploadFile(petid, additionalmetadata, file); + final result = api_instance.uploadFile(petId, additionalMetadata, file); print(result); } catch (e) { print('Exception when calling PetApi->uploadFile: $e\n'); @@ -370,8 +370,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] **file** | **MultipartFile**| file to upload | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/StoreApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/StoreApi.md index 68e96b35dc5..e5230861764 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/StoreApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/StoreApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **deleteOrder** -> deleteOrder(orderid) +> deleteOrder(orderId) Delete purchase order by ID @@ -27,10 +27,10 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non import 'package:openapi/api.dart'; final api_instance = StoreApi(); -final orderid = orderid_example; // String | ID of the order that needs to be deleted +final orderId = orderId_example; // String | ID of the order that needs to be deleted try { - api_instance.deleteOrder(orderid); + api_instance.deleteOrder(orderId); } catch (e) { print('Exception when calling StoreApi->deleteOrder: $e\n'); } @@ -40,7 +40,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderid** | **String**| ID of the order that needs to be deleted | + **orderId** | **String**| ID of the order that needs to be deleted | ### Return type @@ -101,7 +101,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getOrderById** -> Order getOrderById(orderid) +> Order getOrderById(orderId) Find purchase order by ID @@ -112,10 +112,10 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge import 'package:openapi/api.dart'; final api_instance = StoreApi(); -final orderid = 789; // int | ID of pet that needs to be fetched +final orderId = 789; // int | ID of pet that needs to be fetched try { - final result = api_instance.getOrderById(orderid); + final result = api_instance.getOrderById(orderId); print(result); } catch (e) { print('Exception when calling StoreApi->getOrderById: $e\n'); @@ -126,7 +126,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderid** | **int**| ID of pet that needs to be fetched | + **orderId** | **int**| ID of pet that needs to be fetched | ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/User.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/User.md index 37aa8c50230..fa87e64d859 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/User.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/doc/User.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] **username** | **String** | | [optional] -**firstname** | **String** | | [optional] -**lastname** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] **email** | **String** | | [optional] **password** | **String** | | [optional] **phone** | **String** | | [optional] -**userstatus** | **int** | User Status | [optional] +**userStatus** | **int** | User Status | [optional] [[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/dart2/petstore_client_lib/lib/api/pet_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/api/pet_api.dart index 39de05487f7..f6cb28f6cc2 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/api/pet_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/api/pet_api.dart @@ -82,14 +82,14 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// Pet id to delete /// /// * [String] apiKey: - Future deletePetWithHttpInfo(int petid, { String? apiKey, }) async { + Future deletePetWithHttpInfo(int petId, { String? apiKey, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -122,12 +122,12 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// Pet id to delete /// /// * [String] apiKey: - Future deletePet(int petid, { String? apiKey, }) async { - final response = await deletePetWithHttpInfo(petid, apiKey: apiKey, ); + Future deletePet(int petId, { String? apiKey, }) async { + final response = await deletePetWithHttpInfo(petId, apiKey: apiKey, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -267,12 +267,12 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to return - Future getPetByIdWithHttpInfo(int petid,) async { + Future getPetByIdWithHttpInfo(int petId,) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -301,10 +301,10 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to return - Future getPetById(int petid,) async { - final response = await getPetByIdWithHttpInfo(petid,); + Future getPetById(int petId,) async { + final response = await getPetByIdWithHttpInfo(petId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -384,7 +384,7 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet that needs to be updated /// /// * [String] name: @@ -392,10 +392,10 @@ class PetApi { /// /// * [String] status: /// Updated status of the pet - Future updatePetWithFormWithHttpInfo(int petid, { String? name, String? status, }) async { + Future updatePetWithFormWithHttpInfo(int petId, { String? name, String? status, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -430,7 +430,7 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet that needs to be updated /// /// * [String] name: @@ -438,8 +438,8 @@ class PetApi { /// /// * [String] status: /// Updated status of the pet - Future updatePetWithForm(int petid, { String? name, String? status, }) async { - final response = await updatePetWithFormWithHttpInfo(petid, name: name, status: status, ); + Future updatePetWithForm(int petId, { String? name, String? status, }) async { + final response = await updatePetWithFormWithHttpInfo(petId, name: name, status: status, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -453,18 +453,18 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server /// /// * [MultipartFile] file: /// file to upload - Future uploadFileWithHttpInfo(int petid, { String? additionalmetadata, MultipartFile? file, }) async { + Future uploadFileWithHttpInfo(int petId, { String? additionalMetadata, MultipartFile? file, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}/uploadImage' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -477,9 +477,9 @@ class PetApi { bool hasFields = false; final mp = MultipartRequest('POST', Uri.parse(path)); - if (additionalmetadata != null) { + if (additionalMetadata != null) { hasFields = true; - mp.fields[r'additionalMetadata'] = parameterToString(additionalmetadata); + mp.fields[r'additionalMetadata'] = parameterToString(additionalMetadata); } if (file != null) { hasFields = true; @@ -507,16 +507,16 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server /// /// * [MultipartFile] file: /// file to upload - Future uploadFile(int petid, { String? additionalmetadata, MultipartFile? file, }) async { - final response = await uploadFileWithHttpInfo(petid, additionalmetadata: additionalmetadata, file: file, ); + Future uploadFile(int petId, { String? additionalMetadata, MultipartFile? file, }) async { + final response = await uploadFileWithHttpInfo(petId, additionalMetadata: additionalMetadata, file: file, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/api/store_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/api/store_api.dart index cd20ddd4366..e27c2b04cb8 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/api/store_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/api/store_api.dart @@ -24,12 +24,12 @@ class StoreApi { /// /// Parameters: /// - /// * [String] orderid (required): + /// * [String] orderId (required): /// ID of the order that needs to be deleted - Future deleteOrderWithHttpInfo(String orderid,) async { + Future deleteOrderWithHttpInfo(String orderId,) async { // ignore: prefer_const_declarations final path = r'/store/order/{orderId}' - .replaceAll('{orderId}', orderid); + .replaceAll('{orderId}', orderId); // ignore: prefer_final_locals Object? postBody; @@ -58,10 +58,10 @@ class StoreApi { /// /// Parameters: /// - /// * [String] orderid (required): + /// * [String] orderId (required): /// ID of the order that needs to be deleted - Future deleteOrder(String orderid,) async { - final response = await deleteOrderWithHttpInfo(orderid,); + Future deleteOrder(String orderId,) async { + final response = await deleteOrderWithHttpInfo(orderId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -123,12 +123,12 @@ class StoreApi { /// /// Parameters: /// - /// * [int] orderid (required): + /// * [int] orderId (required): /// ID of pet that needs to be fetched - Future getOrderByIdWithHttpInfo(int orderid,) async { + Future getOrderByIdWithHttpInfo(int orderId,) async { // ignore: prefer_const_declarations final path = r'/store/order/{orderId}' - .replaceAll('{orderId}', orderid.toString()); + .replaceAll('{orderId}', orderId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -157,10 +157,10 @@ class StoreApi { /// /// Parameters: /// - /// * [int] orderid (required): + /// * [int] orderId (required): /// ID of pet that needs to be fetched - Future getOrderById(int orderid,) async { - final response = await getOrderByIdWithHttpInfo(orderid,); + Future getOrderById(int orderId,) async { + final response = await getOrderByIdWithHttpInfo(orderId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/order.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/order.dart index 0ee88f1fd8a..88a37f9c5fc 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/order.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/order.dart @@ -14,9 +14,9 @@ class Order { /// Returns a new [Order] instance. Order({ this.id, - this.petid, + this.petId, this.quantity, - this.shipdate, + this.shipDate, this.status, this.complete = false, }); @@ -35,7 +35,7 @@ class Order { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? petid; + int? petId; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -51,7 +51,7 @@ class Order { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DateTime? shipdate; + DateTime? shipDate; /// Order Status OrderStatusEnum? status; @@ -61,9 +61,9 @@ class Order { @override bool operator ==(Object other) => identical(this, other) || other is Order && other.id == id && - other.petid == petid && + other.petId == petId && other.quantity == quantity && - other.shipdate == shipdate && + other.shipDate == shipDate && other.status == status && other.complete == complete; @@ -71,14 +71,14 @@ class Order { int get hashCode => // ignore: unnecessary_parenthesis (id == null ? 0 : id!.hashCode) + - (petid == null ? 0 : petid!.hashCode) + + (petId == null ? 0 : petId!.hashCode) + (quantity == null ? 0 : quantity!.hashCode) + - (shipdate == null ? 0 : shipdate!.hashCode) + + (shipDate == null ? 0 : shipDate!.hashCode) + (status == null ? 0 : status!.hashCode) + (complete.hashCode); @override - String toString() => 'Order[id=$id, petid=$petid, quantity=$quantity, shipdate=$shipdate, status=$status, complete=$complete]'; + String toString() => 'Order[id=$id, petId=$petId, quantity=$quantity, shipDate=$shipDate, status=$status, complete=$complete]'; Map toJson() { final json = {}; @@ -87,8 +87,8 @@ class Order { } else { json[r'id'] = null; } - if (this.petid != null) { - json[r'petId'] = this.petid; + if (this.petId != null) { + json[r'petId'] = this.petId; } else { json[r'petId'] = null; } @@ -97,8 +97,8 @@ class Order { } else { json[r'quantity'] = null; } - if (this.shipdate != null) { - json[r'shipDate'] = this.shipdate!.toUtc().toIso8601String(); + if (this.shipDate != null) { + json[r'shipDate'] = this.shipDate!.toUtc().toIso8601String(); } else { json[r'shipDate'] = null; } @@ -131,9 +131,9 @@ class Order { return Order( id: mapValueOfType(json, r'id'), - petid: mapValueOfType(json, r'petId'), + petId: mapValueOfType(json, r'petId'), quantity: mapValueOfType(json, r'quantity'), - shipdate: mapDateTime(json, r'shipDate', r''), + shipDate: mapDateTime(json, r'shipDate', r''), status: OrderStatusEnum.fromJson(json[r'status']), complete: mapValueOfType(json, r'complete') ?? false, ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/pet.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/pet.dart index 3c986470aed..9b79b4e1c57 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/pet.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/pet.dart @@ -16,7 +16,7 @@ class Pet { this.id, this.category, required this.name, - this.photourls = const [], + this.photoUrls = const [], this.tags = const [], this.status, }); @@ -39,7 +39,7 @@ class Pet { String name; - List photourls; + List photoUrls; List tags; @@ -51,7 +51,7 @@ class Pet { other.id == id && other.category == category && other.name == name && - _deepEquality.equals(other.photourls, photourls) && + _deepEquality.equals(other.photoUrls, photoUrls) && _deepEquality.equals(other.tags, tags) && other.status == status; @@ -61,12 +61,12 @@ class Pet { (id == null ? 0 : id!.hashCode) + (category == null ? 0 : category!.hashCode) + (name.hashCode) + - (photourls.hashCode) + + (photoUrls.hashCode) + (tags.hashCode) + (status == null ? 0 : status!.hashCode); @override - String toString() => 'Pet[id=$id, category=$category, name=$name, photourls=$photourls, tags=$tags, status=$status]'; + String toString() => 'Pet[id=$id, category=$category, name=$name, photoUrls=$photoUrls, tags=$tags, status=$status]'; Map toJson() { final json = {}; @@ -81,7 +81,7 @@ class Pet { json[r'category'] = null; } json[r'name'] = this.name; - json[r'photoUrls'] = this.photourls; + json[r'photoUrls'] = this.photoUrls; json[r'tags'] = this.tags; if (this.status != null) { json[r'status'] = this.status; @@ -113,7 +113,7 @@ class Pet { id: mapValueOfType(json, r'id'), category: Category.fromJson(json[r'category']), name: mapValueOfType(json, r'name')!, - photourls: json[r'photoUrls'] is Iterable + photoUrls: json[r'photoUrls'] is Iterable ? (json[r'photoUrls'] as Iterable).cast().toList(growable: false) : const [], tags: Tag.listFromJson(json[r'tags']), diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/user.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/user.dart index b6be541d49f..395f9e38e04 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/user.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib/lib/model/user.dart @@ -15,12 +15,12 @@ class User { User({ this.id, this.username, - this.firstname, - this.lastname, + this.firstName, + this.lastName, this.email, this.password, this.phone, - this.userstatus, + this.userStatus, }); /// @@ -45,7 +45,7 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? firstname; + String? firstName; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -53,7 +53,7 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? lastname; + String? lastName; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -86,33 +86,33 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? userstatus; + int? userStatus; @override bool operator ==(Object other) => identical(this, other) || other is User && other.id == id && other.username == username && - other.firstname == firstname && - other.lastname == lastname && + other.firstName == firstName && + other.lastName == lastName && other.email == email && other.password == password && other.phone == phone && - other.userstatus == userstatus; + other.userStatus == userStatus; @override int get hashCode => // ignore: unnecessary_parenthesis (id == null ? 0 : id!.hashCode) + (username == null ? 0 : username!.hashCode) + - (firstname == null ? 0 : firstname!.hashCode) + - (lastname == null ? 0 : lastname!.hashCode) + + (firstName == null ? 0 : firstName!.hashCode) + + (lastName == null ? 0 : lastName!.hashCode) + (email == null ? 0 : email!.hashCode) + (password == null ? 0 : password!.hashCode) + (phone == null ? 0 : phone!.hashCode) + - (userstatus == null ? 0 : userstatus!.hashCode); + (userStatus == null ? 0 : userStatus!.hashCode); @override - String toString() => 'User[id=$id, username=$username, firstname=$firstname, lastname=$lastname, email=$email, password=$password, phone=$phone, userstatus=$userstatus]'; + String toString() => 'User[id=$id, username=$username, firstName=$firstName, lastName=$lastName, email=$email, password=$password, phone=$phone, userStatus=$userStatus]'; Map toJson() { final json = {}; @@ -126,13 +126,13 @@ class User { } else { json[r'username'] = null; } - if (this.firstname != null) { - json[r'firstName'] = this.firstname; + if (this.firstName != null) { + json[r'firstName'] = this.firstName; } else { json[r'firstName'] = null; } - if (this.lastname != null) { - json[r'lastName'] = this.lastname; + if (this.lastName != null) { + json[r'lastName'] = this.lastName; } else { json[r'lastName'] = null; } @@ -151,8 +151,8 @@ class User { } else { json[r'phone'] = null; } - if (this.userstatus != null) { - json[r'userStatus'] = this.userstatus; + if (this.userStatus != null) { + json[r'userStatus'] = this.userStatus; } else { json[r'userStatus'] = null; } @@ -180,12 +180,12 @@ class User { return User( id: mapValueOfType(json, r'id'), username: mapValueOfType(json, r'username'), - firstname: mapValueOfType(json, r'firstName'), - lastname: mapValueOfType(json, r'lastName'), + firstName: mapValueOfType(json, r'firstName'), + lastName: mapValueOfType(json, r'lastName'), email: mapValueOfType(json, r'email'), password: mapValueOfType(json, r'password'), phone: mapValueOfType(json, r'phone'), - userstatus: mapValueOfType(json, r'userStatus'), + userStatus: mapValueOfType(json, r'userStatus'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/README.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/README.md index 85818103b4d..5a8c345c8de 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/README.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/README.md @@ -42,10 +42,10 @@ import 'package:openapi/api.dart'; final api_instance = AnotherFakeApi(); -final modelclient = ModelClient(); // ModelClient | client model +final modelClient = ModelClient(); // ModelClient | client model try { - final result = api_instance.call123testSpecialTags(modelclient); + final result = api_instance.call123testSpecialTags(modelClient); print(result); } catch (e) { print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/AllOfWithSingleRef.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/AllOfWithSingleRef.md index 151142162f6..4c6f3ab2fe1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/AllOfWithSingleRef.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/AllOfWithSingleRef.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **username** | **String** | | [optional] -**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional] +**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional] [[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/dart2/petstore_client_lib_fake/doc/Animal.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Animal.md index 570de2e45be..415b56e9bc2 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Animal.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Animal.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] [[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/dart2/petstore_client_lib_fake/doc/AnotherFakeApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/AnotherFakeApi.md index c2ae7784822..241c82e575d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/AnotherFakeApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> ModelClient call123testSpecialTags(modelclient) +> ModelClient call123testSpecialTags(modelClient) To test special tags @@ -24,10 +24,10 @@ To test special tags and operation ID starting with number import 'package:openapi/api.dart'; final api_instance = AnotherFakeApi(); -final modelclient = ModelClient(); // ModelClient | client model +final modelClient = ModelClient(); // ModelClient | client model try { - final result = api_instance.call123testSpecialTags(modelclient); + final result = api_instance.call123testSpecialTags(modelClient); print(result); } catch (e) { print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n'); @@ -38,7 +38,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md index 84f21164e7b..0a0dc2a7b75 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayarraynumber** | [**List>**](List.md) | | [optional] [default to const []] +**arrayArrayNumber** | [**List>**](List.md) | | [optional] [default to const []] [[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/dart2/petstore_client_lib_fake/doc/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ArrayOfNumberOnly.md index fa8e9caffce..01b6f58870f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arraynumber** | **List** | | [optional] [default to const []] +**arrayNumber** | **List** | | [optional] [default to const []] [[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/dart2/petstore_client_lib_fake/doc/Capitalization.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Capitalization.md index e673e7baef4..4a07b4eb820 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Capitalization.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Capitalization.md @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**smallcamel** | **String** | | [optional] -**capitalcamel** | **String** | | [optional] +**smallCamel** | **String** | | [optional] +**capitalCamel** | **String** | | [optional] **smallSnake** | **String** | | [optional] **capitalSnake** | **String** | | [optional] -**scaEthFlowPoints** | **String** | | [optional] -**attName** | **String** | Name of the pet | [optional] +**sCAETHFlowPoints** | **String** | | [optional] +**ATT_NAME** | **String** | Name of the pet | [optional] [[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/dart2/petstore_client_lib_fake/doc/Cat.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Cat.md index 9c557ac9082..6552eea4b43 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Cat.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Cat.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **declawed** | **bool** | | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ChildWithNullable.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ChildWithNullable.md index 54b310b0f58..770494fcf4c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ChildWithNullable.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ChildWithNullable.md @@ -9,8 +9,8 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] -**otherproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] +**otherProperty** | **String** | | [optional] [[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/dart2/petstore_client_lib_fake/doc/Dog.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Dog.md index b2ba3dfcef5..d36439b767b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Dog.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Dog.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **breed** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/EnumTest.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/EnumTest.md index f1b0758b868..7c24fe2347b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/EnumTest.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/EnumTest.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **enumStringRequired** | **String** | | **enumInteger** | **int** | | [optional] **enumNumber** | **double** | | [optional] -**outerenum** | [**OuterEnum**](OuterEnum.md) | | [optional] -**outerenuminteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] -**outerenumdefaultvalue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] -**outerenumintegerdefaultvalue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] +**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] +**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] +**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] +**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] [[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/dart2/petstore_client_lib_fake/doc/FakeApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md index cf92b84aa2c..e5c71555c9a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md @@ -197,7 +197,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outercomposite) +> OuterComposite fakeOuterCompositeSerialize(outerComposite) @@ -208,10 +208,10 @@ Test serialization of object with outer number type import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final outercomposite = OuterComposite(); // OuterComposite | Input composite as post body +final outerComposite = OuterComposite(); // OuterComposite | Input composite as post body try { - final result = api_instance.fakeOuterCompositeSerialize(outercomposite); + final result = api_instance.fakeOuterCompositeSerialize(outerComposite); print(result); } catch (e) { print('Exception when calling FakeApi->fakeOuterCompositeSerialize: $e\n'); @@ -222,7 +222,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outercomposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -326,7 +326,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakePropertyEnumIntegerSerialize** -> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty) +> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty) @@ -337,10 +337,10 @@ Test serialization of enum (int) properties with examples import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final outerobjectwithenumproperty = OuterObjectWithEnumProperty(); // OuterObjectWithEnumProperty | Input enum (int) as post body +final outerObjectWithEnumProperty = OuterObjectWithEnumProperty(); // OuterObjectWithEnumProperty | Input enum (int) as post body try { - final result = api_instance.fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty); + final result = api_instance.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty); print(result); } catch (e) { print('Exception when calling FakeApi->fakePropertyEnumIntegerSerialize: $e\n'); @@ -351,7 +351,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerobjectwithenumproperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | + **outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | ### Return type @@ -453,7 +453,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileschematestclass) +> testBodyWithFileSchema(fileSchemaTestClass) @@ -464,10 +464,10 @@ For this test, the body for this request must reference a schema named `File`. import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final fileschematestclass = FileSchemaTestClass(); // FileSchemaTestClass | +final fileSchemaTestClass = FileSchemaTestClass(); // FileSchemaTestClass | try { - api_instance.testBodyWithFileSchema(fileschematestclass); + api_instance.testBodyWithFileSchema(fileSchemaTestClass); } catch (e) { print('Exception when calling FakeApi->testBodyWithFileSchema: $e\n'); } @@ -477,7 +477,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileschematestclass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -537,7 +537,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testClientModel** -> ModelClient testClientModel(modelclient) +> ModelClient testClientModel(modelClient) To test \"client\" model @@ -548,10 +548,10 @@ To test \"client\" model import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final modelclient = ModelClient(); // ModelClient | client model +final modelClient = ModelClient(); // ModelClient | client model try { - final result = api_instance.testClientModel(modelclient); + final result = api_instance.testClientModel(modelClient); print(result); } catch (e) { print('Exception when calling FakeApi->testClientModel: $e\n'); @@ -562,7 +562,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -580,7 +580,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testEndpointParameters** -> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback) +> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -605,12 +605,12 @@ final float = 3.4; // double | None final string = string_example; // String | None final binary = BINARY_DATA_HERE; // MultipartFile | None final date = 2013-10-20; // DateTime | None -final datetime = 2013-10-20T19:20:30+01:00; // DateTime | None +final dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None final password = password_example; // String | None final callback = callback_example; // String | None try { - api_instance.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback); + api_instance.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback); } catch (e) { print('Exception when calling FakeApi->testEndpointParameters: $e\n'); } @@ -631,7 +631,7 @@ Name | Type | Description | Notes **string** | **String**| None | [optional] **binary** | **MultipartFile**| None | [optional] **date** | **DateTime**| None | [optional] - **datetime** | **DateTime**| None | [optional] + **dateTime** | **DateTime**| None | [optional] **password** | **String**| None | [optional] **callback** | **String**| None | [optional] @@ -809,7 +809,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testInlineFreeformAdditionalProperties** -> testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest) +> testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest) test inline free-form additionalProperties @@ -820,10 +820,10 @@ test inline free-form additionalProperties import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final testinlinefreeformadditionalpropertiesrequest = TestInlineFreeformAdditionalPropertiesRequest(); // TestInlineFreeformAdditionalPropertiesRequest | request body +final testInlineFreeformAdditionalPropertiesRequest = TestInlineFreeformAdditionalPropertiesRequest(); // TestInlineFreeformAdditionalPropertiesRequest | request body try { - api_instance.testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest); + api_instance.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); } catch (e) { print('Exception when calling FakeApi->testInlineFreeformAdditionalProperties: $e\n'); } @@ -833,7 +833,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **testinlinefreeformadditionalpropertiesrequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | + **testInlineFreeformAdditionalPropertiesRequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | ### Return type @@ -895,7 +895,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testNullable** -> testNullable(childwithnullable) +> testNullable(childWithNullable) test nullable parent property @@ -906,10 +906,10 @@ test nullable parent property import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final childwithnullable = ChildWithNullable(); // ChildWithNullable | request body +final childWithNullable = ChildWithNullable(); // ChildWithNullable | request body try { - api_instance.testNullable(childwithnullable); + api_instance.testNullable(childWithNullable); } catch (e) { print('Exception when calling FakeApi->testNullable: $e\n'); } @@ -919,7 +919,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **childwithnullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | + **childWithNullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | ### Return type @@ -937,7 +937,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testQueryParameterCollectionFormat** -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language) +> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language) @@ -953,11 +953,11 @@ final ioutil = []; // List | final http = []; // List | final url = []; // List | final context = []; // List | -final allowempty = allowempty_example; // String | +final allowEmpty = allowEmpty_example; // String | final language = ; // Map | try { - api_instance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language); + api_instance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language); } catch (e) { print('Exception when calling FakeApi->testQueryParameterCollectionFormat: $e\n'); } @@ -972,7 +972,7 @@ Name | Type | Description | Notes **http** | [**List**](String.md)| | [default to const []] **url** | [**List**](String.md)| | [default to const []] **context** | [**List**](String.md)| | [default to const []] - **allowempty** | **String**| | + **allowEmpty** | **String**| | **language** | [**Map**](String.md)| | [optional] [default to const {}] ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeBigDecimalMap200Response.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeBigDecimalMap200Response.md index f3c0d00337e..21ccf6ec012 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeBigDecimalMap200Response.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeBigDecimalMap200Response.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someid** | **num** | | [optional] -**somemap** | **Map** | | [optional] [default to const {}] +**someId** | **num** | | [optional] +**someMap** | **Map** | | [optional] [default to const {}] [[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/dart2/petstore_client_lib_fake/doc/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeClassnameTags123Api.md index be7a69c1b96..5518c67403f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeClassnameTags123Api.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **testClassname** -> ModelClient testClassname(modelclient) +> ModelClient testClassname(modelClient) To test class name in snake case @@ -28,10 +28,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key_query').apiKeyPrefix = 'Bearer'; final api_instance = FakeClassnameTags123Api(); -final modelclient = ModelClient(); // ModelClient | client model +final modelClient = ModelClient(); // ModelClient | client model try { - final result = api_instance.testClassname(modelclient); + final result = api_instance.testClassname(modelClient); print(result); } catch (e) { print('Exception when calling FakeClassnameTags123Api->testClassname: $e\n'); @@ -42,7 +42,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FormatTest.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FormatTest.md index a25a61c5334..83b60545eb6 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FormatTest.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FormatTest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **byte** | **String** | | **binary** | [**MultipartFile**](MultipartFile.md) | | [optional] **date** | [**DateTime**](DateTime.md) | | -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **uuid** | **String** | | [optional] **password** | **String** | | **patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/HealthCheckResult.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/HealthCheckResult.md index c912fb2e08f..4d6aeb75d96 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/HealthCheckResult.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/HealthCheckResult.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nullablemessage** | **String** | | [optional] +**nullableMessage** | **String** | | [optional] [[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/dart2/petstore_client_lib_fake/doc/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/MixedPropertiesAndAdditionalPropertiesClass.md index 3df16ab1a90..1f7f66b684f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/MixedPropertiesAndAdditionalPropertiesClass.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **map** | [**Map**](Animal.md) | | [optional] [default to const {}] [[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/dart2/petstore_client_lib_fake/doc/ModelFile.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ModelFile.md index d54b1bbbea0..4be260e93f6 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ModelFile.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ModelFile.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sourceuri** | **String** | Test capitalization | [optional] +**sourceURI** | **String** | Test capitalization | [optional] [[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/dart2/petstore_client_lib_fake/doc/NumberOnly.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/NumberOnly.md index f5fac6f8a17..d8096a3db37 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/NumberOnly.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/NumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**justnumber** | **num** | | [optional] +**justNumber** | **num** | | [optional] [[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/dart2/petstore_client_lib_fake/doc/ObjectWithDeprecatedFields.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ObjectWithDeprecatedFields.md index a78891d3301..566816d8d27 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ObjectWithDeprecatedFields.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ObjectWithDeprecatedFields.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] **id** | **num** | | [optional] -**deprecatedref** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **bars** | **List** | | [optional] [default to const []] [[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/dart2/petstore_client_lib_fake/doc/Order.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Order.md index 08914a83f30..bde5ffe51a2 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Order.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Order.md @@ -9,9 +9,9 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**petid** | **int** | | [optional] +**petId** | **int** | | [optional] **quantity** | **int** | | [optional] -**shipdate** | [**DateTime**](DateTime.md) | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] **status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ParentWithNullable.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ParentWithNullable.md index 43546498705..17aa5ca0294 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ParentWithNullable.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/ParentWithNullable.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] [[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/dart2/petstore_client_lib_fake/doc/Pet.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Pet.md index ceb71740166..b6fdea5299b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Pet.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/Pet.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **id** | **int** | | [optional] **category** | [**Category**](Category.md) | | [optional] **name** | **String** | | -**photourls** | **Set** | | [default to const {}] +**photoUrls** | **Set** | | [default to const {}] **tags** | [**List**](Tag.md) | | [optional] [default to const []] **status** | **String** | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/PetApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/PetApi.md index 978146e4488..3883a9e96a0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/PetApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/PetApi.md @@ -65,7 +65,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deletePet** -> deletePet(petid, apiKey) +> deletePet(petId, apiKey) Deletes a pet @@ -78,11 +78,11 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | Pet id to delete +final petId = 789; // int | Pet id to delete final apiKey = apiKey_example; // String | try { - api_instance.deletePet(petid, apiKey); + api_instance.deletePet(petId, apiKey); } catch (e) { print('Exception when calling PetApi->deletePet: $e\n'); } @@ -92,7 +92,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| Pet id to delete | + **petId** | **int**| Pet id to delete | **apiKey** | **String**| | [optional] ### Return type @@ -201,7 +201,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPetById** -> Pet getPetById(petid) +> Pet getPetById(petId) Find pet by ID @@ -216,10 +216,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet to return +final petId = 789; // int | ID of pet to return try { - final result = api_instance.getPetById(petid); + final result = api_instance.getPetById(petId); print(result); } catch (e) { print('Exception when calling PetApi->getPetById: $e\n'); @@ -230,7 +230,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to return | + **petId** | **int**| ID of pet to return | ### Return type @@ -292,7 +292,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updatePetWithForm** -> updatePetWithForm(petid, name, status) +> updatePetWithForm(petId, name, status) Updates a pet in the store with form data @@ -305,12 +305,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet that needs to be updated +final petId = 789; // int | ID of pet that needs to be updated final name = name_example; // String | Updated name of the pet final status = status_example; // String | Updated status of the pet try { - api_instance.updatePetWithForm(petid, name, status); + api_instance.updatePetWithForm(petId, name, status); } catch (e) { print('Exception when calling PetApi->updatePetWithForm: $e\n'); } @@ -320,7 +320,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet that needs to be updated | + **petId** | **int**| ID of pet that needs to be updated | **name** | **String**| Updated name of the pet | [optional] **status** | **String**| Updated status of the pet | [optional] @@ -340,7 +340,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFile** -> ApiResponse uploadFile(petid, additionalmetadata, file) +> ApiResponse uploadFile(petId, additionalMetadata, file) uploads an image @@ -353,12 +353,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet to update -final additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final petId = 789; // int | ID of pet to update +final additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server final file = BINARY_DATA_HERE; // MultipartFile | file to upload try { - final result = api_instance.uploadFile(petid, additionalmetadata, file); + final result = api_instance.uploadFile(petId, additionalMetadata, file); print(result); } catch (e) { print('Exception when calling PetApi->uploadFile: $e\n'); @@ -369,8 +369,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] **file** | **MultipartFile**| file to upload | [optional] ### Return type @@ -389,7 +389,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFileWithRequiredFile** -> ApiResponse uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata) +> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) uploads an image (required) @@ -402,12 +402,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet to update -final requiredfile = BINARY_DATA_HERE; // MultipartFile | file to upload -final additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final petId = 789; // int | ID of pet to update +final requiredFile = BINARY_DATA_HERE; // MultipartFile | file to upload +final additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server try { - final result = api_instance.uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata); + final result = api_instance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); print(result); } catch (e) { print('Exception when calling PetApi->uploadFileWithRequiredFile: $e\n'); @@ -418,9 +418,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **requiredfile** | **MultipartFile**| file to upload | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **requiredFile** | **MultipartFile**| file to upload | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/SpecialModelName.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/SpecialModelName.md index 04697c8e622..5fcfa98e0b3 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/SpecialModelName.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/SpecialModelName.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket** | **int** | | [optional] +**dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket** | **int** | | [optional] [[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/dart2/petstore_client_lib_fake/doc/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/TestInlineFreeformAdditionalPropertiesRequest.md index 894a3e60ee3..e2b2f1fd446 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/TestInlineFreeformAdditionalPropertiesRequest.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someproperty** | **String** | | [optional] +**someProperty** | **String** | | [optional] [[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/dart2/petstore_client_lib_fake/doc/User.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/User.md index 37aa8c50230..fa87e64d859 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/User.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/User.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] **username** | **String** | | [optional] -**firstname** | **String** | | [optional] -**lastname** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] **email** | **String** | | [optional] **password** | **String** | | [optional] **phone** | **String** | | [optional] -**userstatus** | **int** | User Status | [optional] +**userStatus** | **int** | User Status | [optional] [[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/dart2/petstore_client_lib_fake/lib/api/another_fake_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/another_fake_api.dart index 3d7ceda6d0c..81ab2d859dd 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/another_fake_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/another_fake_api.dart @@ -24,14 +24,14 @@ class AnotherFakeApi { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future call123testSpecialTagsWithHttpInfo(ModelClient modelclient,) async { + Future call123testSpecialTagsWithHttpInfo(ModelClient modelClient,) async { // ignore: prefer_const_declarations final path = r'/another-fake/dummy'; // ignore: prefer_final_locals - Object? postBody = modelclient; + Object? postBody = modelClient; final queryParams = []; final headerParams = {}; @@ -57,10 +57,10 @@ class AnotherFakeApi { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future call123testSpecialTags(ModelClient modelclient,) async { - final response = await call123testSpecialTagsWithHttpInfo(modelclient,); + Future call123testSpecialTags(ModelClient modelClient,) async { + final response = await call123testSpecialTagsWithHttpInfo(modelClient,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart index 3674a2e5d66..1fa377f864d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart @@ -230,14 +230,14 @@ class FakeApi { /// /// Parameters: /// - /// * [OuterComposite] outercomposite: + /// * [OuterComposite] outerComposite: /// Input composite as post body - Future fakeOuterCompositeSerializeWithHttpInfo({ OuterComposite? outercomposite, }) async { + Future fakeOuterCompositeSerializeWithHttpInfo({ OuterComposite? outerComposite, }) async { // ignore: prefer_const_declarations final path = r'/fake/outer/composite'; // ignore: prefer_final_locals - Object? postBody = outercomposite; + Object? postBody = outerComposite; final queryParams = []; final headerParams = {}; @@ -261,10 +261,10 @@ class FakeApi { /// /// Parameters: /// - /// * [OuterComposite] outercomposite: + /// * [OuterComposite] outerComposite: /// Input composite as post body - Future fakeOuterCompositeSerialize({ OuterComposite? outercomposite, }) async { - final response = await fakeOuterCompositeSerializeWithHttpInfo( outercomposite: outercomposite, ); + Future fakeOuterCompositeSerialize({ OuterComposite? outerComposite, }) async { + final response = await fakeOuterCompositeSerializeWithHttpInfo( outerComposite: outerComposite, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -392,14 +392,14 @@ class FakeApi { /// /// Parameters: /// - /// * [OuterObjectWithEnumProperty] outerobjectwithenumproperty (required): + /// * [OuterObjectWithEnumProperty] outerObjectWithEnumProperty (required): /// Input enum (int) as post body - Future fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerobjectwithenumproperty,) async { + Future fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty,) async { // ignore: prefer_const_declarations final path = r'/fake/property/enum-int'; // ignore: prefer_final_locals - Object? postBody = outerobjectwithenumproperty; + Object? postBody = outerObjectWithEnumProperty; final queryParams = []; final headerParams = {}; @@ -423,10 +423,10 @@ class FakeApi { /// /// Parameters: /// - /// * [OuterObjectWithEnumProperty] outerobjectwithenumproperty (required): + /// * [OuterObjectWithEnumProperty] outerObjectWithEnumProperty (required): /// Input enum (int) as post body - Future fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerobjectwithenumproperty,) async { - final response = await fakePropertyEnumIntegerSerializeWithHttpInfo(outerobjectwithenumproperty,); + Future fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty,) async { + final response = await fakePropertyEnumIntegerSerializeWithHttpInfo(outerObjectWithEnumProperty,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -542,13 +542,13 @@ class FakeApi { /// /// Parameters: /// - /// * [FileSchemaTestClass] fileschematestclass (required): - Future testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileschematestclass,) async { + /// * [FileSchemaTestClass] fileSchemaTestClass (required): + Future testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass,) async { // ignore: prefer_const_declarations final path = r'/fake/body-with-file-schema'; // ignore: prefer_final_locals - Object? postBody = fileschematestclass; + Object? postBody = fileSchemaTestClass; final queryParams = []; final headerParams = {}; @@ -572,9 +572,9 @@ class FakeApi { /// /// Parameters: /// - /// * [FileSchemaTestClass] fileschematestclass (required): - Future testBodyWithFileSchema(FileSchemaTestClass fileschematestclass,) async { - final response = await testBodyWithFileSchemaWithHttpInfo(fileschematestclass,); + /// * [FileSchemaTestClass] fileSchemaTestClass (required): + Future testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass,) async { + final response = await testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -633,14 +633,14 @@ class FakeApi { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future testClientModelWithHttpInfo(ModelClient modelclient,) async { + Future testClientModelWithHttpInfo(ModelClient modelClient,) async { // ignore: prefer_const_declarations final path = r'/fake'; // ignore: prefer_final_locals - Object? postBody = modelclient; + Object? postBody = modelClient; final queryParams = []; final headerParams = {}; @@ -666,10 +666,10 @@ class FakeApi { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future testClientModel(ModelClient modelclient,) async { - final response = await testClientModelWithHttpInfo(modelclient,); + Future testClientModel(ModelClient modelClient,) async { + final response = await testClientModelWithHttpInfo(modelClient,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -724,7 +724,7 @@ class FakeApi { /// * [DateTime] date: /// None /// - /// * [DateTime] datetime: + /// * [DateTime] dateTime: /// None /// /// * [String] password: @@ -732,7 +732,7 @@ class FakeApi { /// /// * [String] callback: /// None - Future testEndpointParametersWithHttpInfo(num number, double double_, String patternWithoutDelimiter, String byte, { int? integer, int? int32, int? int64, double? float, String? string, MultipartFile? binary, DateTime? date, DateTime? datetime, String? password, String? callback, }) async { + Future testEndpointParametersWithHttpInfo(num number, double double_, String patternWithoutDelimiter, String byte, { int? integer, int? int32, int? int64, double? float, String? string, MultipartFile? binary, DateTime? date, DateTime? dateTime, String? password, String? callback, }) async { // ignore: prefer_const_declarations final path = r'/fake'; @@ -775,8 +775,8 @@ class FakeApi { if (date != null) { formParams[r'date'] = parameterToString(date); } - if (datetime != null) { - formParams[r'dateTime'] = parameterToString(datetime); + if (dateTime != null) { + formParams[r'dateTime'] = parameterToString(dateTime); } if (password != null) { formParams[r'password'] = parameterToString(password); @@ -835,7 +835,7 @@ class FakeApi { /// * [DateTime] date: /// None /// - /// * [DateTime] datetime: + /// * [DateTime] dateTime: /// None /// /// * [String] password: @@ -843,8 +843,8 @@ class FakeApi { /// /// * [String] callback: /// None - Future testEndpointParameters(num number, double double_, String patternWithoutDelimiter, String byte, { int? integer, int? int32, int? int64, double? float, String? string, MultipartFile? binary, DateTime? date, DateTime? datetime, String? password, String? callback, }) async { - final response = await testEndpointParametersWithHttpInfo(number, double_, patternWithoutDelimiter, byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, datetime: datetime, password: password, callback: callback, ); + Future testEndpointParameters(num number, double double_, String patternWithoutDelimiter, String byte, { int? integer, int? int32, int? int64, double? float, String? string, MultipartFile? binary, DateTime? date, DateTime? dateTime, String? password, String? callback, }) async { + final response = await testEndpointParametersWithHttpInfo(number, double_, patternWithoutDelimiter, byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1127,14 +1127,14 @@ class FakeApi { /// /// Parameters: /// - /// * [TestInlineFreeformAdditionalPropertiesRequest] testinlinefreeformadditionalpropertiesrequest (required): + /// * [TestInlineFreeformAdditionalPropertiesRequest] testInlineFreeformAdditionalPropertiesRequest (required): /// request body - Future testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest,) async { + Future testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,) async { // ignore: prefer_const_declarations final path = r'/fake/inline-freeform-additionalProperties'; // ignore: prefer_final_locals - Object? postBody = testinlinefreeformadditionalpropertiesrequest; + Object? postBody = testInlineFreeformAdditionalPropertiesRequest; final queryParams = []; final headerParams = {}; @@ -1160,10 +1160,10 @@ class FakeApi { /// /// Parameters: /// - /// * [TestInlineFreeformAdditionalPropertiesRequest] testinlinefreeformadditionalpropertiesrequest (required): + /// * [TestInlineFreeformAdditionalPropertiesRequest] testInlineFreeformAdditionalPropertiesRequest (required): /// request body - Future testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest,) async { - final response = await testInlineFreeformAdditionalPropertiesWithHttpInfo(testinlinefreeformadditionalpropertiesrequest,); + Future testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,) async { + final response = await testInlineFreeformAdditionalPropertiesWithHttpInfo(testInlineFreeformAdditionalPropertiesRequest,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1239,14 +1239,14 @@ class FakeApi { /// /// Parameters: /// - /// * [ChildWithNullable] childwithnullable (required): + /// * [ChildWithNullable] childWithNullable (required): /// request body - Future testNullableWithHttpInfo(ChildWithNullable childwithnullable,) async { + Future testNullableWithHttpInfo(ChildWithNullable childWithNullable,) async { // ignore: prefer_const_declarations final path = r'/fake/nullable'; // ignore: prefer_final_locals - Object? postBody = childwithnullable; + Object? postBody = childWithNullable; final queryParams = []; final headerParams = {}; @@ -1272,10 +1272,10 @@ class FakeApi { /// /// Parameters: /// - /// * [ChildWithNullable] childwithnullable (required): + /// * [ChildWithNullable] childWithNullable (required): /// request body - Future testNullable(ChildWithNullable childwithnullable,) async { - final response = await testNullableWithHttpInfo(childwithnullable,); + Future testNullable(ChildWithNullable childWithNullable,) async { + final response = await testNullableWithHttpInfo(childWithNullable,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1297,10 +1297,10 @@ class FakeApi { /// /// * [List] context (required): /// - /// * [String] allowempty (required): + /// * [String] allowEmpty (required): /// /// * [Map] language: - Future testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowempty, { Map? language, }) async { + Future testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, { Map? language, }) async { // ignore: prefer_const_declarations final path = r'/fake/test-query-parameters'; @@ -1319,7 +1319,7 @@ class FakeApi { if (language != null) { queryParams.addAll(_queryParams('', 'language', language)); } - queryParams.addAll(_queryParams('', 'allowEmpty', allowempty)); + queryParams.addAll(_queryParams('', 'allowEmpty', allowEmpty)); const contentTypes = []; @@ -1349,11 +1349,11 @@ class FakeApi { /// /// * [List] context (required): /// - /// * [String] allowempty (required): + /// * [String] allowEmpty (required): /// /// * [Map] language: - Future testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowempty, { Map? language, }) async { - final response = await testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowempty, language: language, ); + Future testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, { Map? language, }) async { + final response = await testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowEmpty, language: language, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_classname_tags123_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_classname_tags123_api.dart index 8f45d844fd6..7689f51b688 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_classname_tags123_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_classname_tags123_api.dart @@ -24,14 +24,14 @@ class FakeClassnameTags123Api { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future testClassnameWithHttpInfo(ModelClient modelclient,) async { + Future testClassnameWithHttpInfo(ModelClient modelClient,) async { // ignore: prefer_const_declarations final path = r'/fake_classname_test'; // ignore: prefer_final_locals - Object? postBody = modelclient; + Object? postBody = modelClient; final queryParams = []; final headerParams = {}; @@ -57,10 +57,10 @@ class FakeClassnameTags123Api { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future testClassname(ModelClient modelclient,) async { - final response = await testClassnameWithHttpInfo(modelclient,); + Future testClassname(ModelClient modelClient,) async { + final response = await testClassnameWithHttpInfo(modelClient,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/pet_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/pet_api.dart index ea3c0054bd6..61fd1666af4 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/pet_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/pet_api.dart @@ -74,14 +74,14 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// Pet id to delete /// /// * [String] apiKey: - Future deletePetWithHttpInfo(int petid, { String? apiKey, }) async { + Future deletePetWithHttpInfo(int petId, { String? apiKey, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -114,12 +114,12 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// Pet id to delete /// /// * [String] apiKey: - Future deletePet(int petid, { String? apiKey, }) async { - final response = await deletePetWithHttpInfo(petid, apiKey: apiKey, ); + Future deletePet(int petId, { String? apiKey, }) async { + final response = await deletePetWithHttpInfo(petId, apiKey: apiKey, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -259,12 +259,12 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to return - Future getPetByIdWithHttpInfo(int petid,) async { + Future getPetByIdWithHttpInfo(int petId,) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -293,10 +293,10 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to return - Future getPetById(int petid,) async { - final response = await getPetByIdWithHttpInfo(petid,); + Future getPetById(int petId,) async { + final response = await getPetByIdWithHttpInfo(petId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -368,7 +368,7 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet that needs to be updated /// /// * [String] name: @@ -376,10 +376,10 @@ class PetApi { /// /// * [String] status: /// Updated status of the pet - Future updatePetWithFormWithHttpInfo(int petid, { String? name, String? status, }) async { + Future updatePetWithFormWithHttpInfo(int petId, { String? name, String? status, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -414,7 +414,7 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet that needs to be updated /// /// * [String] name: @@ -422,8 +422,8 @@ class PetApi { /// /// * [String] status: /// Updated status of the pet - Future updatePetWithForm(int petid, { String? name, String? status, }) async { - final response = await updatePetWithFormWithHttpInfo(petid, name: name, status: status, ); + Future updatePetWithForm(int petId, { String? name, String? status, }) async { + final response = await updatePetWithFormWithHttpInfo(petId, name: name, status: status, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -437,18 +437,18 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server /// /// * [MultipartFile] file: /// file to upload - Future uploadFileWithHttpInfo(int petid, { String? additionalmetadata, MultipartFile? file, }) async { + Future uploadFileWithHttpInfo(int petId, { String? additionalMetadata, MultipartFile? file, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}/uploadImage' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -461,9 +461,9 @@ class PetApi { bool hasFields = false; final mp = MultipartRequest('POST', Uri.parse(path)); - if (additionalmetadata != null) { + if (additionalMetadata != null) { hasFields = true; - mp.fields[r'additionalMetadata'] = parameterToString(additionalmetadata); + mp.fields[r'additionalMetadata'] = parameterToString(additionalMetadata); } if (file != null) { hasFields = true; @@ -491,16 +491,16 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server /// /// * [MultipartFile] file: /// file to upload - Future uploadFile(int petid, { String? additionalmetadata, MultipartFile? file, }) async { - final response = await uploadFileWithHttpInfo(petid, additionalmetadata: additionalmetadata, file: file, ); + Future uploadFile(int petId, { String? additionalMetadata, MultipartFile? file, }) async { + final response = await uploadFileWithHttpInfo(petId, additionalMetadata: additionalMetadata, file: file, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -522,18 +522,18 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [MultipartFile] requiredfile (required): + /// * [MultipartFile] requiredFile (required): /// file to upload /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server - Future uploadFileWithRequiredFileWithHttpInfo(int petid, MultipartFile requiredfile, { String? additionalmetadata, }) async { + Future uploadFileWithRequiredFileWithHttpInfo(int petId, MultipartFile requiredFile, { String? additionalMetadata, }) async { // ignore: prefer_const_declarations final path = r'/fake/{petId}/uploadImageWithRequiredFile' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -546,14 +546,14 @@ class PetApi { bool hasFields = false; final mp = MultipartRequest('POST', Uri.parse(path)); - if (additionalmetadata != null) { + if (additionalMetadata != null) { hasFields = true; - mp.fields[r'additionalMetadata'] = parameterToString(additionalmetadata); + mp.fields[r'additionalMetadata'] = parameterToString(additionalMetadata); } - if (requiredfile != null) { + if (requiredFile != null) { hasFields = true; - mp.fields[r'requiredFile'] = requiredfile.field; - mp.files.add(requiredfile); + mp.fields[r'requiredFile'] = requiredFile.field; + mp.files.add(requiredFile); } if (hasFields) { postBody = mp; @@ -576,16 +576,16 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [MultipartFile] requiredfile (required): + /// * [MultipartFile] requiredFile (required): /// file to upload /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server - Future uploadFileWithRequiredFile(int petid, MultipartFile requiredfile, { String? additionalmetadata, }) async { - final response = await uploadFileWithRequiredFileWithHttpInfo(petid, requiredfile, additionalmetadata: additionalmetadata, ); + Future uploadFileWithRequiredFile(int petId, MultipartFile requiredFile, { String? additionalMetadata, }) async { + final response = await uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata: additionalMetadata, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/all_of_with_single_ref.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/all_of_with_single_ref.dart index 24890cf3f2e..0411ccc2b7a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/all_of_with_single_ref.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/all_of_with_single_ref.dart @@ -14,7 +14,7 @@ class AllOfWithSingleRef { /// Returns a new [AllOfWithSingleRef] instance. AllOfWithSingleRef({ this.username, - this.singlereftype, + this.singleRefType, }); /// @@ -31,21 +31,21 @@ class AllOfWithSingleRef { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - SingleRefType? singlereftype; + SingleRefType? singleRefType; @override bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef && other.username == username && - other.singlereftype == singlereftype; + other.singleRefType == singleRefType; @override int get hashCode => // ignore: unnecessary_parenthesis (username == null ? 0 : username!.hashCode) + - (singlereftype == null ? 0 : singlereftype!.hashCode); + (singleRefType == null ? 0 : singleRefType!.hashCode); @override - String toString() => 'AllOfWithSingleRef[username=$username, singlereftype=$singlereftype]'; + String toString() => 'AllOfWithSingleRef[username=$username, singleRefType=$singleRefType]'; Map toJson() { final json = {}; @@ -54,8 +54,8 @@ class AllOfWithSingleRef { } else { json[r'username'] = null; } - if (this.singlereftype != null) { - json[r'SingleRefType'] = this.singlereftype; + if (this.singleRefType != null) { + json[r'SingleRefType'] = this.singleRefType; } else { json[r'SingleRefType'] = null; } @@ -82,7 +82,7 @@ class AllOfWithSingleRef { return AllOfWithSingleRef( username: mapValueOfType(json, r'username'), - singlereftype: SingleRefType.fromJson(json[r'SingleRefType']), + singleRefType: SingleRefType.fromJson(json[r'SingleRefType']), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/animal.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/animal.dart index 6259e608264..a562a11becc 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/animal.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/animal.dart @@ -13,31 +13,31 @@ part of openapi.api; class Animal { /// Returns a new [Animal] instance. Animal({ - required this.classname, + required this.className, this.color = 'red', }); - String classname; + String className; String color; @override bool operator ==(Object other) => identical(this, other) || other is Animal && - other.classname == classname && + other.className == className && other.color == color; @override int get hashCode => // ignore: unnecessary_parenthesis - (classname.hashCode) + + (className.hashCode) + (color.hashCode); @override - String toString() => 'Animal[classname=$classname, color=$color]'; + String toString() => 'Animal[className=$className, color=$color]'; Map toJson() { final json = {}; - json[r'className'] = this.classname; + json[r'className'] = this.className; json[r'color'] = this.color; return json; } @@ -61,7 +61,7 @@ class Animal { }()); return Animal( - classname: mapValueOfType(json, r'className')!, + className: mapValueOfType(json, r'className')!, color: mapValueOfType(json, r'color') ?? 'red', ); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/array_of_array_of_number_only.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/array_of_array_of_number_only.dart index 0dc0ec4c734..04a9e99e986 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/array_of_array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/array_of_array_of_number_only.dart @@ -13,26 +13,26 @@ part of openapi.api; class ArrayOfArrayOfNumberOnly { /// Returns a new [ArrayOfArrayOfNumberOnly] instance. ArrayOfArrayOfNumberOnly({ - this.arrayarraynumber = const [], + this.arrayArrayNumber = const [], }); - List> arrayarraynumber; + List> arrayArrayNumber; @override bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly && - _deepEquality.equals(other.arrayarraynumber, arrayarraynumber); + _deepEquality.equals(other.arrayArrayNumber, arrayArrayNumber); @override int get hashCode => // ignore: unnecessary_parenthesis - (arrayarraynumber.hashCode); + (arrayArrayNumber.hashCode); @override - String toString() => 'ArrayOfArrayOfNumberOnly[arrayarraynumber=$arrayarraynumber]'; + String toString() => 'ArrayOfArrayOfNumberOnly[arrayArrayNumber=$arrayArrayNumber]'; Map toJson() { final json = {}; - json[r'ArrayArrayNumber'] = this.arrayarraynumber; + json[r'ArrayArrayNumber'] = this.arrayArrayNumber; return json; } @@ -55,7 +55,7 @@ class ArrayOfArrayOfNumberOnly { }()); return ArrayOfArrayOfNumberOnly( - arrayarraynumber: json[r'ArrayArrayNumber'] is List + arrayArrayNumber: json[r'ArrayArrayNumber'] is List ? (json[r'ArrayArrayNumber'] as List).map((e) => e == null ? const [] : (e as List).cast() ).toList() diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/array_of_number_only.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/array_of_number_only.dart index 6de38929b80..ccf33088a3e 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/array_of_number_only.dart @@ -13,26 +13,26 @@ part of openapi.api; class ArrayOfNumberOnly { /// Returns a new [ArrayOfNumberOnly] instance. ArrayOfNumberOnly({ - this.arraynumber = const [], + this.arrayNumber = const [], }); - List arraynumber; + List arrayNumber; @override bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly && - _deepEquality.equals(other.arraynumber, arraynumber); + _deepEquality.equals(other.arrayNumber, arrayNumber); @override int get hashCode => // ignore: unnecessary_parenthesis - (arraynumber.hashCode); + (arrayNumber.hashCode); @override - String toString() => 'ArrayOfNumberOnly[arraynumber=$arraynumber]'; + String toString() => 'ArrayOfNumberOnly[arrayNumber=$arrayNumber]'; Map toJson() { final json = {}; - json[r'ArrayNumber'] = this.arraynumber; + json[r'ArrayNumber'] = this.arrayNumber; return json; } @@ -55,7 +55,7 @@ class ArrayOfNumberOnly { }()); return ArrayOfNumberOnly( - arraynumber: json[r'ArrayNumber'] is Iterable + arrayNumber: json[r'ArrayNumber'] is Iterable ? (json[r'ArrayNumber'] as Iterable).cast().toList(growable: false) : const [], ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/capitalization.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/capitalization.dart index 4d613ce167d..0f525b45dd8 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/capitalization.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/capitalization.dart @@ -13,12 +13,12 @@ part of openapi.api; class Capitalization { /// Returns a new [Capitalization] instance. Capitalization({ - this.smallcamel, - this.capitalcamel, + this.smallCamel, + this.capitalCamel, this.smallSnake, this.capitalSnake, - this.scaEthFlowPoints, - this.attName, + this.sCAETHFlowPoints, + this.ATT_NAME, }); /// @@ -27,7 +27,7 @@ class Capitalization { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? smallcamel; + String? smallCamel; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -35,7 +35,7 @@ class Capitalization { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? capitalcamel; + String? capitalCamel; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -59,7 +59,7 @@ class Capitalization { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? scaEthFlowPoints; + String? sCAETHFlowPoints; /// Name of the pet /// @@ -68,39 +68,39 @@ class Capitalization { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? attName; + String? ATT_NAME; @override bool operator ==(Object other) => identical(this, other) || other is Capitalization && - other.smallcamel == smallcamel && - other.capitalcamel == capitalcamel && + other.smallCamel == smallCamel && + other.capitalCamel == capitalCamel && other.smallSnake == smallSnake && other.capitalSnake == capitalSnake && - other.scaEthFlowPoints == scaEthFlowPoints && - other.attName == attName; + other.sCAETHFlowPoints == sCAETHFlowPoints && + other.ATT_NAME == ATT_NAME; @override int get hashCode => // ignore: unnecessary_parenthesis - (smallcamel == null ? 0 : smallcamel!.hashCode) + - (capitalcamel == null ? 0 : capitalcamel!.hashCode) + + (smallCamel == null ? 0 : smallCamel!.hashCode) + + (capitalCamel == null ? 0 : capitalCamel!.hashCode) + (smallSnake == null ? 0 : smallSnake!.hashCode) + (capitalSnake == null ? 0 : capitalSnake!.hashCode) + - (scaEthFlowPoints == null ? 0 : scaEthFlowPoints!.hashCode) + - (attName == null ? 0 : attName!.hashCode); + (sCAETHFlowPoints == null ? 0 : sCAETHFlowPoints!.hashCode) + + (ATT_NAME == null ? 0 : ATT_NAME!.hashCode); @override - String toString() => 'Capitalization[smallcamel=$smallcamel, capitalcamel=$capitalcamel, smallSnake=$smallSnake, capitalSnake=$capitalSnake, scaEthFlowPoints=$scaEthFlowPoints, attName=$attName]'; + String toString() => 'Capitalization[smallCamel=$smallCamel, capitalCamel=$capitalCamel, smallSnake=$smallSnake, capitalSnake=$capitalSnake, sCAETHFlowPoints=$sCAETHFlowPoints, ATT_NAME=$ATT_NAME]'; Map toJson() { final json = {}; - if (this.smallcamel != null) { - json[r'smallCamel'] = this.smallcamel; + if (this.smallCamel != null) { + json[r'smallCamel'] = this.smallCamel; } else { json[r'smallCamel'] = null; } - if (this.capitalcamel != null) { - json[r'CapitalCamel'] = this.capitalcamel; + if (this.capitalCamel != null) { + json[r'CapitalCamel'] = this.capitalCamel; } else { json[r'CapitalCamel'] = null; } @@ -114,13 +114,13 @@ class Capitalization { } else { json[r'Capital_Snake'] = null; } - if (this.scaEthFlowPoints != null) { - json[r'SCA_ETH_Flow_Points'] = this.scaEthFlowPoints; + if (this.sCAETHFlowPoints != null) { + json[r'SCA_ETH_Flow_Points'] = this.sCAETHFlowPoints; } else { json[r'SCA_ETH_Flow_Points'] = null; } - if (this.attName != null) { - json[r'ATT_NAME'] = this.attName; + if (this.ATT_NAME != null) { + json[r'ATT_NAME'] = this.ATT_NAME; } else { json[r'ATT_NAME'] = null; } @@ -146,12 +146,12 @@ class Capitalization { }()); return Capitalization( - smallcamel: mapValueOfType(json, r'smallCamel'), - capitalcamel: mapValueOfType(json, r'CapitalCamel'), + smallCamel: mapValueOfType(json, r'smallCamel'), + capitalCamel: mapValueOfType(json, r'CapitalCamel'), smallSnake: mapValueOfType(json, r'small_Snake'), capitalSnake: mapValueOfType(json, r'Capital_Snake'), - scaEthFlowPoints: mapValueOfType(json, r'SCA_ETH_Flow_Points'), - attName: mapValueOfType(json, r'ATT_NAME'), + sCAETHFlowPoints: mapValueOfType(json, r'SCA_ETH_Flow_Points'), + ATT_NAME: mapValueOfType(json, r'ATT_NAME'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/cat.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/cat.dart index ed6fb49e1a9..398fd852528 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/cat.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/cat.dart @@ -13,12 +13,12 @@ part of openapi.api; class Cat { /// Returns a new [Cat] instance. Cat({ - required this.classname, + required this.className, this.color = 'red', this.declawed, }); - String classname; + String className; String color; @@ -32,23 +32,23 @@ class Cat { @override bool operator ==(Object other) => identical(this, other) || other is Cat && - other.classname == classname && + other.className == className && other.color == color && other.declawed == declawed; @override int get hashCode => // ignore: unnecessary_parenthesis - (classname.hashCode) + + (className.hashCode) + (color.hashCode) + (declawed == null ? 0 : declawed!.hashCode); @override - String toString() => 'Cat[classname=$classname, color=$color, declawed=$declawed]'; + String toString() => 'Cat[className=$className, color=$color, declawed=$declawed]'; Map toJson() { final json = {}; - json[r'className'] = this.classname; + json[r'className'] = this.className; json[r'color'] = this.color; if (this.declawed != null) { json[r'declawed'] = this.declawed; @@ -77,7 +77,7 @@ class Cat { }()); return Cat( - classname: mapValueOfType(json, r'className')!, + className: mapValueOfType(json, r'className')!, color: mapValueOfType(json, r'color') ?? 'red', declawed: mapValueOfType(json, r'declawed'), ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/child_with_nullable.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/child_with_nullable.dart index 8d1041dac9d..2092b2c7684 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/child_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/child_with_nullable.dart @@ -14,13 +14,13 @@ class ChildWithNullable { /// Returns a new [ChildWithNullable] instance. ChildWithNullable({ this.type, - this.nullableproperty, - this.otherproperty, + this.nullableProperty, + this.otherProperty, }); ChildWithNullableTypeEnum? type; - String? nullableproperty; + String? nullableProperty; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -28,23 +28,23 @@ class ChildWithNullable { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? otherproperty; + String? otherProperty; @override bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable && other.type == type && - other.nullableproperty == nullableproperty && - other.otherproperty == otherproperty; + other.nullableProperty == nullableProperty && + other.otherProperty == otherProperty; @override int get hashCode => // ignore: unnecessary_parenthesis (type == null ? 0 : type!.hashCode) + - (nullableproperty == null ? 0 : nullableproperty!.hashCode) + - (otherproperty == null ? 0 : otherproperty!.hashCode); + (nullableProperty == null ? 0 : nullableProperty!.hashCode) + + (otherProperty == null ? 0 : otherProperty!.hashCode); @override - String toString() => 'ChildWithNullable[type=$type, nullableproperty=$nullableproperty, otherproperty=$otherproperty]'; + String toString() => 'ChildWithNullable[type=$type, nullableProperty=$nullableProperty, otherProperty=$otherProperty]'; Map toJson() { final json = {}; @@ -53,13 +53,13 @@ class ChildWithNullable { } else { json[r'type'] = null; } - if (this.nullableproperty != null) { - json[r'nullableProperty'] = this.nullableproperty; + if (this.nullableProperty != null) { + json[r'nullableProperty'] = this.nullableProperty; } else { json[r'nullableProperty'] = null; } - if (this.otherproperty != null) { - json[r'otherProperty'] = this.otherproperty; + if (this.otherProperty != null) { + json[r'otherProperty'] = this.otherProperty; } else { json[r'otherProperty'] = null; } @@ -86,8 +86,8 @@ class ChildWithNullable { return ChildWithNullable( type: ChildWithNullableTypeEnum.fromJson(json[r'type']), - nullableproperty: mapValueOfType(json, r'nullableProperty'), - otherproperty: mapValueOfType(json, r'otherProperty'), + nullableProperty: mapValueOfType(json, r'nullableProperty'), + otherProperty: mapValueOfType(json, r'otherProperty'), ); } return null; @@ -151,11 +151,11 @@ class ChildWithNullableTypeEnum { String toJson() => value; - static const childwithnullable = ChildWithNullableTypeEnum._(r'ChildWithNullable'); + static const childWithNullable = ChildWithNullableTypeEnum._(r'ChildWithNullable'); /// List of all possible values in this [enum][ChildWithNullableTypeEnum]. static const values = [ - childwithnullable, + childWithNullable, ]; static ChildWithNullableTypeEnum? fromJson(dynamic value) => ChildWithNullableTypeEnumTypeTransformer().decode(value); @@ -194,7 +194,7 @@ class ChildWithNullableTypeEnumTypeTransformer { ChildWithNullableTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case r'ChildWithNullable': return ChildWithNullableTypeEnum.childwithnullable; + case r'ChildWithNullable': return ChildWithNullableTypeEnum.childWithNullable; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/dog.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/dog.dart index 227bd1b5577..d7677510b91 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/dog.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/dog.dart @@ -13,12 +13,12 @@ part of openapi.api; class Dog { /// Returns a new [Dog] instance. Dog({ - required this.classname, + required this.className, this.color = 'red', this.breed, }); - String classname; + String className; String color; @@ -32,23 +32,23 @@ class Dog { @override bool operator ==(Object other) => identical(this, other) || other is Dog && - other.classname == classname && + other.className == className && other.color == color && other.breed == breed; @override int get hashCode => // ignore: unnecessary_parenthesis - (classname.hashCode) + + (className.hashCode) + (color.hashCode) + (breed == null ? 0 : breed!.hashCode); @override - String toString() => 'Dog[classname=$classname, color=$color, breed=$breed]'; + String toString() => 'Dog[className=$className, color=$color, breed=$breed]'; Map toJson() { final json = {}; - json[r'className'] = this.classname; + json[r'className'] = this.className; json[r'color'] = this.color; if (this.breed != null) { json[r'breed'] = this.breed; @@ -77,7 +77,7 @@ class Dog { }()); return Dog( - classname: mapValueOfType(json, r'className')!, + className: mapValueOfType(json, r'className')!, color: mapValueOfType(json, r'color') ?? 'red', breed: mapValueOfType(json, r'breed'), ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_class.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_class.dart index 898da969de8..71872cf0165 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_class.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_class.dart @@ -25,13 +25,13 @@ class EnumClass { static const abc = EnumClass._(r'_abc'); static const efg = EnumClass._(r'-efg'); - static const leftParenthesisXyzrightParenthesis = EnumClass._(r'(xyz)'); + static const leftParenthesisXyzRightParenthesis = EnumClass._(r'(xyz)'); /// List of all possible values in this [enum][EnumClass]. static const values = [ abc, efg, - leftParenthesisXyzrightParenthesis, + leftParenthesisXyzRightParenthesis, ]; static EnumClass? fromJson(dynamic value) => EnumClassTypeTransformer().decode(value); @@ -72,7 +72,7 @@ class EnumClassTypeTransformer { switch (data) { case r'_abc': return EnumClass.abc; case r'-efg': return EnumClass.efg; - case r'(xyz)': return EnumClass.leftParenthesisXyzrightParenthesis; + case r'(xyz)': return EnumClass.leftParenthesisXyzRightParenthesis; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_test.dart index 898fae87bff..04ee7808fc0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_test.dart @@ -17,10 +17,10 @@ class EnumTest { required this.enumStringRequired, this.enumInteger, this.enumNumber, - this.outerenum, - this.outerenuminteger, - this.outerenumdefaultvalue, - this.outerenumintegerdefaultvalue, + this.outerEnum, + this.outerEnumInteger, + this.outerEnumDefaultValue, + this.outerEnumIntegerDefaultValue, }); EnumTestEnumStringEnum? enumString; @@ -31,7 +31,7 @@ class EnumTest { EnumTestEnumNumberEnum? enumNumber; - OuterEnum? outerenum; + OuterEnum? outerEnum; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -39,7 +39,7 @@ class EnumTest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - OuterEnumInteger? outerenuminteger; + OuterEnumInteger? outerEnumInteger; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -47,7 +47,7 @@ class EnumTest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - OuterEnumDefaultValue? outerenumdefaultvalue; + OuterEnumDefaultValue? outerEnumDefaultValue; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -55,7 +55,7 @@ class EnumTest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - OuterEnumIntegerDefaultValue? outerenumintegerdefaultvalue; + OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue; @override bool operator ==(Object other) => identical(this, other) || other is EnumTest && @@ -63,10 +63,10 @@ class EnumTest { other.enumStringRequired == enumStringRequired && other.enumInteger == enumInteger && other.enumNumber == enumNumber && - other.outerenum == outerenum && - other.outerenuminteger == outerenuminteger && - other.outerenumdefaultvalue == outerenumdefaultvalue && - other.outerenumintegerdefaultvalue == outerenumintegerdefaultvalue; + other.outerEnum == outerEnum && + other.outerEnumInteger == outerEnumInteger && + other.outerEnumDefaultValue == outerEnumDefaultValue && + other.outerEnumIntegerDefaultValue == outerEnumIntegerDefaultValue; @override int get hashCode => @@ -75,13 +75,13 @@ class EnumTest { (enumStringRequired.hashCode) + (enumInteger == null ? 0 : enumInteger!.hashCode) + (enumNumber == null ? 0 : enumNumber!.hashCode) + - (outerenum == null ? 0 : outerenum!.hashCode) + - (outerenuminteger == null ? 0 : outerenuminteger!.hashCode) + - (outerenumdefaultvalue == null ? 0 : outerenumdefaultvalue!.hashCode) + - (outerenumintegerdefaultvalue == null ? 0 : outerenumintegerdefaultvalue!.hashCode); + (outerEnum == null ? 0 : outerEnum!.hashCode) + + (outerEnumInteger == null ? 0 : outerEnumInteger!.hashCode) + + (outerEnumDefaultValue == null ? 0 : outerEnumDefaultValue!.hashCode) + + (outerEnumIntegerDefaultValue == null ? 0 : outerEnumIntegerDefaultValue!.hashCode); @override - String toString() => 'EnumTest[enumString=$enumString, enumStringRequired=$enumStringRequired, enumInteger=$enumInteger, enumNumber=$enumNumber, outerenum=$outerenum, outerenuminteger=$outerenuminteger, outerenumdefaultvalue=$outerenumdefaultvalue, outerenumintegerdefaultvalue=$outerenumintegerdefaultvalue]'; + String toString() => 'EnumTest[enumString=$enumString, enumStringRequired=$enumStringRequired, enumInteger=$enumInteger, enumNumber=$enumNumber, outerEnum=$outerEnum, outerEnumInteger=$outerEnumInteger, outerEnumDefaultValue=$outerEnumDefaultValue, outerEnumIntegerDefaultValue=$outerEnumIntegerDefaultValue]'; Map toJson() { final json = {}; @@ -101,23 +101,23 @@ class EnumTest { } else { json[r'enum_number'] = null; } - if (this.outerenum != null) { - json[r'outerEnum'] = this.outerenum; + if (this.outerEnum != null) { + json[r'outerEnum'] = this.outerEnum; } else { json[r'outerEnum'] = null; } - if (this.outerenuminteger != null) { - json[r'outerEnumInteger'] = this.outerenuminteger; + if (this.outerEnumInteger != null) { + json[r'outerEnumInteger'] = this.outerEnumInteger; } else { json[r'outerEnumInteger'] = null; } - if (this.outerenumdefaultvalue != null) { - json[r'outerEnumDefaultValue'] = this.outerenumdefaultvalue; + if (this.outerEnumDefaultValue != null) { + json[r'outerEnumDefaultValue'] = this.outerEnumDefaultValue; } else { json[r'outerEnumDefaultValue'] = null; } - if (this.outerenumintegerdefaultvalue != null) { - json[r'outerEnumIntegerDefaultValue'] = this.outerenumintegerdefaultvalue; + if (this.outerEnumIntegerDefaultValue != null) { + json[r'outerEnumIntegerDefaultValue'] = this.outerEnumIntegerDefaultValue; } else { json[r'outerEnumIntegerDefaultValue'] = null; } @@ -147,10 +147,10 @@ class EnumTest { enumStringRequired: EnumTestEnumStringRequiredEnum.fromJson(json[r'enum_string_required'])!, enumInteger: EnumTestEnumIntegerEnum.fromJson(json[r'enum_integer']), enumNumber: EnumTestEnumNumberEnum.fromJson(json[r'enum_number']), - outerenum: OuterEnum.fromJson(json[r'outerEnum']), - outerenuminteger: OuterEnumInteger.fromJson(json[r'outerEnumInteger']), - outerenumdefaultvalue: OuterEnumDefaultValue.fromJson(json[r'outerEnumDefaultValue']), - outerenumintegerdefaultvalue: OuterEnumIntegerDefaultValue.fromJson(json[r'outerEnumIntegerDefaultValue']), + outerEnum: OuterEnum.fromJson(json[r'outerEnum']), + outerEnumInteger: OuterEnumInteger.fromJson(json[r'outerEnumInteger']), + outerEnumDefaultValue: OuterEnumDefaultValue.fromJson(json[r'outerEnumDefaultValue']), + outerEnumIntegerDefaultValue: OuterEnumIntegerDefaultValue.fromJson(json[r'outerEnumIntegerDefaultValue']), ); } return null; @@ -215,13 +215,13 @@ class EnumTestEnumStringEnum { String toJson() => value; - static const upper = EnumTestEnumStringEnum._(r'UPPER'); + static const UPPER = EnumTestEnumStringEnum._(r'UPPER'); static const lower = EnumTestEnumStringEnum._(r'lower'); static const empty = EnumTestEnumStringEnum._(r''); /// List of all possible values in this [enum][EnumTestEnumStringEnum]. static const values = [ - upper, + UPPER, lower, empty, ]; @@ -262,7 +262,7 @@ class EnumTestEnumStringEnumTypeTransformer { EnumTestEnumStringEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case r'UPPER': return EnumTestEnumStringEnum.upper; + case r'UPPER': return EnumTestEnumStringEnum.UPPER; case r'lower': return EnumTestEnumStringEnum.lower; case r'': return EnumTestEnumStringEnum.empty; default: @@ -292,13 +292,13 @@ class EnumTestEnumStringRequiredEnum { String toJson() => value; - static const upper = EnumTestEnumStringRequiredEnum._(r'UPPER'); + static const UPPER = EnumTestEnumStringRequiredEnum._(r'UPPER'); static const lower = EnumTestEnumStringRequiredEnum._(r'lower'); static const empty = EnumTestEnumStringRequiredEnum._(r''); /// List of all possible values in this [enum][EnumTestEnumStringRequiredEnum]. static const values = [ - upper, + UPPER, lower, empty, ]; @@ -339,7 +339,7 @@ class EnumTestEnumStringRequiredEnumTypeTransformer { EnumTestEnumStringRequiredEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case r'UPPER': return EnumTestEnumStringRequiredEnum.upper; + case r'UPPER': return EnumTestEnumStringRequiredEnum.UPPER; case r'lower': return EnumTestEnumStringRequiredEnum.lower; case r'': return EnumTestEnumStringRequiredEnum.empty; default: @@ -443,13 +443,13 @@ class EnumTestEnumNumberEnum { double toJson() => value; - static const number1period1 = EnumTestEnumNumberEnum._('1.1'); - static const numberNegative1period2 = EnumTestEnumNumberEnum._('-1.2'); + static const number1Period1 = EnumTestEnumNumberEnum._('1.1'); + static const numberNegative1Period2 = EnumTestEnumNumberEnum._('-1.2'); /// List of all possible values in this [enum][EnumTestEnumNumberEnum]. static const values = [ - number1period1, - numberNegative1period2, + number1Period1, + numberNegative1Period2, ]; static EnumTestEnumNumberEnum? fromJson(dynamic value) => EnumTestEnumNumberEnumTypeTransformer().decode(value); @@ -488,8 +488,8 @@ class EnumTestEnumNumberEnumTypeTransformer { EnumTestEnumNumberEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case '1.1': return EnumTestEnumNumberEnum.number1period1; - case '-1.2': return EnumTestEnumNumberEnum.numberNegative1period2; + case '1.1': return EnumTestEnumNumberEnum.number1Period1; + case '-1.2': return EnumTestEnumNumberEnum.numberNegative1Period2; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/fake_big_decimal_map200_response.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/fake_big_decimal_map200_response.dart index 249f9c2401d..55de1b12e98 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/fake_big_decimal_map200_response.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/fake_big_decimal_map200_response.dart @@ -13,8 +13,8 @@ part of openapi.api; class FakeBigDecimalMap200Response { /// Returns a new [FakeBigDecimalMap200Response] instance. FakeBigDecimalMap200Response({ - this.someid, - this.somemap = const {}, + this.someId, + this.someMap = const {}, }); /// @@ -23,32 +23,32 @@ class FakeBigDecimalMap200Response { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - num? someid; + num? someId; - Map somemap; + Map someMap; @override bool operator ==(Object other) => identical(this, other) || other is FakeBigDecimalMap200Response && - other.someid == someid && - _deepEquality.equals(other.somemap, somemap); + other.someId == someId && + _deepEquality.equals(other.someMap, someMap); @override int get hashCode => // ignore: unnecessary_parenthesis - (someid == null ? 0 : someid!.hashCode) + - (somemap.hashCode); + (someId == null ? 0 : someId!.hashCode) + + (someMap.hashCode); @override - String toString() => 'FakeBigDecimalMap200Response[someid=$someid, somemap=$somemap]'; + String toString() => 'FakeBigDecimalMap200Response[someId=$someId, someMap=$someMap]'; Map toJson() { final json = {}; - if (this.someid != null) { - json[r'someId'] = this.someid; + if (this.someId != null) { + json[r'someId'] = this.someId; } else { json[r'someId'] = null; } - json[r'someMap'] = this.somemap; + json[r'someMap'] = this.someMap; return json; } @@ -71,8 +71,8 @@ class FakeBigDecimalMap200Response { }()); return FakeBigDecimalMap200Response( - someid: num.parse('${json[r'someId']}'), - somemap: mapCastOfType(json, r'someMap') ?? const {}, + someId: num.parse('${json[r'someId']}'), + someMap: mapCastOfType(json, r'someMap') ?? const {}, ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/format_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/format_test.dart index 957a6b7c041..b0edc2e38e1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/format_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/format_test.dart @@ -24,7 +24,7 @@ class FormatTest { required this.byte, this.binary, required this.date, - this.datetime, + this.dateTime, this.uuid, required this.password, this.patternWithDigits, @@ -117,7 +117,7 @@ class FormatTest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DateTime? datetime; + DateTime? dateTime; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -160,7 +160,7 @@ class FormatTest { other.byte == byte && other.binary == binary && other.date == date && - other.datetime == datetime && + other.dateTime == dateTime && other.uuid == uuid && other.password == password && other.patternWithDigits == patternWithDigits && @@ -180,14 +180,14 @@ class FormatTest { (byte.hashCode) + (binary == null ? 0 : binary!.hashCode) + (date.hashCode) + - (datetime == null ? 0 : datetime!.hashCode) + + (dateTime == null ? 0 : dateTime!.hashCode) + (uuid == null ? 0 : uuid!.hashCode) + (password.hashCode) + (patternWithDigits == null ? 0 : patternWithDigits!.hashCode) + (patternWithDigitsAndDelimiter == null ? 0 : patternWithDigitsAndDelimiter!.hashCode); @override - String toString() => 'FormatTest[integer=$integer, int32=$int32, int64=$int64, number=$number, float=$float, double_=$double_, decimal=$decimal, string=$string, byte=$byte, binary=$binary, date=$date, datetime=$datetime, uuid=$uuid, password=$password, patternWithDigits=$patternWithDigits, patternWithDigitsAndDelimiter=$patternWithDigitsAndDelimiter]'; + String toString() => 'FormatTest[integer=$integer, int32=$int32, int64=$int64, number=$number, float=$float, double_=$double_, decimal=$decimal, string=$string, byte=$byte, binary=$binary, date=$date, dateTime=$dateTime, uuid=$uuid, password=$password, patternWithDigits=$patternWithDigits, patternWithDigitsAndDelimiter=$patternWithDigitsAndDelimiter]'; Map toJson() { final json = {}; @@ -234,8 +234,8 @@ class FormatTest { json[r'binary'] = null; } json[r'date'] = _dateFormatter.format(this.date.toUtc()); - if (this.datetime != null) { - json[r'dateTime'] = this.datetime!.toUtc().toIso8601String(); + if (this.dateTime != null) { + json[r'dateTime'] = this.dateTime!.toUtc().toIso8601String(); } else { json[r'dateTime'] = null; } @@ -288,7 +288,7 @@ class FormatTest { byte: mapValueOfType(json, r'byte')!, binary: null, // No support for decoding binary content from JSON date: mapDateTime(json, r'date', r'')!, - datetime: mapDateTime(json, r'dateTime', r''), + dateTime: mapDateTime(json, r'dateTime', r''), uuid: mapValueOfType(json, r'uuid'), password: mapValueOfType(json, r'password')!, patternWithDigits: mapValueOfType(json, r'pattern_with_digits'), diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/health_check_result.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/health_check_result.dart index bf69f5c1360..b3a3f7cb8e0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/health_check_result.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/health_check_result.dart @@ -13,27 +13,27 @@ part of openapi.api; class HealthCheckResult { /// Returns a new [HealthCheckResult] instance. HealthCheckResult({ - this.nullablemessage, + this.nullableMessage, }); - String? nullablemessage; + String? nullableMessage; @override bool operator ==(Object other) => identical(this, other) || other is HealthCheckResult && - other.nullablemessage == nullablemessage; + other.nullableMessage == nullableMessage; @override int get hashCode => // ignore: unnecessary_parenthesis - (nullablemessage == null ? 0 : nullablemessage!.hashCode); + (nullableMessage == null ? 0 : nullableMessage!.hashCode); @override - String toString() => 'HealthCheckResult[nullablemessage=$nullablemessage]'; + String toString() => 'HealthCheckResult[nullableMessage=$nullableMessage]'; Map toJson() { final json = {}; - if (this.nullablemessage != null) { - json[r'NullableMessage'] = this.nullablemessage; + if (this.nullableMessage != null) { + json[r'NullableMessage'] = this.nullableMessage; } else { json[r'NullableMessage'] = null; } @@ -59,7 +59,7 @@ class HealthCheckResult { }()); return HealthCheckResult( - nullablemessage: mapValueOfType(json, r'NullableMessage'), + nullableMessage: mapValueOfType(json, r'NullableMessage'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/map_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/map_test.dart index a0a7241e688..e55aa93d905 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/map_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/map_test.dart @@ -140,12 +140,12 @@ class MapTestMapOfEnumStringEnum { String toJson() => value; - static const upper = MapTestMapOfEnumStringEnum._(r'UPPER'); + static const UPPER = MapTestMapOfEnumStringEnum._(r'UPPER'); static const lower = MapTestMapOfEnumStringEnum._(r'lower'); /// List of all possible values in this [enum][MapTestMapOfEnumStringEnum]. static const values = [ - upper, + UPPER, lower, ]; @@ -185,7 +185,7 @@ class MapTestMapOfEnumStringEnumTypeTransformer { MapTestMapOfEnumStringEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case r'UPPER': return MapTestMapOfEnumStringEnum.upper; + case r'UPPER': return MapTestMapOfEnumStringEnum.UPPER; case r'lower': return MapTestMapOfEnumStringEnum.lower; default: if (!allowNull) { diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/mixed_properties_and_additional_properties_class.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/mixed_properties_and_additional_properties_class.dart index 7a5b5ad0b05..edc224b7924 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/mixed_properties_and_additional_properties_class.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/mixed_properties_and_additional_properties_class.dart @@ -14,7 +14,7 @@ class MixedPropertiesAndAdditionalPropertiesClass { /// Returns a new [MixedPropertiesAndAdditionalPropertiesClass] instance. MixedPropertiesAndAdditionalPropertiesClass({ this.uuid, - this.datetime, + this.dateTime, this.map = const {}, }); @@ -32,25 +32,25 @@ class MixedPropertiesAndAdditionalPropertiesClass { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DateTime? datetime; + DateTime? dateTime; Map map; @override bool operator ==(Object other) => identical(this, other) || other is MixedPropertiesAndAdditionalPropertiesClass && other.uuid == uuid && - other.datetime == datetime && + other.dateTime == dateTime && _deepEquality.equals(other.map, map); @override int get hashCode => // ignore: unnecessary_parenthesis (uuid == null ? 0 : uuid!.hashCode) + - (datetime == null ? 0 : datetime!.hashCode) + + (dateTime == null ? 0 : dateTime!.hashCode) + (map.hashCode); @override - String toString() => 'MixedPropertiesAndAdditionalPropertiesClass[uuid=$uuid, datetime=$datetime, map=$map]'; + String toString() => 'MixedPropertiesAndAdditionalPropertiesClass[uuid=$uuid, dateTime=$dateTime, map=$map]'; Map toJson() { final json = {}; @@ -59,8 +59,8 @@ class MixedPropertiesAndAdditionalPropertiesClass { } else { json[r'uuid'] = null; } - if (this.datetime != null) { - json[r'dateTime'] = this.datetime!.toUtc().toIso8601String(); + if (this.dateTime != null) { + json[r'dateTime'] = this.dateTime!.toUtc().toIso8601String(); } else { json[r'dateTime'] = null; } @@ -88,7 +88,7 @@ class MixedPropertiesAndAdditionalPropertiesClass { return MixedPropertiesAndAdditionalPropertiesClass( uuid: mapValueOfType(json, r'uuid'), - datetime: mapDateTime(json, r'dateTime', r''), + dateTime: mapDateTime(json, r'dateTime', r''), map: Animal.mapFromJson(json[r'map']), ); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/model_file.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/model_file.dart index c93f3d57f55..5183e0f98e4 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/model_file.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/model_file.dart @@ -13,7 +13,7 @@ part of openapi.api; class ModelFile { /// Returns a new [ModelFile] instance. ModelFile({ - this.sourceuri, + this.sourceURI, }); /// Test capitalization @@ -23,24 +23,24 @@ class ModelFile { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? sourceuri; + String? sourceURI; @override bool operator ==(Object other) => identical(this, other) || other is ModelFile && - other.sourceuri == sourceuri; + other.sourceURI == sourceURI; @override int get hashCode => // ignore: unnecessary_parenthesis - (sourceuri == null ? 0 : sourceuri!.hashCode); + (sourceURI == null ? 0 : sourceURI!.hashCode); @override - String toString() => 'ModelFile[sourceuri=$sourceuri]'; + String toString() => 'ModelFile[sourceURI=$sourceURI]'; Map toJson() { final json = {}; - if (this.sourceuri != null) { - json[r'sourceURI'] = this.sourceuri; + if (this.sourceURI != null) { + json[r'sourceURI'] = this.sourceURI; } else { json[r'sourceURI'] = null; } @@ -66,7 +66,7 @@ class ModelFile { }()); return ModelFile( - sourceuri: mapValueOfType(json, r'sourceURI'), + sourceURI: mapValueOfType(json, r'sourceURI'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/number_only.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/number_only.dart index c3942c6fdc8..a27a5682533 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/number_only.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/number_only.dart @@ -13,7 +13,7 @@ part of openapi.api; class NumberOnly { /// Returns a new [NumberOnly] instance. NumberOnly({ - this.justnumber, + this.justNumber, }); /// @@ -22,24 +22,24 @@ class NumberOnly { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - num? justnumber; + num? justNumber; @override bool operator ==(Object other) => identical(this, other) || other is NumberOnly && - other.justnumber == justnumber; + other.justNumber == justNumber; @override int get hashCode => // ignore: unnecessary_parenthesis - (justnumber == null ? 0 : justnumber!.hashCode); + (justNumber == null ? 0 : justNumber!.hashCode); @override - String toString() => 'NumberOnly[justnumber=$justnumber]'; + String toString() => 'NumberOnly[justNumber=$justNumber]'; Map toJson() { final json = {}; - if (this.justnumber != null) { - json[r'JustNumber'] = this.justnumber; + if (this.justNumber != null) { + json[r'JustNumber'] = this.justNumber; } else { json[r'JustNumber'] = null; } @@ -65,7 +65,7 @@ class NumberOnly { }()); return NumberOnly( - justnumber: num.parse('${json[r'JustNumber']}'), + justNumber: num.parse('${json[r'JustNumber']}'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/object_with_deprecated_fields.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/object_with_deprecated_fields.dart index 7e2c588d7fe..5c7386821aa 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/object_with_deprecated_fields.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/object_with_deprecated_fields.dart @@ -15,7 +15,7 @@ class ObjectWithDeprecatedFields { ObjectWithDeprecatedFields({ this.uuid, this.id, - this.deprecatedref, + this.deprecatedRef, this.bars = const [], }); @@ -41,7 +41,7 @@ class ObjectWithDeprecatedFields { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DeprecatedObject? deprecatedref; + DeprecatedObject? deprecatedRef; List bars; @@ -49,7 +49,7 @@ class ObjectWithDeprecatedFields { bool operator ==(Object other) => identical(this, other) || other is ObjectWithDeprecatedFields && other.uuid == uuid && other.id == id && - other.deprecatedref == deprecatedref && + other.deprecatedRef == deprecatedRef && _deepEquality.equals(other.bars, bars); @override @@ -57,11 +57,11 @@ class ObjectWithDeprecatedFields { // ignore: unnecessary_parenthesis (uuid == null ? 0 : uuid!.hashCode) + (id == null ? 0 : id!.hashCode) + - (deprecatedref == null ? 0 : deprecatedref!.hashCode) + + (deprecatedRef == null ? 0 : deprecatedRef!.hashCode) + (bars.hashCode); @override - String toString() => 'ObjectWithDeprecatedFields[uuid=$uuid, id=$id, deprecatedref=$deprecatedref, bars=$bars]'; + String toString() => 'ObjectWithDeprecatedFields[uuid=$uuid, id=$id, deprecatedRef=$deprecatedRef, bars=$bars]'; Map toJson() { final json = {}; @@ -75,8 +75,8 @@ class ObjectWithDeprecatedFields { } else { json[r'id'] = null; } - if (this.deprecatedref != null) { - json[r'deprecatedRef'] = this.deprecatedref; + if (this.deprecatedRef != null) { + json[r'deprecatedRef'] = this.deprecatedRef; } else { json[r'deprecatedRef'] = null; } @@ -105,7 +105,7 @@ class ObjectWithDeprecatedFields { return ObjectWithDeprecatedFields( uuid: mapValueOfType(json, r'uuid'), id: num.parse('${json[r'id']}'), - deprecatedref: DeprecatedObject.fromJson(json[r'deprecatedRef']), + deprecatedRef: DeprecatedObject.fromJson(json[r'deprecatedRef']), bars: json[r'bars'] is Iterable ? (json[r'bars'] as Iterable).cast().toList(growable: false) : const [], diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/order.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/order.dart index d9c4cc9887a..bc591de9fab 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/order.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/order.dart @@ -14,9 +14,9 @@ class Order { /// Returns a new [Order] instance. Order({ this.id, - this.petid, + this.petId, this.quantity, - this.shipdate, + this.shipDate, this.status, this.complete = false, }); @@ -35,7 +35,7 @@ class Order { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? petid; + int? petId; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -51,7 +51,7 @@ class Order { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DateTime? shipdate; + DateTime? shipDate; /// Order Status OrderStatusEnum? status; @@ -61,9 +61,9 @@ class Order { @override bool operator ==(Object other) => identical(this, other) || other is Order && other.id == id && - other.petid == petid && + other.petId == petId && other.quantity == quantity && - other.shipdate == shipdate && + other.shipDate == shipDate && other.status == status && other.complete == complete; @@ -71,14 +71,14 @@ class Order { int get hashCode => // ignore: unnecessary_parenthesis (id == null ? 0 : id!.hashCode) + - (petid == null ? 0 : petid!.hashCode) + + (petId == null ? 0 : petId!.hashCode) + (quantity == null ? 0 : quantity!.hashCode) + - (shipdate == null ? 0 : shipdate!.hashCode) + + (shipDate == null ? 0 : shipDate!.hashCode) + (status == null ? 0 : status!.hashCode) + (complete.hashCode); @override - String toString() => 'Order[id=$id, petid=$petid, quantity=$quantity, shipdate=$shipdate, status=$status, complete=$complete]'; + String toString() => 'Order[id=$id, petId=$petId, quantity=$quantity, shipDate=$shipDate, status=$status, complete=$complete]'; Map toJson() { final json = {}; @@ -87,8 +87,8 @@ class Order { } else { json[r'id'] = null; } - if (this.petid != null) { - json[r'petId'] = this.petid; + if (this.petId != null) { + json[r'petId'] = this.petId; } else { json[r'petId'] = null; } @@ -97,8 +97,8 @@ class Order { } else { json[r'quantity'] = null; } - if (this.shipdate != null) { - json[r'shipDate'] = this.shipdate!.toUtc().toIso8601String(); + if (this.shipDate != null) { + json[r'shipDate'] = this.shipDate!.toUtc().toIso8601String(); } else { json[r'shipDate'] = null; } @@ -131,9 +131,9 @@ class Order { return Order( id: mapValueOfType(json, r'id'), - petid: mapValueOfType(json, r'petId'), + petId: mapValueOfType(json, r'petId'), quantity: mapValueOfType(json, r'quantity'), - shipdate: mapDateTime(json, r'shipDate', r''), + shipDate: mapDateTime(json, r'shipDate', r''), status: OrderStatusEnum.fromJson(json[r'status']), complete: mapValueOfType(json, r'complete') ?? false, ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/parent_with_nullable.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/parent_with_nullable.dart index 5fc3c16cd56..219967ad59f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/parent_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/parent_with_nullable.dart @@ -14,26 +14,26 @@ class ParentWithNullable { /// Returns a new [ParentWithNullable] instance. ParentWithNullable({ this.type, - this.nullableproperty, + this.nullableProperty, }); ParentWithNullableTypeEnum? type; - String? nullableproperty; + String? nullableProperty; @override bool operator ==(Object other) => identical(this, other) || other is ParentWithNullable && other.type == type && - other.nullableproperty == nullableproperty; + other.nullableProperty == nullableProperty; @override int get hashCode => // ignore: unnecessary_parenthesis (type == null ? 0 : type!.hashCode) + - (nullableproperty == null ? 0 : nullableproperty!.hashCode); + (nullableProperty == null ? 0 : nullableProperty!.hashCode); @override - String toString() => 'ParentWithNullable[type=$type, nullableproperty=$nullableproperty]'; + String toString() => 'ParentWithNullable[type=$type, nullableProperty=$nullableProperty]'; Map toJson() { final json = {}; @@ -42,8 +42,8 @@ class ParentWithNullable { } else { json[r'type'] = null; } - if (this.nullableproperty != null) { - json[r'nullableProperty'] = this.nullableproperty; + if (this.nullableProperty != null) { + json[r'nullableProperty'] = this.nullableProperty; } else { json[r'nullableProperty'] = null; } @@ -70,7 +70,7 @@ class ParentWithNullable { return ParentWithNullable( type: ParentWithNullableTypeEnum.fromJson(json[r'type']), - nullableproperty: mapValueOfType(json, r'nullableProperty'), + nullableProperty: mapValueOfType(json, r'nullableProperty'), ); } return null; @@ -134,11 +134,11 @@ class ParentWithNullableTypeEnum { String toJson() => value; - static const childwithnullable = ParentWithNullableTypeEnum._(r'ChildWithNullable'); + static const childWithNullable = ParentWithNullableTypeEnum._(r'ChildWithNullable'); /// List of all possible values in this [enum][ParentWithNullableTypeEnum]. static const values = [ - childwithnullable, + childWithNullable, ]; static ParentWithNullableTypeEnum? fromJson(dynamic value) => ParentWithNullableTypeEnumTypeTransformer().decode(value); @@ -177,7 +177,7 @@ class ParentWithNullableTypeEnumTypeTransformer { ParentWithNullableTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case r'ChildWithNullable': return ParentWithNullableTypeEnum.childwithnullable; + case r'ChildWithNullable': return ParentWithNullableTypeEnum.childWithNullable; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/pet.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/pet.dart index 6d44804b9a6..806f91e41ac 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/pet.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/pet.dart @@ -16,7 +16,7 @@ class Pet { this.id, this.category, required this.name, - this.photourls = const {}, + this.photoUrls = const {}, this.tags = const [], this.status, }); @@ -39,7 +39,7 @@ class Pet { String name; - Set photourls; + Set photoUrls; List tags; @@ -51,7 +51,7 @@ class Pet { other.id == id && other.category == category && other.name == name && - _deepEquality.equals(other.photourls, photourls) && + _deepEquality.equals(other.photoUrls, photoUrls) && _deepEquality.equals(other.tags, tags) && other.status == status; @@ -61,12 +61,12 @@ class Pet { (id == null ? 0 : id!.hashCode) + (category == null ? 0 : category!.hashCode) + (name.hashCode) + - (photourls.hashCode) + + (photoUrls.hashCode) + (tags.hashCode) + (status == null ? 0 : status!.hashCode); @override - String toString() => 'Pet[id=$id, category=$category, name=$name, photourls=$photourls, tags=$tags, status=$status]'; + String toString() => 'Pet[id=$id, category=$category, name=$name, photoUrls=$photoUrls, tags=$tags, status=$status]'; Map toJson() { final json = {}; @@ -81,7 +81,7 @@ class Pet { json[r'category'] = null; } json[r'name'] = this.name; - json[r'photoUrls'] = this.photourls.toList(growable: false); + json[r'photoUrls'] = this.photoUrls.toList(growable: false); json[r'tags'] = this.tags; if (this.status != null) { json[r'status'] = this.status; @@ -113,7 +113,7 @@ class Pet { id: mapValueOfType(json, r'id'), category: Category.fromJson(json[r'category']), name: mapValueOfType(json, r'name')!, - photourls: json[r'photoUrls'] is Iterable + photoUrls: json[r'photoUrls'] is Iterable ? (json[r'photoUrls'] as Iterable).cast().toSet() : const {}, tags: Tag.listFromJson(json[r'tags']), diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/special_model_name.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/special_model_name.dart index ac2f099a4df..aeb25a138f0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/special_model_name.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/special_model_name.dart @@ -13,7 +13,7 @@ part of openapi.api; class SpecialModelName { /// Returns a new [SpecialModelName] instance. SpecialModelName({ - this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket, + this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket, }); /// @@ -22,24 +22,24 @@ class SpecialModelName { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + int? dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; @override bool operator ==(Object other) => identical(this, other) || other is SpecialModelName && - other.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket == dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + other.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket == dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; @override int get hashCode => // ignore: unnecessary_parenthesis - (dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket == null ? 0 : dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket!.hashCode); + (dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket == null ? 0 : dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket!.hashCode); @override - String toString() => 'SpecialModelName[dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket=$dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket]'; + String toString() => 'SpecialModelName[dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket=$dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket]'; Map toJson() { final json = {}; - if (this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket != null) { - json[r'$special[property.name]'] = this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + if (this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket != null) { + json[r'$special[property.name]'] = this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; } else { json[r'$special[property.name]'] = null; } @@ -65,7 +65,7 @@ class SpecialModelName { }()); return SpecialModelName( - dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket: mapValueOfType(json, r'$special[property.name]'), + dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket: mapValueOfType(json, r'$special[property.name]'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/test_inline_freeform_additional_properties_request.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/test_inline_freeform_additional_properties_request.dart index fd81a25bd83..8e2316a619d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/test_inline_freeform_additional_properties_request.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/test_inline_freeform_additional_properties_request.dart @@ -13,7 +13,7 @@ part of openapi.api; class TestInlineFreeformAdditionalPropertiesRequest { /// Returns a new [TestInlineFreeformAdditionalPropertiesRequest] instance. TestInlineFreeformAdditionalPropertiesRequest({ - this.someproperty, + this.someProperty, }); /// @@ -22,24 +22,24 @@ class TestInlineFreeformAdditionalPropertiesRequest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? someproperty; + String? someProperty; @override bool operator ==(Object other) => identical(this, other) || other is TestInlineFreeformAdditionalPropertiesRequest && - other.someproperty == someproperty; + other.someProperty == someProperty; @override int get hashCode => // ignore: unnecessary_parenthesis - (someproperty == null ? 0 : someproperty!.hashCode); + (someProperty == null ? 0 : someProperty!.hashCode); @override - String toString() => 'TestInlineFreeformAdditionalPropertiesRequest[someproperty=$someproperty]'; + String toString() => 'TestInlineFreeformAdditionalPropertiesRequest[someProperty=$someProperty]'; Map toJson() { final json = {}; - if (this.someproperty != null) { - json[r'someProperty'] = this.someproperty; + if (this.someProperty != null) { + json[r'someProperty'] = this.someProperty; } else { json[r'someProperty'] = null; } @@ -65,7 +65,7 @@ class TestInlineFreeformAdditionalPropertiesRequest { }()); return TestInlineFreeformAdditionalPropertiesRequest( - someproperty: mapValueOfType(json, r'someProperty'), + someProperty: mapValueOfType(json, r'someProperty'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/user.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/user.dart index b6be541d49f..395f9e38e04 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/user.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/user.dart @@ -15,12 +15,12 @@ class User { User({ this.id, this.username, - this.firstname, - this.lastname, + this.firstName, + this.lastName, this.email, this.password, this.phone, - this.userstatus, + this.userStatus, }); /// @@ -45,7 +45,7 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? firstname; + String? firstName; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -53,7 +53,7 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? lastname; + String? lastName; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -86,33 +86,33 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? userstatus; + int? userStatus; @override bool operator ==(Object other) => identical(this, other) || other is User && other.id == id && other.username == username && - other.firstname == firstname && - other.lastname == lastname && + other.firstName == firstName && + other.lastName == lastName && other.email == email && other.password == password && other.phone == phone && - other.userstatus == userstatus; + other.userStatus == userStatus; @override int get hashCode => // ignore: unnecessary_parenthesis (id == null ? 0 : id!.hashCode) + (username == null ? 0 : username!.hashCode) + - (firstname == null ? 0 : firstname!.hashCode) + - (lastname == null ? 0 : lastname!.hashCode) + + (firstName == null ? 0 : firstName!.hashCode) + + (lastName == null ? 0 : lastName!.hashCode) + (email == null ? 0 : email!.hashCode) + (password == null ? 0 : password!.hashCode) + (phone == null ? 0 : phone!.hashCode) + - (userstatus == null ? 0 : userstatus!.hashCode); + (userStatus == null ? 0 : userStatus!.hashCode); @override - String toString() => 'User[id=$id, username=$username, firstname=$firstname, lastname=$lastname, email=$email, password=$password, phone=$phone, userstatus=$userstatus]'; + String toString() => 'User[id=$id, username=$username, firstName=$firstName, lastName=$lastName, email=$email, password=$password, phone=$phone, userStatus=$userStatus]'; Map toJson() { final json = {}; @@ -126,13 +126,13 @@ class User { } else { json[r'username'] = null; } - if (this.firstname != null) { - json[r'firstName'] = this.firstname; + if (this.firstName != null) { + json[r'firstName'] = this.firstName; } else { json[r'firstName'] = null; } - if (this.lastname != null) { - json[r'lastName'] = this.lastname; + if (this.lastName != null) { + json[r'lastName'] = this.lastName; } else { json[r'lastName'] = null; } @@ -151,8 +151,8 @@ class User { } else { json[r'phone'] = null; } - if (this.userstatus != null) { - json[r'userStatus'] = this.userstatus; + if (this.userStatus != null) { + json[r'userStatus'] = this.userStatus; } else { json[r'userStatus'] = null; } @@ -180,12 +180,12 @@ class User { return User( id: mapValueOfType(json, r'id'), username: mapValueOfType(json, r'username'), - firstname: mapValueOfType(json, r'firstName'), - lastname: mapValueOfType(json, r'lastName'), + firstName: mapValueOfType(json, r'firstName'), + lastName: mapValueOfType(json, r'lastName'), email: mapValueOfType(json, r'email'), password: mapValueOfType(json, r'password'), phone: mapValueOfType(json, r'phone'), - userstatus: mapValueOfType(json, r'userStatus'), + userStatus: mapValueOfType(json, r'userStatus'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/.openapi-generator/FILES b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/.openapi-generator/FILES index a5409bf46a4..fbfe8cdd180 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/.openapi-generator/FILES @@ -1,5 +1,4 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md analysis_options.yaml @@ -128,60 +127,3 @@ lib/model/tag.dart lib/model/test_inline_freeform_additional_properties_request.dart lib/model/user.dart pubspec.yaml -test/additional_properties_class_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/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_test.dart -test/category_test.dart -test/child_with_nullable_test.dart -test/class_model_test.dart -test/default_api_test.dart -test/deprecated_object_test.dart -test/dog_test.dart -test/enum_arrays_test.dart -test/enum_class_test.dart -test/enum_test_test.dart -test/fake_api_test.dart -test/fake_big_decimal_map200_response_test.dart -test/fake_classname_tags123_api_test.dart -test/file_schema_test_class_test.dart -test/foo_get_default_response_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/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_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/parent_with_nullable_test.dart -test/pet_api_test.dart -test/pet_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/test_inline_freeform_additional_properties_request_test.dart -test/user_api_test.dart -test/user_test.dart diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/README.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/README.md index 85818103b4d..5a8c345c8de 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/README.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/README.md @@ -42,10 +42,10 @@ import 'package:openapi/api.dart'; final api_instance = AnotherFakeApi(); -final modelclient = ModelClient(); // ModelClient | client model +final modelClient = ModelClient(); // ModelClient | client model try { - final result = api_instance.call123testSpecialTags(modelclient); + final result = api_instance.call123testSpecialTags(modelClient); print(result); } catch (e) { print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/AllOfWithSingleRef.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/AllOfWithSingleRef.md index 151142162f6..4c6f3ab2fe1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/AllOfWithSingleRef.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/AllOfWithSingleRef.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **username** | **String** | | [optional] -**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional] +**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/Animal.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Animal.md index 570de2e45be..415b56e9bc2 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Animal.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Animal.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/AnotherFakeApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/AnotherFakeApi.md index c2ae7784822..241c82e575d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/AnotherFakeApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **call123testSpecialTags** -> ModelClient call123testSpecialTags(modelclient) +> ModelClient call123testSpecialTags(modelClient) To test special tags @@ -24,10 +24,10 @@ To test special tags and operation ID starting with number import 'package:openapi/api.dart'; final api_instance = AnotherFakeApi(); -final modelclient = ModelClient(); // ModelClient | client model +final modelClient = ModelClient(); // ModelClient | client model try { - final result = api_instance.call123testSpecialTags(modelclient); + final result = api_instance.call123testSpecialTags(modelClient); print(result); } catch (e) { print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n'); @@ -38,7 +38,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ArrayOfArrayOfNumberOnly.md index 84f21164e7b..0a0dc2a7b75 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ArrayOfArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayarraynumber** | [**List>**](List.md) | | [optional] [default to const []] +**arrayArrayNumber** | [**List>**](List.md) | | [optional] [default to const []] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ArrayOfNumberOnly.md index fa8e9caffce..01b6f58870f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ArrayOfNumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arraynumber** | **List** | | [optional] [default to const []] +**arrayNumber** | **List** | | [optional] [default to const []] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/Capitalization.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Capitalization.md index e673e7baef4..4a07b4eb820 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Capitalization.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Capitalization.md @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**smallcamel** | **String** | | [optional] -**capitalcamel** | **String** | | [optional] +**smallCamel** | **String** | | [optional] +**capitalCamel** | **String** | | [optional] **smallSnake** | **String** | | [optional] **capitalSnake** | **String** | | [optional] -**scaEthFlowPoints** | **String** | | [optional] -**attName** | **String** | Name of the pet | [optional] +**sCAETHFlowPoints** | **String** | | [optional] +**ATT_NAME** | **String** | Name of the pet | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/Cat.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Cat.md index 9c557ac9082..6552eea4b43 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Cat.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Cat.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **declawed** | **bool** | | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ChildWithNullable.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ChildWithNullable.md index 54b310b0f58..770494fcf4c 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ChildWithNullable.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ChildWithNullable.md @@ -9,8 +9,8 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] -**otherproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] +**otherProperty** | **String** | | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/Dog.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Dog.md index b2ba3dfcef5..d36439b767b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Dog.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Dog.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**classname** | **String** | | +**className** | **String** | | **color** | **String** | | [optional] [default to 'red'] **breed** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/EnumTest.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/EnumTest.md index f1b0758b868..7c24fe2347b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/EnumTest.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/EnumTest.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **enumStringRequired** | **String** | | **enumInteger** | **int** | | [optional] **enumNumber** | **double** | | [optional] -**outerenum** | [**OuterEnum**](OuterEnum.md) | | [optional] -**outerenuminteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] -**outerenumdefaultvalue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] -**outerenumintegerdefaultvalue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] +**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] +**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] +**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] +**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeApi.md index cf92b84aa2c..e5c71555c9a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeApi.md @@ -197,7 +197,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakeOuterCompositeSerialize** -> OuterComposite fakeOuterCompositeSerialize(outercomposite) +> OuterComposite fakeOuterCompositeSerialize(outerComposite) @@ -208,10 +208,10 @@ Test serialization of object with outer number type import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final outercomposite = OuterComposite(); // OuterComposite | Input composite as post body +final outerComposite = OuterComposite(); // OuterComposite | Input composite as post body try { - final result = api_instance.fakeOuterCompositeSerialize(outercomposite); + final result = api_instance.fakeOuterCompositeSerialize(outerComposite); print(result); } catch (e) { print('Exception when calling FakeApi->fakeOuterCompositeSerialize: $e\n'); @@ -222,7 +222,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outercomposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] + **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] ### Return type @@ -326,7 +326,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakePropertyEnumIntegerSerialize** -> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty) +> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty) @@ -337,10 +337,10 @@ Test serialization of enum (int) properties with examples import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final outerobjectwithenumproperty = OuterObjectWithEnumProperty(); // OuterObjectWithEnumProperty | Input enum (int) as post body +final outerObjectWithEnumProperty = OuterObjectWithEnumProperty(); // OuterObjectWithEnumProperty | Input enum (int) as post body try { - final result = api_instance.fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty); + final result = api_instance.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty); print(result); } catch (e) { print('Exception when calling FakeApi->fakePropertyEnumIntegerSerialize: $e\n'); @@ -351,7 +351,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outerobjectwithenumproperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | + **outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | ### Return type @@ -453,7 +453,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testBodyWithFileSchema** -> testBodyWithFileSchema(fileschematestclass) +> testBodyWithFileSchema(fileSchemaTestClass) @@ -464,10 +464,10 @@ For this test, the body for this request must reference a schema named `File`. import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final fileschematestclass = FileSchemaTestClass(); // FileSchemaTestClass | +final fileSchemaTestClass = FileSchemaTestClass(); // FileSchemaTestClass | try { - api_instance.testBodyWithFileSchema(fileschematestclass); + api_instance.testBodyWithFileSchema(fileSchemaTestClass); } catch (e) { print('Exception when calling FakeApi->testBodyWithFileSchema: $e\n'); } @@ -477,7 +477,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fileschematestclass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | + **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -537,7 +537,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testClientModel** -> ModelClient testClientModel(modelclient) +> ModelClient testClientModel(modelClient) To test \"client\" model @@ -548,10 +548,10 @@ To test \"client\" model import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final modelclient = ModelClient(); // ModelClient | client model +final modelClient = ModelClient(); // ModelClient | client model try { - final result = api_instance.testClientModel(modelclient); + final result = api_instance.testClientModel(modelClient); print(result); } catch (e) { print('Exception when calling FakeApi->testClientModel: $e\n'); @@ -562,7 +562,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type @@ -580,7 +580,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testEndpointParameters** -> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback) +> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -605,12 +605,12 @@ final float = 3.4; // double | None final string = string_example; // String | None final binary = BINARY_DATA_HERE; // MultipartFile | None final date = 2013-10-20; // DateTime | None -final datetime = 2013-10-20T19:20:30+01:00; // DateTime | None +final dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None final password = password_example; // String | None final callback = callback_example; // String | None try { - api_instance.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback); + api_instance.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback); } catch (e) { print('Exception when calling FakeApi->testEndpointParameters: $e\n'); } @@ -631,7 +631,7 @@ Name | Type | Description | Notes **string** | **String**| None | [optional] **binary** | **MultipartFile**| None | [optional] **date** | **DateTime**| None | [optional] - **datetime** | **DateTime**| None | [optional] + **dateTime** | **DateTime**| None | [optional] **password** | **String**| None | [optional] **callback** | **String**| None | [optional] @@ -809,7 +809,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testInlineFreeformAdditionalProperties** -> testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest) +> testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest) test inline free-form additionalProperties @@ -820,10 +820,10 @@ test inline free-form additionalProperties import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final testinlinefreeformadditionalpropertiesrequest = TestInlineFreeformAdditionalPropertiesRequest(); // TestInlineFreeformAdditionalPropertiesRequest | request body +final testInlineFreeformAdditionalPropertiesRequest = TestInlineFreeformAdditionalPropertiesRequest(); // TestInlineFreeformAdditionalPropertiesRequest | request body try { - api_instance.testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest); + api_instance.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest); } catch (e) { print('Exception when calling FakeApi->testInlineFreeformAdditionalProperties: $e\n'); } @@ -833,7 +833,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **testinlinefreeformadditionalpropertiesrequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | + **testInlineFreeformAdditionalPropertiesRequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body | ### Return type @@ -895,7 +895,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testNullable** -> testNullable(childwithnullable) +> testNullable(childWithNullable) test nullable parent property @@ -906,10 +906,10 @@ test nullable parent property import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final childwithnullable = ChildWithNullable(); // ChildWithNullable | request body +final childWithNullable = ChildWithNullable(); // ChildWithNullable | request body try { - api_instance.testNullable(childwithnullable); + api_instance.testNullable(childWithNullable); } catch (e) { print('Exception when calling FakeApi->testNullable: $e\n'); } @@ -919,7 +919,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **childwithnullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | + **childWithNullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body | ### Return type @@ -937,7 +937,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **testQueryParameterCollectionFormat** -> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language) +> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language) @@ -953,11 +953,11 @@ final ioutil = []; // List | final http = []; // List | final url = []; // List | final context = []; // List | -final allowempty = allowempty_example; // String | +final allowEmpty = allowEmpty_example; // String | final language = ; // Map | try { - api_instance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language); + api_instance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language); } catch (e) { print('Exception when calling FakeApi->testQueryParameterCollectionFormat: $e\n'); } @@ -972,7 +972,7 @@ Name | Type | Description | Notes **http** | [**List**](String.md)| | [default to const []] **url** | [**List**](String.md)| | [default to const []] **context** | [**List**](String.md)| | [default to const []] - **allowempty** | **String**| | + **allowEmpty** | **String**| | **language** | [**Map**](String.md)| | [optional] [default to const {}] ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeBigDecimalMap200Response.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeBigDecimalMap200Response.md index f3c0d00337e..21ccf6ec012 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeBigDecimalMap200Response.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeBigDecimalMap200Response.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someid** | **num** | | [optional] -**somemap** | **Map** | | [optional] [default to const {}] +**someId** | **num** | | [optional] +**someMap** | **Map** | | [optional] [default to const {}] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeClassnameTags123Api.md index be7a69c1b96..5518c67403f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FakeClassnameTags123Api.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **testClassname** -> ModelClient testClassname(modelclient) +> ModelClient testClassname(modelClient) To test class name in snake case @@ -28,10 +28,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key_query').apiKeyPrefix = 'Bearer'; final api_instance = FakeClassnameTags123Api(); -final modelclient = ModelClient(); // ModelClient | client model +final modelClient = ModelClient(); // ModelClient | client model try { - final result = api_instance.testClassname(modelclient); + final result = api_instance.testClassname(modelClient); print(result); } catch (e) { print('Exception when calling FakeClassnameTags123Api->testClassname: $e\n'); @@ -42,7 +42,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **modelclient** | [**ModelClient**](ModelClient.md)| client model | + **modelClient** | [**ModelClient**](ModelClient.md)| client model | ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FormatTest.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FormatTest.md index a25a61c5334..83b60545eb6 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FormatTest.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/FormatTest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **byte** | **String** | | **binary** | [**MultipartFile**](MultipartFile.md) | | [optional] **date** | [**DateTime**](DateTime.md) | | -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **uuid** | **String** | | [optional] **password** | **String** | | **patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/HealthCheckResult.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/HealthCheckResult.md index c912fb2e08f..4d6aeb75d96 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/HealthCheckResult.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/HealthCheckResult.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nullablemessage** | **String** | | [optional] +**nullableMessage** | **String** | | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/MixedPropertiesAndAdditionalPropertiesClass.md index 3df16ab1a90..1f7f66b684f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/MixedPropertiesAndAdditionalPropertiesClass.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] -**datetime** | [**DateTime**](DateTime.md) | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] **map** | [**Map**](Animal.md) | | [optional] [default to const {}] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/ModelFile.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ModelFile.md index d54b1bbbea0..4be260e93f6 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ModelFile.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ModelFile.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sourceuri** | **String** | Test capitalization | [optional] +**sourceURI** | **String** | Test capitalization | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/NumberOnly.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/NumberOnly.md index f5fac6f8a17..d8096a3db37 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/NumberOnly.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/NumberOnly.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**justnumber** | **num** | | [optional] +**justNumber** | **num** | | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/ObjectWithDeprecatedFields.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ObjectWithDeprecatedFields.md index a78891d3301..566816d8d27 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ObjectWithDeprecatedFields.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ObjectWithDeprecatedFields.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] **id** | **num** | | [optional] -**deprecatedref** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **bars** | **List** | | [optional] [default to const []] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/Order.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Order.md index 08914a83f30..bde5ffe51a2 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Order.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Order.md @@ -9,9 +9,9 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] -**petid** | **int** | | [optional] +**petId** | **int** | | [optional] **quantity** | **int** | | [optional] -**shipdate** | [**DateTime**](DateTime.md) | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] **status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ParentWithNullable.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ParentWithNullable.md index 43546498705..17aa5ca0294 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ParentWithNullable.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/ParentWithNullable.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **String** | | [optional] -**nullableproperty** | **String** | | [optional] +**nullableProperty** | **String** | | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/Pet.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Pet.md index ceb71740166..b6fdea5299b 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Pet.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/Pet.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **id** | **int** | | [optional] **category** | [**Category**](Category.md) | | [optional] **name** | **String** | | -**photourls** | **Set** | | [default to const {}] +**photoUrls** | **Set** | | [default to const {}] **tags** | [**List**](Tag.md) | | [optional] [default to const []] **status** | **String** | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/PetApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/PetApi.md index 978146e4488..3883a9e96a0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/PetApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/PetApi.md @@ -65,7 +65,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deletePet** -> deletePet(petid, apiKey) +> deletePet(petId, apiKey) Deletes a pet @@ -78,11 +78,11 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | Pet id to delete +final petId = 789; // int | Pet id to delete final apiKey = apiKey_example; // String | try { - api_instance.deletePet(petid, apiKey); + api_instance.deletePet(petId, apiKey); } catch (e) { print('Exception when calling PetApi->deletePet: $e\n'); } @@ -92,7 +92,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| Pet id to delete | + **petId** | **int**| Pet id to delete | **apiKey** | **String**| | [optional] ### Return type @@ -201,7 +201,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPetById** -> Pet getPetById(petid) +> Pet getPetById(petId) Find pet by ID @@ -216,10 +216,10 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet to return +final petId = 789; // int | ID of pet to return try { - final result = api_instance.getPetById(petid); + final result = api_instance.getPetById(petId); print(result); } catch (e) { print('Exception when calling PetApi->getPetById: $e\n'); @@ -230,7 +230,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to return | + **petId** | **int**| ID of pet to return | ### Return type @@ -292,7 +292,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updatePetWithForm** -> updatePetWithForm(petid, name, status) +> updatePetWithForm(petId, name, status) Updates a pet in the store with form data @@ -305,12 +305,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet that needs to be updated +final petId = 789; // int | ID of pet that needs to be updated final name = name_example; // String | Updated name of the pet final status = status_example; // String | Updated status of the pet try { - api_instance.updatePetWithForm(petid, name, status); + api_instance.updatePetWithForm(petId, name, status); } catch (e) { print('Exception when calling PetApi->updatePetWithForm: $e\n'); } @@ -320,7 +320,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet that needs to be updated | + **petId** | **int**| ID of pet that needs to be updated | **name** | **String**| Updated name of the pet | [optional] **status** | **String**| Updated status of the pet | [optional] @@ -340,7 +340,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFile** -> ApiResponse uploadFile(petid, additionalmetadata, file) +> ApiResponse uploadFile(petId, additionalMetadata, file) uploads an image @@ -353,12 +353,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet to update -final additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final petId = 789; // int | ID of pet to update +final additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server final file = BINARY_DATA_HERE; // MultipartFile | file to upload try { - final result = api_instance.uploadFile(petid, additionalmetadata, file); + final result = api_instance.uploadFile(petId, additionalMetadata, file); print(result); } catch (e) { print('Exception when calling PetApi->uploadFile: $e\n'); @@ -369,8 +369,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] **file** | **MultipartFile**| file to upload | [optional] ### Return type @@ -389,7 +389,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadFileWithRequiredFile** -> ApiResponse uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata) +> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata) uploads an image (required) @@ -402,12 +402,12 @@ import 'package:openapi/api.dart'; //defaultApiClient.getAuthentication('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = PetApi(); -final petid = 789; // int | ID of pet to update -final requiredfile = BINARY_DATA_HERE; // MultipartFile | file to upload -final additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server +final petId = 789; // int | ID of pet to update +final requiredFile = BINARY_DATA_HERE; // MultipartFile | file to upload +final additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server try { - final result = api_instance.uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata); + final result = api_instance.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); print(result); } catch (e) { print('Exception when calling PetApi->uploadFileWithRequiredFile: $e\n'); @@ -418,9 +418,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petid** | **int**| ID of pet to update | - **requiredfile** | **MultipartFile**| file to upload | - **additionalmetadata** | **String**| Additional data to pass to server | [optional] + **petId** | **int**| ID of pet to update | + **requiredFile** | **MultipartFile**| file to upload | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/SpecialModelName.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/SpecialModelName.md index 04697c8e622..5fcfa98e0b3 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/SpecialModelName.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/SpecialModelName.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket** | **int** | | [optional] +**dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket** | **int** | | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/TestInlineFreeformAdditionalPropertiesRequest.md index 894a3e60ee3..e2b2f1fd446 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/TestInlineFreeformAdditionalPropertiesRequest.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**someproperty** | **String** | | [optional] +**someProperty** | **String** | | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/doc/User.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/User.md index 37aa8c50230..fa87e64d859 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/User.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/doc/User.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] **username** | **String** | | [optional] -**firstname** | **String** | | [optional] -**lastname** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] **email** | **String** | | [optional] **password** | **String** | | [optional] **phone** | **String** | | [optional] -**userstatus** | **int** | User Status | [optional] +**userStatus** | **int** | User Status | [optional] [[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/dart2/petstore_client_lib_use_lower_camel_case/lib/api/another_fake_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/another_fake_api.dart index 3d7ceda6d0c..81ab2d859dd 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/another_fake_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/another_fake_api.dart @@ -24,14 +24,14 @@ class AnotherFakeApi { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future call123testSpecialTagsWithHttpInfo(ModelClient modelclient,) async { + Future call123testSpecialTagsWithHttpInfo(ModelClient modelClient,) async { // ignore: prefer_const_declarations final path = r'/another-fake/dummy'; // ignore: prefer_final_locals - Object? postBody = modelclient; + Object? postBody = modelClient; final queryParams = []; final headerParams = {}; @@ -57,10 +57,10 @@ class AnotherFakeApi { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future call123testSpecialTags(ModelClient modelclient,) async { - final response = await call123testSpecialTagsWithHttpInfo(modelclient,); + Future call123testSpecialTags(ModelClient modelClient,) async { + final response = await call123testSpecialTagsWithHttpInfo(modelClient,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/fake_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/fake_api.dart index 3674a2e5d66..1fa377f864d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/fake_api.dart @@ -230,14 +230,14 @@ class FakeApi { /// /// Parameters: /// - /// * [OuterComposite] outercomposite: + /// * [OuterComposite] outerComposite: /// Input composite as post body - Future fakeOuterCompositeSerializeWithHttpInfo({ OuterComposite? outercomposite, }) async { + Future fakeOuterCompositeSerializeWithHttpInfo({ OuterComposite? outerComposite, }) async { // ignore: prefer_const_declarations final path = r'/fake/outer/composite'; // ignore: prefer_final_locals - Object? postBody = outercomposite; + Object? postBody = outerComposite; final queryParams = []; final headerParams = {}; @@ -261,10 +261,10 @@ class FakeApi { /// /// Parameters: /// - /// * [OuterComposite] outercomposite: + /// * [OuterComposite] outerComposite: /// Input composite as post body - Future fakeOuterCompositeSerialize({ OuterComposite? outercomposite, }) async { - final response = await fakeOuterCompositeSerializeWithHttpInfo( outercomposite: outercomposite, ); + Future fakeOuterCompositeSerialize({ OuterComposite? outerComposite, }) async { + final response = await fakeOuterCompositeSerializeWithHttpInfo( outerComposite: outerComposite, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -392,14 +392,14 @@ class FakeApi { /// /// Parameters: /// - /// * [OuterObjectWithEnumProperty] outerobjectwithenumproperty (required): + /// * [OuterObjectWithEnumProperty] outerObjectWithEnumProperty (required): /// Input enum (int) as post body - Future fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerobjectwithenumproperty,) async { + Future fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty,) async { // ignore: prefer_const_declarations final path = r'/fake/property/enum-int'; // ignore: prefer_final_locals - Object? postBody = outerobjectwithenumproperty; + Object? postBody = outerObjectWithEnumProperty; final queryParams = []; final headerParams = {}; @@ -423,10 +423,10 @@ class FakeApi { /// /// Parameters: /// - /// * [OuterObjectWithEnumProperty] outerobjectwithenumproperty (required): + /// * [OuterObjectWithEnumProperty] outerObjectWithEnumProperty (required): /// Input enum (int) as post body - Future fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerobjectwithenumproperty,) async { - final response = await fakePropertyEnumIntegerSerializeWithHttpInfo(outerobjectwithenumproperty,); + Future fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty,) async { + final response = await fakePropertyEnumIntegerSerializeWithHttpInfo(outerObjectWithEnumProperty,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -542,13 +542,13 @@ class FakeApi { /// /// Parameters: /// - /// * [FileSchemaTestClass] fileschematestclass (required): - Future testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileschematestclass,) async { + /// * [FileSchemaTestClass] fileSchemaTestClass (required): + Future testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass,) async { // ignore: prefer_const_declarations final path = r'/fake/body-with-file-schema'; // ignore: prefer_final_locals - Object? postBody = fileschematestclass; + Object? postBody = fileSchemaTestClass; final queryParams = []; final headerParams = {}; @@ -572,9 +572,9 @@ class FakeApi { /// /// Parameters: /// - /// * [FileSchemaTestClass] fileschematestclass (required): - Future testBodyWithFileSchema(FileSchemaTestClass fileschematestclass,) async { - final response = await testBodyWithFileSchemaWithHttpInfo(fileschematestclass,); + /// * [FileSchemaTestClass] fileSchemaTestClass (required): + Future testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass,) async { + final response = await testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -633,14 +633,14 @@ class FakeApi { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future testClientModelWithHttpInfo(ModelClient modelclient,) async { + Future testClientModelWithHttpInfo(ModelClient modelClient,) async { // ignore: prefer_const_declarations final path = r'/fake'; // ignore: prefer_final_locals - Object? postBody = modelclient; + Object? postBody = modelClient; final queryParams = []; final headerParams = {}; @@ -666,10 +666,10 @@ class FakeApi { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future testClientModel(ModelClient modelclient,) async { - final response = await testClientModelWithHttpInfo(modelclient,); + Future testClientModel(ModelClient modelClient,) async { + final response = await testClientModelWithHttpInfo(modelClient,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -724,7 +724,7 @@ class FakeApi { /// * [DateTime] date: /// None /// - /// * [DateTime] datetime: + /// * [DateTime] dateTime: /// None /// /// * [String] password: @@ -732,7 +732,7 @@ class FakeApi { /// /// * [String] callback: /// None - Future testEndpointParametersWithHttpInfo(num number, double double_, String patternWithoutDelimiter, String byte, { int? integer, int? int32, int? int64, double? float, String? string, MultipartFile? binary, DateTime? date, DateTime? datetime, String? password, String? callback, }) async { + Future testEndpointParametersWithHttpInfo(num number, double double_, String patternWithoutDelimiter, String byte, { int? integer, int? int32, int? int64, double? float, String? string, MultipartFile? binary, DateTime? date, DateTime? dateTime, String? password, String? callback, }) async { // ignore: prefer_const_declarations final path = r'/fake'; @@ -775,8 +775,8 @@ class FakeApi { if (date != null) { formParams[r'date'] = parameterToString(date); } - if (datetime != null) { - formParams[r'dateTime'] = parameterToString(datetime); + if (dateTime != null) { + formParams[r'dateTime'] = parameterToString(dateTime); } if (password != null) { formParams[r'password'] = parameterToString(password); @@ -835,7 +835,7 @@ class FakeApi { /// * [DateTime] date: /// None /// - /// * [DateTime] datetime: + /// * [DateTime] dateTime: /// None /// /// * [String] password: @@ -843,8 +843,8 @@ class FakeApi { /// /// * [String] callback: /// None - Future testEndpointParameters(num number, double double_, String patternWithoutDelimiter, String byte, { int? integer, int? int32, int? int64, double? float, String? string, MultipartFile? binary, DateTime? date, DateTime? datetime, String? password, String? callback, }) async { - final response = await testEndpointParametersWithHttpInfo(number, double_, patternWithoutDelimiter, byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, datetime: datetime, password: password, callback: callback, ); + Future testEndpointParameters(num number, double double_, String patternWithoutDelimiter, String byte, { int? integer, int? int32, int? int64, double? float, String? string, MultipartFile? binary, DateTime? date, DateTime? dateTime, String? password, String? callback, }) async { + final response = await testEndpointParametersWithHttpInfo(number, double_, patternWithoutDelimiter, byte, integer: integer, int32: int32, int64: int64, float: float, string: string, binary: binary, date: date, dateTime: dateTime, password: password, callback: callback, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1127,14 +1127,14 @@ class FakeApi { /// /// Parameters: /// - /// * [TestInlineFreeformAdditionalPropertiesRequest] testinlinefreeformadditionalpropertiesrequest (required): + /// * [TestInlineFreeformAdditionalPropertiesRequest] testInlineFreeformAdditionalPropertiesRequest (required): /// request body - Future testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest,) async { + Future testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,) async { // ignore: prefer_const_declarations final path = r'/fake/inline-freeform-additionalProperties'; // ignore: prefer_final_locals - Object? postBody = testinlinefreeformadditionalpropertiesrequest; + Object? postBody = testInlineFreeformAdditionalPropertiesRequest; final queryParams = []; final headerParams = {}; @@ -1160,10 +1160,10 @@ class FakeApi { /// /// Parameters: /// - /// * [TestInlineFreeformAdditionalPropertiesRequest] testinlinefreeformadditionalpropertiesrequest (required): + /// * [TestInlineFreeformAdditionalPropertiesRequest] testInlineFreeformAdditionalPropertiesRequest (required): /// request body - Future testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest,) async { - final response = await testInlineFreeformAdditionalPropertiesWithHttpInfo(testinlinefreeformadditionalpropertiesrequest,); + Future testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,) async { + final response = await testInlineFreeformAdditionalPropertiesWithHttpInfo(testInlineFreeformAdditionalPropertiesRequest,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1239,14 +1239,14 @@ class FakeApi { /// /// Parameters: /// - /// * [ChildWithNullable] childwithnullable (required): + /// * [ChildWithNullable] childWithNullable (required): /// request body - Future testNullableWithHttpInfo(ChildWithNullable childwithnullable,) async { + Future testNullableWithHttpInfo(ChildWithNullable childWithNullable,) async { // ignore: prefer_const_declarations final path = r'/fake/nullable'; // ignore: prefer_final_locals - Object? postBody = childwithnullable; + Object? postBody = childWithNullable; final queryParams = []; final headerParams = {}; @@ -1272,10 +1272,10 @@ class FakeApi { /// /// Parameters: /// - /// * [ChildWithNullable] childwithnullable (required): + /// * [ChildWithNullable] childWithNullable (required): /// request body - Future testNullable(ChildWithNullable childwithnullable,) async { - final response = await testNullableWithHttpInfo(childwithnullable,); + Future testNullable(ChildWithNullable childWithNullable,) async { + final response = await testNullableWithHttpInfo(childWithNullable,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1297,10 +1297,10 @@ class FakeApi { /// /// * [List] context (required): /// - /// * [String] allowempty (required): + /// * [String] allowEmpty (required): /// /// * [Map] language: - Future testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowempty, { Map? language, }) async { + Future testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, { Map? language, }) async { // ignore: prefer_const_declarations final path = r'/fake/test-query-parameters'; @@ -1319,7 +1319,7 @@ class FakeApi { if (language != null) { queryParams.addAll(_queryParams('', 'language', language)); } - queryParams.addAll(_queryParams('', 'allowEmpty', allowempty)); + queryParams.addAll(_queryParams('', 'allowEmpty', allowEmpty)); const contentTypes = []; @@ -1349,11 +1349,11 @@ class FakeApi { /// /// * [List] context (required): /// - /// * [String] allowempty (required): + /// * [String] allowEmpty (required): /// /// * [Map] language: - Future testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowempty, { Map? language, }) async { - final response = await testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowempty, language: language, ); + Future testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, { Map? language, }) async { + final response = await testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowEmpty, language: language, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/fake_classname_tags123_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/fake_classname_tags123_api.dart index 8f45d844fd6..7689f51b688 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/fake_classname_tags123_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/fake_classname_tags123_api.dart @@ -24,14 +24,14 @@ class FakeClassnameTags123Api { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future testClassnameWithHttpInfo(ModelClient modelclient,) async { + Future testClassnameWithHttpInfo(ModelClient modelClient,) async { // ignore: prefer_const_declarations final path = r'/fake_classname_test'; // ignore: prefer_final_locals - Object? postBody = modelclient; + Object? postBody = modelClient; final queryParams = []; final headerParams = {}; @@ -57,10 +57,10 @@ class FakeClassnameTags123Api { /// /// Parameters: /// - /// * [ModelClient] modelclient (required): + /// * [ModelClient] modelClient (required): /// client model - Future testClassname(ModelClient modelclient,) async { - final response = await testClassnameWithHttpInfo(modelclient,); + Future testClassname(ModelClient modelClient,) async { + final response = await testClassnameWithHttpInfo(modelClient,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/pet_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/pet_api.dart index ea3c0054bd6..61fd1666af4 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/pet_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/api/pet_api.dart @@ -74,14 +74,14 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// Pet id to delete /// /// * [String] apiKey: - Future deletePetWithHttpInfo(int petid, { String? apiKey, }) async { + Future deletePetWithHttpInfo(int petId, { String? apiKey, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -114,12 +114,12 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// Pet id to delete /// /// * [String] apiKey: - Future deletePet(int petid, { String? apiKey, }) async { - final response = await deletePetWithHttpInfo(petid, apiKey: apiKey, ); + Future deletePet(int petId, { String? apiKey, }) async { + final response = await deletePetWithHttpInfo(petId, apiKey: apiKey, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -259,12 +259,12 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to return - Future getPetByIdWithHttpInfo(int petid,) async { + Future getPetByIdWithHttpInfo(int petId,) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -293,10 +293,10 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to return - Future getPetById(int petid,) async { - final response = await getPetByIdWithHttpInfo(petid,); + Future getPetById(int petId,) async { + final response = await getPetByIdWithHttpInfo(petId,); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -368,7 +368,7 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet that needs to be updated /// /// * [String] name: @@ -376,10 +376,10 @@ class PetApi { /// /// * [String] status: /// Updated status of the pet - Future updatePetWithFormWithHttpInfo(int petid, { String? name, String? status, }) async { + Future updatePetWithFormWithHttpInfo(int petId, { String? name, String? status, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -414,7 +414,7 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet that needs to be updated /// /// * [String] name: @@ -422,8 +422,8 @@ class PetApi { /// /// * [String] status: /// Updated status of the pet - Future updatePetWithForm(int petid, { String? name, String? status, }) async { - final response = await updatePetWithFormWithHttpInfo(petid, name: name, status: status, ); + Future updatePetWithForm(int petId, { String? name, String? status, }) async { + final response = await updatePetWithFormWithHttpInfo(petId, name: name, status: status, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -437,18 +437,18 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server /// /// * [MultipartFile] file: /// file to upload - Future uploadFileWithHttpInfo(int petid, { String? additionalmetadata, MultipartFile? file, }) async { + Future uploadFileWithHttpInfo(int petId, { String? additionalMetadata, MultipartFile? file, }) async { // ignore: prefer_const_declarations final path = r'/pet/{petId}/uploadImage' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -461,9 +461,9 @@ class PetApi { bool hasFields = false; final mp = MultipartRequest('POST', Uri.parse(path)); - if (additionalmetadata != null) { + if (additionalMetadata != null) { hasFields = true; - mp.fields[r'additionalMetadata'] = parameterToString(additionalmetadata); + mp.fields[r'additionalMetadata'] = parameterToString(additionalMetadata); } if (file != null) { hasFields = true; @@ -491,16 +491,16 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server /// /// * [MultipartFile] file: /// file to upload - Future uploadFile(int petid, { String? additionalmetadata, MultipartFile? file, }) async { - final response = await uploadFileWithHttpInfo(petid, additionalmetadata: additionalmetadata, file: file, ); + Future uploadFile(int petId, { String? additionalMetadata, MultipartFile? file, }) async { + final response = await uploadFileWithHttpInfo(petId, additionalMetadata: additionalMetadata, file: file, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -522,18 +522,18 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [MultipartFile] requiredfile (required): + /// * [MultipartFile] requiredFile (required): /// file to upload /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server - Future uploadFileWithRequiredFileWithHttpInfo(int petid, MultipartFile requiredfile, { String? additionalmetadata, }) async { + Future uploadFileWithRequiredFileWithHttpInfo(int petId, MultipartFile requiredFile, { String? additionalMetadata, }) async { // ignore: prefer_const_declarations final path = r'/fake/{petId}/uploadImageWithRequiredFile' - .replaceAll('{petId}', petid.toString()); + .replaceAll('{petId}', petId.toString()); // ignore: prefer_final_locals Object? postBody; @@ -546,14 +546,14 @@ class PetApi { bool hasFields = false; final mp = MultipartRequest('POST', Uri.parse(path)); - if (additionalmetadata != null) { + if (additionalMetadata != null) { hasFields = true; - mp.fields[r'additionalMetadata'] = parameterToString(additionalmetadata); + mp.fields[r'additionalMetadata'] = parameterToString(additionalMetadata); } - if (requiredfile != null) { + if (requiredFile != null) { hasFields = true; - mp.fields[r'requiredFile'] = requiredfile.field; - mp.files.add(requiredfile); + mp.fields[r'requiredFile'] = requiredFile.field; + mp.files.add(requiredFile); } if (hasFields) { postBody = mp; @@ -576,16 +576,16 @@ class PetApi { /// /// Parameters: /// - /// * [int] petid (required): + /// * [int] petId (required): /// ID of pet to update /// - /// * [MultipartFile] requiredfile (required): + /// * [MultipartFile] requiredFile (required): /// file to upload /// - /// * [String] additionalmetadata: + /// * [String] additionalMetadata: /// Additional data to pass to server - Future uploadFileWithRequiredFile(int petid, MultipartFile requiredfile, { String? additionalmetadata, }) async { - final response = await uploadFileWithRequiredFileWithHttpInfo(petid, requiredfile, additionalmetadata: additionalmetadata, ); + Future uploadFileWithRequiredFile(int petId, MultipartFile requiredFile, { String? additionalMetadata, }) async { + final response = await uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata: additionalMetadata, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/all_of_with_single_ref.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/all_of_with_single_ref.dart index 24890cf3f2e..0411ccc2b7a 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/all_of_with_single_ref.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/all_of_with_single_ref.dart @@ -14,7 +14,7 @@ class AllOfWithSingleRef { /// Returns a new [AllOfWithSingleRef] instance. AllOfWithSingleRef({ this.username, - this.singlereftype, + this.singleRefType, }); /// @@ -31,21 +31,21 @@ class AllOfWithSingleRef { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - SingleRefType? singlereftype; + SingleRefType? singleRefType; @override bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef && other.username == username && - other.singlereftype == singlereftype; + other.singleRefType == singleRefType; @override int get hashCode => // ignore: unnecessary_parenthesis (username == null ? 0 : username!.hashCode) + - (singlereftype == null ? 0 : singlereftype!.hashCode); + (singleRefType == null ? 0 : singleRefType!.hashCode); @override - String toString() => 'AllOfWithSingleRef[username=$username, singlereftype=$singlereftype]'; + String toString() => 'AllOfWithSingleRef[username=$username, singleRefType=$singleRefType]'; Map toJson() { final json = {}; @@ -54,8 +54,8 @@ class AllOfWithSingleRef { } else { json[r'username'] = null; } - if (this.singlereftype != null) { - json[r'SingleRefType'] = this.singlereftype; + if (this.singleRefType != null) { + json[r'SingleRefType'] = this.singleRefType; } else { json[r'SingleRefType'] = null; } @@ -82,7 +82,7 @@ class AllOfWithSingleRef { return AllOfWithSingleRef( username: mapValueOfType(json, r'username'), - singlereftype: SingleRefType.fromJson(json[r'SingleRefType']), + singleRefType: SingleRefType.fromJson(json[r'SingleRefType']), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/animal.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/animal.dart index 6259e608264..a562a11becc 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/animal.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/animal.dart @@ -13,31 +13,31 @@ part of openapi.api; class Animal { /// Returns a new [Animal] instance. Animal({ - required this.classname, + required this.className, this.color = 'red', }); - String classname; + String className; String color; @override bool operator ==(Object other) => identical(this, other) || other is Animal && - other.classname == classname && + other.className == className && other.color == color; @override int get hashCode => // ignore: unnecessary_parenthesis - (classname.hashCode) + + (className.hashCode) + (color.hashCode); @override - String toString() => 'Animal[classname=$classname, color=$color]'; + String toString() => 'Animal[className=$className, color=$color]'; Map toJson() { final json = {}; - json[r'className'] = this.classname; + json[r'className'] = this.className; json[r'color'] = this.color; return json; } @@ -61,7 +61,7 @@ class Animal { }()); return Animal( - classname: mapValueOfType(json, r'className')!, + className: mapValueOfType(json, r'className')!, color: mapValueOfType(json, r'color') ?? 'red', ); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/array_of_array_of_number_only.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/array_of_array_of_number_only.dart index 0dc0ec4c734..04a9e99e986 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/array_of_array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/array_of_array_of_number_only.dart @@ -13,26 +13,26 @@ part of openapi.api; class ArrayOfArrayOfNumberOnly { /// Returns a new [ArrayOfArrayOfNumberOnly] instance. ArrayOfArrayOfNumberOnly({ - this.arrayarraynumber = const [], + this.arrayArrayNumber = const [], }); - List> arrayarraynumber; + List> arrayArrayNumber; @override bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly && - _deepEquality.equals(other.arrayarraynumber, arrayarraynumber); + _deepEquality.equals(other.arrayArrayNumber, arrayArrayNumber); @override int get hashCode => // ignore: unnecessary_parenthesis - (arrayarraynumber.hashCode); + (arrayArrayNumber.hashCode); @override - String toString() => 'ArrayOfArrayOfNumberOnly[arrayarraynumber=$arrayarraynumber]'; + String toString() => 'ArrayOfArrayOfNumberOnly[arrayArrayNumber=$arrayArrayNumber]'; Map toJson() { final json = {}; - json[r'ArrayArrayNumber'] = this.arrayarraynumber; + json[r'ArrayArrayNumber'] = this.arrayArrayNumber; return json; } @@ -55,7 +55,7 @@ class ArrayOfArrayOfNumberOnly { }()); return ArrayOfArrayOfNumberOnly( - arrayarraynumber: json[r'ArrayArrayNumber'] is List + arrayArrayNumber: json[r'ArrayArrayNumber'] is List ? (json[r'ArrayArrayNumber'] as List).map((e) => e == null ? const [] : (e as List).cast() ).toList() diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/array_of_number_only.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/array_of_number_only.dart index 6de38929b80..ccf33088a3e 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/array_of_number_only.dart @@ -13,26 +13,26 @@ part of openapi.api; class ArrayOfNumberOnly { /// Returns a new [ArrayOfNumberOnly] instance. ArrayOfNumberOnly({ - this.arraynumber = const [], + this.arrayNumber = const [], }); - List arraynumber; + List arrayNumber; @override bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly && - _deepEquality.equals(other.arraynumber, arraynumber); + _deepEquality.equals(other.arrayNumber, arrayNumber); @override int get hashCode => // ignore: unnecessary_parenthesis - (arraynumber.hashCode); + (arrayNumber.hashCode); @override - String toString() => 'ArrayOfNumberOnly[arraynumber=$arraynumber]'; + String toString() => 'ArrayOfNumberOnly[arrayNumber=$arrayNumber]'; Map toJson() { final json = {}; - json[r'ArrayNumber'] = this.arraynumber; + json[r'ArrayNumber'] = this.arrayNumber; return json; } @@ -55,7 +55,7 @@ class ArrayOfNumberOnly { }()); return ArrayOfNumberOnly( - arraynumber: json[r'ArrayNumber'] is Iterable + arrayNumber: json[r'ArrayNumber'] is Iterable ? (json[r'ArrayNumber'] as Iterable).cast().toList(growable: false) : const [], ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/capitalization.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/capitalization.dart index 4d613ce167d..0f525b45dd8 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/capitalization.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/capitalization.dart @@ -13,12 +13,12 @@ part of openapi.api; class Capitalization { /// Returns a new [Capitalization] instance. Capitalization({ - this.smallcamel, - this.capitalcamel, + this.smallCamel, + this.capitalCamel, this.smallSnake, this.capitalSnake, - this.scaEthFlowPoints, - this.attName, + this.sCAETHFlowPoints, + this.ATT_NAME, }); /// @@ -27,7 +27,7 @@ class Capitalization { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? smallcamel; + String? smallCamel; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -35,7 +35,7 @@ class Capitalization { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? capitalcamel; + String? capitalCamel; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -59,7 +59,7 @@ class Capitalization { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? scaEthFlowPoints; + String? sCAETHFlowPoints; /// Name of the pet /// @@ -68,39 +68,39 @@ class Capitalization { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? attName; + String? ATT_NAME; @override bool operator ==(Object other) => identical(this, other) || other is Capitalization && - other.smallcamel == smallcamel && - other.capitalcamel == capitalcamel && + other.smallCamel == smallCamel && + other.capitalCamel == capitalCamel && other.smallSnake == smallSnake && other.capitalSnake == capitalSnake && - other.scaEthFlowPoints == scaEthFlowPoints && - other.attName == attName; + other.sCAETHFlowPoints == sCAETHFlowPoints && + other.ATT_NAME == ATT_NAME; @override int get hashCode => // ignore: unnecessary_parenthesis - (smallcamel == null ? 0 : smallcamel!.hashCode) + - (capitalcamel == null ? 0 : capitalcamel!.hashCode) + + (smallCamel == null ? 0 : smallCamel!.hashCode) + + (capitalCamel == null ? 0 : capitalCamel!.hashCode) + (smallSnake == null ? 0 : smallSnake!.hashCode) + (capitalSnake == null ? 0 : capitalSnake!.hashCode) + - (scaEthFlowPoints == null ? 0 : scaEthFlowPoints!.hashCode) + - (attName == null ? 0 : attName!.hashCode); + (sCAETHFlowPoints == null ? 0 : sCAETHFlowPoints!.hashCode) + + (ATT_NAME == null ? 0 : ATT_NAME!.hashCode); @override - String toString() => 'Capitalization[smallcamel=$smallcamel, capitalcamel=$capitalcamel, smallSnake=$smallSnake, capitalSnake=$capitalSnake, scaEthFlowPoints=$scaEthFlowPoints, attName=$attName]'; + String toString() => 'Capitalization[smallCamel=$smallCamel, capitalCamel=$capitalCamel, smallSnake=$smallSnake, capitalSnake=$capitalSnake, sCAETHFlowPoints=$sCAETHFlowPoints, ATT_NAME=$ATT_NAME]'; Map toJson() { final json = {}; - if (this.smallcamel != null) { - json[r'smallCamel'] = this.smallcamel; + if (this.smallCamel != null) { + json[r'smallCamel'] = this.smallCamel; } else { json[r'smallCamel'] = null; } - if (this.capitalcamel != null) { - json[r'CapitalCamel'] = this.capitalcamel; + if (this.capitalCamel != null) { + json[r'CapitalCamel'] = this.capitalCamel; } else { json[r'CapitalCamel'] = null; } @@ -114,13 +114,13 @@ class Capitalization { } else { json[r'Capital_Snake'] = null; } - if (this.scaEthFlowPoints != null) { - json[r'SCA_ETH_Flow_Points'] = this.scaEthFlowPoints; + if (this.sCAETHFlowPoints != null) { + json[r'SCA_ETH_Flow_Points'] = this.sCAETHFlowPoints; } else { json[r'SCA_ETH_Flow_Points'] = null; } - if (this.attName != null) { - json[r'ATT_NAME'] = this.attName; + if (this.ATT_NAME != null) { + json[r'ATT_NAME'] = this.ATT_NAME; } else { json[r'ATT_NAME'] = null; } @@ -146,12 +146,12 @@ class Capitalization { }()); return Capitalization( - smallcamel: mapValueOfType(json, r'smallCamel'), - capitalcamel: mapValueOfType(json, r'CapitalCamel'), + smallCamel: mapValueOfType(json, r'smallCamel'), + capitalCamel: mapValueOfType(json, r'CapitalCamel'), smallSnake: mapValueOfType(json, r'small_Snake'), capitalSnake: mapValueOfType(json, r'Capital_Snake'), - scaEthFlowPoints: mapValueOfType(json, r'SCA_ETH_Flow_Points'), - attName: mapValueOfType(json, r'ATT_NAME'), + sCAETHFlowPoints: mapValueOfType(json, r'SCA_ETH_Flow_Points'), + ATT_NAME: mapValueOfType(json, r'ATT_NAME'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/cat.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/cat.dart index ed6fb49e1a9..398fd852528 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/cat.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/cat.dart @@ -13,12 +13,12 @@ part of openapi.api; class Cat { /// Returns a new [Cat] instance. Cat({ - required this.classname, + required this.className, this.color = 'red', this.declawed, }); - String classname; + String className; String color; @@ -32,23 +32,23 @@ class Cat { @override bool operator ==(Object other) => identical(this, other) || other is Cat && - other.classname == classname && + other.className == className && other.color == color && other.declawed == declawed; @override int get hashCode => // ignore: unnecessary_parenthesis - (classname.hashCode) + + (className.hashCode) + (color.hashCode) + (declawed == null ? 0 : declawed!.hashCode); @override - String toString() => 'Cat[classname=$classname, color=$color, declawed=$declawed]'; + String toString() => 'Cat[className=$className, color=$color, declawed=$declawed]'; Map toJson() { final json = {}; - json[r'className'] = this.classname; + json[r'className'] = this.className; json[r'color'] = this.color; if (this.declawed != null) { json[r'declawed'] = this.declawed; @@ -77,7 +77,7 @@ class Cat { }()); return Cat( - classname: mapValueOfType(json, r'className')!, + className: mapValueOfType(json, r'className')!, color: mapValueOfType(json, r'color') ?? 'red', declawed: mapValueOfType(json, r'declawed'), ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/child_with_nullable.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/child_with_nullable.dart index 8d1041dac9d..2092b2c7684 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/child_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/child_with_nullable.dart @@ -14,13 +14,13 @@ class ChildWithNullable { /// Returns a new [ChildWithNullable] instance. ChildWithNullable({ this.type, - this.nullableproperty, - this.otherproperty, + this.nullableProperty, + this.otherProperty, }); ChildWithNullableTypeEnum? type; - String? nullableproperty; + String? nullableProperty; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -28,23 +28,23 @@ class ChildWithNullable { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? otherproperty; + String? otherProperty; @override bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable && other.type == type && - other.nullableproperty == nullableproperty && - other.otherproperty == otherproperty; + other.nullableProperty == nullableProperty && + other.otherProperty == otherProperty; @override int get hashCode => // ignore: unnecessary_parenthesis (type == null ? 0 : type!.hashCode) + - (nullableproperty == null ? 0 : nullableproperty!.hashCode) + - (otherproperty == null ? 0 : otherproperty!.hashCode); + (nullableProperty == null ? 0 : nullableProperty!.hashCode) + + (otherProperty == null ? 0 : otherProperty!.hashCode); @override - String toString() => 'ChildWithNullable[type=$type, nullableproperty=$nullableproperty, otherproperty=$otherproperty]'; + String toString() => 'ChildWithNullable[type=$type, nullableProperty=$nullableProperty, otherProperty=$otherProperty]'; Map toJson() { final json = {}; @@ -53,13 +53,13 @@ class ChildWithNullable { } else { json[r'type'] = null; } - if (this.nullableproperty != null) { - json[r'nullableProperty'] = this.nullableproperty; + if (this.nullableProperty != null) { + json[r'nullableProperty'] = this.nullableProperty; } else { json[r'nullableProperty'] = null; } - if (this.otherproperty != null) { - json[r'otherProperty'] = this.otherproperty; + if (this.otherProperty != null) { + json[r'otherProperty'] = this.otherProperty; } else { json[r'otherProperty'] = null; } @@ -86,8 +86,8 @@ class ChildWithNullable { return ChildWithNullable( type: ChildWithNullableTypeEnum.fromJson(json[r'type']), - nullableproperty: mapValueOfType(json, r'nullableProperty'), - otherproperty: mapValueOfType(json, r'otherProperty'), + nullableProperty: mapValueOfType(json, r'nullableProperty'), + otherProperty: mapValueOfType(json, r'otherProperty'), ); } return null; @@ -151,11 +151,11 @@ class ChildWithNullableTypeEnum { String toJson() => value; - static const childwithnullable = ChildWithNullableTypeEnum._(r'ChildWithNullable'); + static const childWithNullable = ChildWithNullableTypeEnum._(r'ChildWithNullable'); /// List of all possible values in this [enum][ChildWithNullableTypeEnum]. static const values = [ - childwithnullable, + childWithNullable, ]; static ChildWithNullableTypeEnum? fromJson(dynamic value) => ChildWithNullableTypeEnumTypeTransformer().decode(value); @@ -194,7 +194,7 @@ class ChildWithNullableTypeEnumTypeTransformer { ChildWithNullableTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case r'ChildWithNullable': return ChildWithNullableTypeEnum.childwithnullable; + case r'ChildWithNullable': return ChildWithNullableTypeEnum.childWithNullable; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/dog.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/dog.dart index 227bd1b5577..d7677510b91 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/dog.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/dog.dart @@ -13,12 +13,12 @@ part of openapi.api; class Dog { /// Returns a new [Dog] instance. Dog({ - required this.classname, + required this.className, this.color = 'red', this.breed, }); - String classname; + String className; String color; @@ -32,23 +32,23 @@ class Dog { @override bool operator ==(Object other) => identical(this, other) || other is Dog && - other.classname == classname && + other.className == className && other.color == color && other.breed == breed; @override int get hashCode => // ignore: unnecessary_parenthesis - (classname.hashCode) + + (className.hashCode) + (color.hashCode) + (breed == null ? 0 : breed!.hashCode); @override - String toString() => 'Dog[classname=$classname, color=$color, breed=$breed]'; + String toString() => 'Dog[className=$className, color=$color, breed=$breed]'; Map toJson() { final json = {}; - json[r'className'] = this.classname; + json[r'className'] = this.className; json[r'color'] = this.color; if (this.breed != null) { json[r'breed'] = this.breed; @@ -77,7 +77,7 @@ class Dog { }()); return Dog( - classname: mapValueOfType(json, r'className')!, + className: mapValueOfType(json, r'className')!, color: mapValueOfType(json, r'color') ?? 'red', breed: mapValueOfType(json, r'breed'), ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/enum_class.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/enum_class.dart index 898da969de8..584186d9a01 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/enum_class.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/enum_class.dart @@ -25,13 +25,23 @@ class EnumClass { static const abc = EnumClass._(r'_abc'); static const efg = EnumClass._(r'-efg'); - static const leftParenthesisXyzrightParenthesis = EnumClass._(r'(xyz)'); + static const leftParenthesisXyzRightParenthesis = EnumClass._(r'(xyz)'); + static const test = EnumClass._(r'TEST'); + static const testA = EnumClass._(r'TEST_A'); + static const testAAbc = EnumClass._(r'TEST_A_ABC'); + static const tESTA = EnumClass._(r'TEST_a'); + static const tEST = EnumClass._(r'tEST'); /// List of all possible values in this [enum][EnumClass]. static const values = [ abc, efg, - leftParenthesisXyzrightParenthesis, + leftParenthesisXyzRightParenthesis, + test, + testA, + testAAbc, + tESTA, + tEST, ]; static EnumClass? fromJson(dynamic value) => EnumClassTypeTransformer().decode(value); @@ -72,7 +82,12 @@ class EnumClassTypeTransformer { switch (data) { case r'_abc': return EnumClass.abc; case r'-efg': return EnumClass.efg; - case r'(xyz)': return EnumClass.leftParenthesisXyzrightParenthesis; + case r'(xyz)': return EnumClass.leftParenthesisXyzRightParenthesis; + case r'TEST': return EnumClass.test; + case r'TEST_A': return EnumClass.testA; + case r'TEST_A_ABC': return EnumClass.testAAbc; + case r'TEST_a': return EnumClass.tESTA; + case r'tEST': return EnumClass.tEST; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/enum_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/enum_test.dart index 898fae87bff..bca1e2d81d4 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/enum_test.dart @@ -17,10 +17,10 @@ class EnumTest { required this.enumStringRequired, this.enumInteger, this.enumNumber, - this.outerenum, - this.outerenuminteger, - this.outerenumdefaultvalue, - this.outerenumintegerdefaultvalue, + this.outerEnum, + this.outerEnumInteger, + this.outerEnumDefaultValue, + this.outerEnumIntegerDefaultValue, }); EnumTestEnumStringEnum? enumString; @@ -31,7 +31,7 @@ class EnumTest { EnumTestEnumNumberEnum? enumNumber; - OuterEnum? outerenum; + OuterEnum? outerEnum; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -39,7 +39,7 @@ class EnumTest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - OuterEnumInteger? outerenuminteger; + OuterEnumInteger? outerEnumInteger; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -47,7 +47,7 @@ class EnumTest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - OuterEnumDefaultValue? outerenumdefaultvalue; + OuterEnumDefaultValue? outerEnumDefaultValue; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -55,7 +55,7 @@ class EnumTest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - OuterEnumIntegerDefaultValue? outerenumintegerdefaultvalue; + OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue; @override bool operator ==(Object other) => identical(this, other) || other is EnumTest && @@ -63,10 +63,10 @@ class EnumTest { other.enumStringRequired == enumStringRequired && other.enumInteger == enumInteger && other.enumNumber == enumNumber && - other.outerenum == outerenum && - other.outerenuminteger == outerenuminteger && - other.outerenumdefaultvalue == outerenumdefaultvalue && - other.outerenumintegerdefaultvalue == outerenumintegerdefaultvalue; + other.outerEnum == outerEnum && + other.outerEnumInteger == outerEnumInteger && + other.outerEnumDefaultValue == outerEnumDefaultValue && + other.outerEnumIntegerDefaultValue == outerEnumIntegerDefaultValue; @override int get hashCode => @@ -75,13 +75,13 @@ class EnumTest { (enumStringRequired.hashCode) + (enumInteger == null ? 0 : enumInteger!.hashCode) + (enumNumber == null ? 0 : enumNumber!.hashCode) + - (outerenum == null ? 0 : outerenum!.hashCode) + - (outerenuminteger == null ? 0 : outerenuminteger!.hashCode) + - (outerenumdefaultvalue == null ? 0 : outerenumdefaultvalue!.hashCode) + - (outerenumintegerdefaultvalue == null ? 0 : outerenumintegerdefaultvalue!.hashCode); + (outerEnum == null ? 0 : outerEnum!.hashCode) + + (outerEnumInteger == null ? 0 : outerEnumInteger!.hashCode) + + (outerEnumDefaultValue == null ? 0 : outerEnumDefaultValue!.hashCode) + + (outerEnumIntegerDefaultValue == null ? 0 : outerEnumIntegerDefaultValue!.hashCode); @override - String toString() => 'EnumTest[enumString=$enumString, enumStringRequired=$enumStringRequired, enumInteger=$enumInteger, enumNumber=$enumNumber, outerenum=$outerenum, outerenuminteger=$outerenuminteger, outerenumdefaultvalue=$outerenumdefaultvalue, outerenumintegerdefaultvalue=$outerenumintegerdefaultvalue]'; + String toString() => 'EnumTest[enumString=$enumString, enumStringRequired=$enumStringRequired, enumInteger=$enumInteger, enumNumber=$enumNumber, outerEnum=$outerEnum, outerEnumInteger=$outerEnumInteger, outerEnumDefaultValue=$outerEnumDefaultValue, outerEnumIntegerDefaultValue=$outerEnumIntegerDefaultValue]'; Map toJson() { final json = {}; @@ -101,23 +101,23 @@ class EnumTest { } else { json[r'enum_number'] = null; } - if (this.outerenum != null) { - json[r'outerEnum'] = this.outerenum; + if (this.outerEnum != null) { + json[r'outerEnum'] = this.outerEnum; } else { json[r'outerEnum'] = null; } - if (this.outerenuminteger != null) { - json[r'outerEnumInteger'] = this.outerenuminteger; + if (this.outerEnumInteger != null) { + json[r'outerEnumInteger'] = this.outerEnumInteger; } else { json[r'outerEnumInteger'] = null; } - if (this.outerenumdefaultvalue != null) { - json[r'outerEnumDefaultValue'] = this.outerenumdefaultvalue; + if (this.outerEnumDefaultValue != null) { + json[r'outerEnumDefaultValue'] = this.outerEnumDefaultValue; } else { json[r'outerEnumDefaultValue'] = null; } - if (this.outerenumintegerdefaultvalue != null) { - json[r'outerEnumIntegerDefaultValue'] = this.outerenumintegerdefaultvalue; + if (this.outerEnumIntegerDefaultValue != null) { + json[r'outerEnumIntegerDefaultValue'] = this.outerEnumIntegerDefaultValue; } else { json[r'outerEnumIntegerDefaultValue'] = null; } @@ -147,10 +147,10 @@ class EnumTest { enumStringRequired: EnumTestEnumStringRequiredEnum.fromJson(json[r'enum_string_required'])!, enumInteger: EnumTestEnumIntegerEnum.fromJson(json[r'enum_integer']), enumNumber: EnumTestEnumNumberEnum.fromJson(json[r'enum_number']), - outerenum: OuterEnum.fromJson(json[r'outerEnum']), - outerenuminteger: OuterEnumInteger.fromJson(json[r'outerEnumInteger']), - outerenumdefaultvalue: OuterEnumDefaultValue.fromJson(json[r'outerEnumDefaultValue']), - outerenumintegerdefaultvalue: OuterEnumIntegerDefaultValue.fromJson(json[r'outerEnumIntegerDefaultValue']), + outerEnum: OuterEnum.fromJson(json[r'outerEnum']), + outerEnumInteger: OuterEnumInteger.fromJson(json[r'outerEnumInteger']), + outerEnumDefaultValue: OuterEnumDefaultValue.fromJson(json[r'outerEnumDefaultValue']), + outerEnumIntegerDefaultValue: OuterEnumIntegerDefaultValue.fromJson(json[r'outerEnumIntegerDefaultValue']), ); } return null; @@ -443,13 +443,13 @@ class EnumTestEnumNumberEnum { double toJson() => value; - static const number1period1 = EnumTestEnumNumberEnum._('1.1'); - static const numberNegative1period2 = EnumTestEnumNumberEnum._('-1.2'); + static const number1Period1 = EnumTestEnumNumberEnum._('1.1'); + static const numberNegative1Period2 = EnumTestEnumNumberEnum._('-1.2'); /// List of all possible values in this [enum][EnumTestEnumNumberEnum]. static const values = [ - number1period1, - numberNegative1period2, + number1Period1, + numberNegative1Period2, ]; static EnumTestEnumNumberEnum? fromJson(dynamic value) => EnumTestEnumNumberEnumTypeTransformer().decode(value); @@ -488,8 +488,8 @@ class EnumTestEnumNumberEnumTypeTransformer { EnumTestEnumNumberEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case '1.1': return EnumTestEnumNumberEnum.number1period1; - case '-1.2': return EnumTestEnumNumberEnum.numberNegative1period2; + case '1.1': return EnumTestEnumNumberEnum.number1Period1; + case '-1.2': return EnumTestEnumNumberEnum.numberNegative1Period2; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/fake_big_decimal_map200_response.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/fake_big_decimal_map200_response.dart index 249f9c2401d..55de1b12e98 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/fake_big_decimal_map200_response.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/fake_big_decimal_map200_response.dart @@ -13,8 +13,8 @@ part of openapi.api; class FakeBigDecimalMap200Response { /// Returns a new [FakeBigDecimalMap200Response] instance. FakeBigDecimalMap200Response({ - this.someid, - this.somemap = const {}, + this.someId, + this.someMap = const {}, }); /// @@ -23,32 +23,32 @@ class FakeBigDecimalMap200Response { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - num? someid; + num? someId; - Map somemap; + Map someMap; @override bool operator ==(Object other) => identical(this, other) || other is FakeBigDecimalMap200Response && - other.someid == someid && - _deepEquality.equals(other.somemap, somemap); + other.someId == someId && + _deepEquality.equals(other.someMap, someMap); @override int get hashCode => // ignore: unnecessary_parenthesis - (someid == null ? 0 : someid!.hashCode) + - (somemap.hashCode); + (someId == null ? 0 : someId!.hashCode) + + (someMap.hashCode); @override - String toString() => 'FakeBigDecimalMap200Response[someid=$someid, somemap=$somemap]'; + String toString() => 'FakeBigDecimalMap200Response[someId=$someId, someMap=$someMap]'; Map toJson() { final json = {}; - if (this.someid != null) { - json[r'someId'] = this.someid; + if (this.someId != null) { + json[r'someId'] = this.someId; } else { json[r'someId'] = null; } - json[r'someMap'] = this.somemap; + json[r'someMap'] = this.someMap; return json; } @@ -71,8 +71,8 @@ class FakeBigDecimalMap200Response { }()); return FakeBigDecimalMap200Response( - someid: num.parse('${json[r'someId']}'), - somemap: mapCastOfType(json, r'someMap') ?? const {}, + someId: num.parse('${json[r'someId']}'), + someMap: mapCastOfType(json, r'someMap') ?? const {}, ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/format_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/format_test.dart index 957a6b7c041..b0edc2e38e1 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/format_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/format_test.dart @@ -24,7 +24,7 @@ class FormatTest { required this.byte, this.binary, required this.date, - this.datetime, + this.dateTime, this.uuid, required this.password, this.patternWithDigits, @@ -117,7 +117,7 @@ class FormatTest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DateTime? datetime; + DateTime? dateTime; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -160,7 +160,7 @@ class FormatTest { other.byte == byte && other.binary == binary && other.date == date && - other.datetime == datetime && + other.dateTime == dateTime && other.uuid == uuid && other.password == password && other.patternWithDigits == patternWithDigits && @@ -180,14 +180,14 @@ class FormatTest { (byte.hashCode) + (binary == null ? 0 : binary!.hashCode) + (date.hashCode) + - (datetime == null ? 0 : datetime!.hashCode) + + (dateTime == null ? 0 : dateTime!.hashCode) + (uuid == null ? 0 : uuid!.hashCode) + (password.hashCode) + (patternWithDigits == null ? 0 : patternWithDigits!.hashCode) + (patternWithDigitsAndDelimiter == null ? 0 : patternWithDigitsAndDelimiter!.hashCode); @override - String toString() => 'FormatTest[integer=$integer, int32=$int32, int64=$int64, number=$number, float=$float, double_=$double_, decimal=$decimal, string=$string, byte=$byte, binary=$binary, date=$date, datetime=$datetime, uuid=$uuid, password=$password, patternWithDigits=$patternWithDigits, patternWithDigitsAndDelimiter=$patternWithDigitsAndDelimiter]'; + String toString() => 'FormatTest[integer=$integer, int32=$int32, int64=$int64, number=$number, float=$float, double_=$double_, decimal=$decimal, string=$string, byte=$byte, binary=$binary, date=$date, dateTime=$dateTime, uuid=$uuid, password=$password, patternWithDigits=$patternWithDigits, patternWithDigitsAndDelimiter=$patternWithDigitsAndDelimiter]'; Map toJson() { final json = {}; @@ -234,8 +234,8 @@ class FormatTest { json[r'binary'] = null; } json[r'date'] = _dateFormatter.format(this.date.toUtc()); - if (this.datetime != null) { - json[r'dateTime'] = this.datetime!.toUtc().toIso8601String(); + if (this.dateTime != null) { + json[r'dateTime'] = this.dateTime!.toUtc().toIso8601String(); } else { json[r'dateTime'] = null; } @@ -288,7 +288,7 @@ class FormatTest { byte: mapValueOfType(json, r'byte')!, binary: null, // No support for decoding binary content from JSON date: mapDateTime(json, r'date', r'')!, - datetime: mapDateTime(json, r'dateTime', r''), + dateTime: mapDateTime(json, r'dateTime', r''), uuid: mapValueOfType(json, r'uuid'), password: mapValueOfType(json, r'password')!, patternWithDigits: mapValueOfType(json, r'pattern_with_digits'), diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/health_check_result.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/health_check_result.dart index bf69f5c1360..b3a3f7cb8e0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/health_check_result.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/health_check_result.dart @@ -13,27 +13,27 @@ part of openapi.api; class HealthCheckResult { /// Returns a new [HealthCheckResult] instance. HealthCheckResult({ - this.nullablemessage, + this.nullableMessage, }); - String? nullablemessage; + String? nullableMessage; @override bool operator ==(Object other) => identical(this, other) || other is HealthCheckResult && - other.nullablemessage == nullablemessage; + other.nullableMessage == nullableMessage; @override int get hashCode => // ignore: unnecessary_parenthesis - (nullablemessage == null ? 0 : nullablemessage!.hashCode); + (nullableMessage == null ? 0 : nullableMessage!.hashCode); @override - String toString() => 'HealthCheckResult[nullablemessage=$nullablemessage]'; + String toString() => 'HealthCheckResult[nullableMessage=$nullableMessage]'; Map toJson() { final json = {}; - if (this.nullablemessage != null) { - json[r'NullableMessage'] = this.nullablemessage; + if (this.nullableMessage != null) { + json[r'NullableMessage'] = this.nullableMessage; } else { json[r'NullableMessage'] = null; } @@ -59,7 +59,7 @@ class HealthCheckResult { }()); return HealthCheckResult( - nullablemessage: mapValueOfType(json, r'NullableMessage'), + nullableMessage: mapValueOfType(json, r'NullableMessage'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/mixed_properties_and_additional_properties_class.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/mixed_properties_and_additional_properties_class.dart index 7a5b5ad0b05..edc224b7924 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/mixed_properties_and_additional_properties_class.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/mixed_properties_and_additional_properties_class.dart @@ -14,7 +14,7 @@ class MixedPropertiesAndAdditionalPropertiesClass { /// Returns a new [MixedPropertiesAndAdditionalPropertiesClass] instance. MixedPropertiesAndAdditionalPropertiesClass({ this.uuid, - this.datetime, + this.dateTime, this.map = const {}, }); @@ -32,25 +32,25 @@ class MixedPropertiesAndAdditionalPropertiesClass { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DateTime? datetime; + DateTime? dateTime; Map map; @override bool operator ==(Object other) => identical(this, other) || other is MixedPropertiesAndAdditionalPropertiesClass && other.uuid == uuid && - other.datetime == datetime && + other.dateTime == dateTime && _deepEquality.equals(other.map, map); @override int get hashCode => // ignore: unnecessary_parenthesis (uuid == null ? 0 : uuid!.hashCode) + - (datetime == null ? 0 : datetime!.hashCode) + + (dateTime == null ? 0 : dateTime!.hashCode) + (map.hashCode); @override - String toString() => 'MixedPropertiesAndAdditionalPropertiesClass[uuid=$uuid, datetime=$datetime, map=$map]'; + String toString() => 'MixedPropertiesAndAdditionalPropertiesClass[uuid=$uuid, dateTime=$dateTime, map=$map]'; Map toJson() { final json = {}; @@ -59,8 +59,8 @@ class MixedPropertiesAndAdditionalPropertiesClass { } else { json[r'uuid'] = null; } - if (this.datetime != null) { - json[r'dateTime'] = this.datetime!.toUtc().toIso8601String(); + if (this.dateTime != null) { + json[r'dateTime'] = this.dateTime!.toUtc().toIso8601String(); } else { json[r'dateTime'] = null; } @@ -88,7 +88,7 @@ class MixedPropertiesAndAdditionalPropertiesClass { return MixedPropertiesAndAdditionalPropertiesClass( uuid: mapValueOfType(json, r'uuid'), - datetime: mapDateTime(json, r'dateTime', r''), + dateTime: mapDateTime(json, r'dateTime', r''), map: Animal.mapFromJson(json[r'map']), ); } diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/model_file.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/model_file.dart index c93f3d57f55..5183e0f98e4 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/model_file.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/model_file.dart @@ -13,7 +13,7 @@ part of openapi.api; class ModelFile { /// Returns a new [ModelFile] instance. ModelFile({ - this.sourceuri, + this.sourceURI, }); /// Test capitalization @@ -23,24 +23,24 @@ class ModelFile { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? sourceuri; + String? sourceURI; @override bool operator ==(Object other) => identical(this, other) || other is ModelFile && - other.sourceuri == sourceuri; + other.sourceURI == sourceURI; @override int get hashCode => // ignore: unnecessary_parenthesis - (sourceuri == null ? 0 : sourceuri!.hashCode); + (sourceURI == null ? 0 : sourceURI!.hashCode); @override - String toString() => 'ModelFile[sourceuri=$sourceuri]'; + String toString() => 'ModelFile[sourceURI=$sourceURI]'; Map toJson() { final json = {}; - if (this.sourceuri != null) { - json[r'sourceURI'] = this.sourceuri; + if (this.sourceURI != null) { + json[r'sourceURI'] = this.sourceURI; } else { json[r'sourceURI'] = null; } @@ -66,7 +66,7 @@ class ModelFile { }()); return ModelFile( - sourceuri: mapValueOfType(json, r'sourceURI'), + sourceURI: mapValueOfType(json, r'sourceURI'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/number_only.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/number_only.dart index c3942c6fdc8..a27a5682533 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/number_only.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/number_only.dart @@ -13,7 +13,7 @@ part of openapi.api; class NumberOnly { /// Returns a new [NumberOnly] instance. NumberOnly({ - this.justnumber, + this.justNumber, }); /// @@ -22,24 +22,24 @@ class NumberOnly { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - num? justnumber; + num? justNumber; @override bool operator ==(Object other) => identical(this, other) || other is NumberOnly && - other.justnumber == justnumber; + other.justNumber == justNumber; @override int get hashCode => // ignore: unnecessary_parenthesis - (justnumber == null ? 0 : justnumber!.hashCode); + (justNumber == null ? 0 : justNumber!.hashCode); @override - String toString() => 'NumberOnly[justnumber=$justnumber]'; + String toString() => 'NumberOnly[justNumber=$justNumber]'; Map toJson() { final json = {}; - if (this.justnumber != null) { - json[r'JustNumber'] = this.justnumber; + if (this.justNumber != null) { + json[r'JustNumber'] = this.justNumber; } else { json[r'JustNumber'] = null; } @@ -65,7 +65,7 @@ class NumberOnly { }()); return NumberOnly( - justnumber: num.parse('${json[r'JustNumber']}'), + justNumber: num.parse('${json[r'JustNumber']}'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/object_with_deprecated_fields.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/object_with_deprecated_fields.dart index 7e2c588d7fe..5c7386821aa 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/object_with_deprecated_fields.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/object_with_deprecated_fields.dart @@ -15,7 +15,7 @@ class ObjectWithDeprecatedFields { ObjectWithDeprecatedFields({ this.uuid, this.id, - this.deprecatedref, + this.deprecatedRef, this.bars = const [], }); @@ -41,7 +41,7 @@ class ObjectWithDeprecatedFields { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DeprecatedObject? deprecatedref; + DeprecatedObject? deprecatedRef; List bars; @@ -49,7 +49,7 @@ class ObjectWithDeprecatedFields { bool operator ==(Object other) => identical(this, other) || other is ObjectWithDeprecatedFields && other.uuid == uuid && other.id == id && - other.deprecatedref == deprecatedref && + other.deprecatedRef == deprecatedRef && _deepEquality.equals(other.bars, bars); @override @@ -57,11 +57,11 @@ class ObjectWithDeprecatedFields { // ignore: unnecessary_parenthesis (uuid == null ? 0 : uuid!.hashCode) + (id == null ? 0 : id!.hashCode) + - (deprecatedref == null ? 0 : deprecatedref!.hashCode) + + (deprecatedRef == null ? 0 : deprecatedRef!.hashCode) + (bars.hashCode); @override - String toString() => 'ObjectWithDeprecatedFields[uuid=$uuid, id=$id, deprecatedref=$deprecatedref, bars=$bars]'; + String toString() => 'ObjectWithDeprecatedFields[uuid=$uuid, id=$id, deprecatedRef=$deprecatedRef, bars=$bars]'; Map toJson() { final json = {}; @@ -75,8 +75,8 @@ class ObjectWithDeprecatedFields { } else { json[r'id'] = null; } - if (this.deprecatedref != null) { - json[r'deprecatedRef'] = this.deprecatedref; + if (this.deprecatedRef != null) { + json[r'deprecatedRef'] = this.deprecatedRef; } else { json[r'deprecatedRef'] = null; } @@ -105,7 +105,7 @@ class ObjectWithDeprecatedFields { return ObjectWithDeprecatedFields( uuid: mapValueOfType(json, r'uuid'), id: num.parse('${json[r'id']}'), - deprecatedref: DeprecatedObject.fromJson(json[r'deprecatedRef']), + deprecatedRef: DeprecatedObject.fromJson(json[r'deprecatedRef']), bars: json[r'bars'] is Iterable ? (json[r'bars'] as Iterable).cast().toList(growable: false) : const [], diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/order.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/order.dart index d9c4cc9887a..bc591de9fab 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/order.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/order.dart @@ -14,9 +14,9 @@ class Order { /// Returns a new [Order] instance. Order({ this.id, - this.petid, + this.petId, this.quantity, - this.shipdate, + this.shipDate, this.status, this.complete = false, }); @@ -35,7 +35,7 @@ class Order { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? petid; + int? petId; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -51,7 +51,7 @@ class Order { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - DateTime? shipdate; + DateTime? shipDate; /// Order Status OrderStatusEnum? status; @@ -61,9 +61,9 @@ class Order { @override bool operator ==(Object other) => identical(this, other) || other is Order && other.id == id && - other.petid == petid && + other.petId == petId && other.quantity == quantity && - other.shipdate == shipdate && + other.shipDate == shipDate && other.status == status && other.complete == complete; @@ -71,14 +71,14 @@ class Order { int get hashCode => // ignore: unnecessary_parenthesis (id == null ? 0 : id!.hashCode) + - (petid == null ? 0 : petid!.hashCode) + + (petId == null ? 0 : petId!.hashCode) + (quantity == null ? 0 : quantity!.hashCode) + - (shipdate == null ? 0 : shipdate!.hashCode) + + (shipDate == null ? 0 : shipDate!.hashCode) + (status == null ? 0 : status!.hashCode) + (complete.hashCode); @override - String toString() => 'Order[id=$id, petid=$petid, quantity=$quantity, shipdate=$shipdate, status=$status, complete=$complete]'; + String toString() => 'Order[id=$id, petId=$petId, quantity=$quantity, shipDate=$shipDate, status=$status, complete=$complete]'; Map toJson() { final json = {}; @@ -87,8 +87,8 @@ class Order { } else { json[r'id'] = null; } - if (this.petid != null) { - json[r'petId'] = this.petid; + if (this.petId != null) { + json[r'petId'] = this.petId; } else { json[r'petId'] = null; } @@ -97,8 +97,8 @@ class Order { } else { json[r'quantity'] = null; } - if (this.shipdate != null) { - json[r'shipDate'] = this.shipdate!.toUtc().toIso8601String(); + if (this.shipDate != null) { + json[r'shipDate'] = this.shipDate!.toUtc().toIso8601String(); } else { json[r'shipDate'] = null; } @@ -131,9 +131,9 @@ class Order { return Order( id: mapValueOfType(json, r'id'), - petid: mapValueOfType(json, r'petId'), + petId: mapValueOfType(json, r'petId'), quantity: mapValueOfType(json, r'quantity'), - shipdate: mapDateTime(json, r'shipDate', r''), + shipDate: mapDateTime(json, r'shipDate', r''), status: OrderStatusEnum.fromJson(json[r'status']), complete: mapValueOfType(json, r'complete') ?? false, ); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/parent_with_nullable.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/parent_with_nullable.dart index 5fc3c16cd56..219967ad59f 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/parent_with_nullable.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/parent_with_nullable.dart @@ -14,26 +14,26 @@ class ParentWithNullable { /// Returns a new [ParentWithNullable] instance. ParentWithNullable({ this.type, - this.nullableproperty, + this.nullableProperty, }); ParentWithNullableTypeEnum? type; - String? nullableproperty; + String? nullableProperty; @override bool operator ==(Object other) => identical(this, other) || other is ParentWithNullable && other.type == type && - other.nullableproperty == nullableproperty; + other.nullableProperty == nullableProperty; @override int get hashCode => // ignore: unnecessary_parenthesis (type == null ? 0 : type!.hashCode) + - (nullableproperty == null ? 0 : nullableproperty!.hashCode); + (nullableProperty == null ? 0 : nullableProperty!.hashCode); @override - String toString() => 'ParentWithNullable[type=$type, nullableproperty=$nullableproperty]'; + String toString() => 'ParentWithNullable[type=$type, nullableProperty=$nullableProperty]'; Map toJson() { final json = {}; @@ -42,8 +42,8 @@ class ParentWithNullable { } else { json[r'type'] = null; } - if (this.nullableproperty != null) { - json[r'nullableProperty'] = this.nullableproperty; + if (this.nullableProperty != null) { + json[r'nullableProperty'] = this.nullableProperty; } else { json[r'nullableProperty'] = null; } @@ -70,7 +70,7 @@ class ParentWithNullable { return ParentWithNullable( type: ParentWithNullableTypeEnum.fromJson(json[r'type']), - nullableproperty: mapValueOfType(json, r'nullableProperty'), + nullableProperty: mapValueOfType(json, r'nullableProperty'), ); } return null; @@ -134,11 +134,11 @@ class ParentWithNullableTypeEnum { String toJson() => value; - static const childwithnullable = ParentWithNullableTypeEnum._(r'ChildWithNullable'); + static const childWithNullable = ParentWithNullableTypeEnum._(r'ChildWithNullable'); /// List of all possible values in this [enum][ParentWithNullableTypeEnum]. static const values = [ - childwithnullable, + childWithNullable, ]; static ParentWithNullableTypeEnum? fromJson(dynamic value) => ParentWithNullableTypeEnumTypeTransformer().decode(value); @@ -177,7 +177,7 @@ class ParentWithNullableTypeEnumTypeTransformer { ParentWithNullableTypeEnum? decode(dynamic data, {bool allowNull = true}) { if (data != null) { switch (data) { - case r'ChildWithNullable': return ParentWithNullableTypeEnum.childwithnullable; + case r'ChildWithNullable': return ParentWithNullableTypeEnum.childWithNullable; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/pet.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/pet.dart index 6d44804b9a6..806f91e41ac 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/pet.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/pet.dart @@ -16,7 +16,7 @@ class Pet { this.id, this.category, required this.name, - this.photourls = const {}, + this.photoUrls = const {}, this.tags = const [], this.status, }); @@ -39,7 +39,7 @@ class Pet { String name; - Set photourls; + Set photoUrls; List tags; @@ -51,7 +51,7 @@ class Pet { other.id == id && other.category == category && other.name == name && - _deepEquality.equals(other.photourls, photourls) && + _deepEquality.equals(other.photoUrls, photoUrls) && _deepEquality.equals(other.tags, tags) && other.status == status; @@ -61,12 +61,12 @@ class Pet { (id == null ? 0 : id!.hashCode) + (category == null ? 0 : category!.hashCode) + (name.hashCode) + - (photourls.hashCode) + + (photoUrls.hashCode) + (tags.hashCode) + (status == null ? 0 : status!.hashCode); @override - String toString() => 'Pet[id=$id, category=$category, name=$name, photourls=$photourls, tags=$tags, status=$status]'; + String toString() => 'Pet[id=$id, category=$category, name=$name, photoUrls=$photoUrls, tags=$tags, status=$status]'; Map toJson() { final json = {}; @@ -81,7 +81,7 @@ class Pet { json[r'category'] = null; } json[r'name'] = this.name; - json[r'photoUrls'] = this.photourls.toList(growable: false); + json[r'photoUrls'] = this.photoUrls.toList(growable: false); json[r'tags'] = this.tags; if (this.status != null) { json[r'status'] = this.status; @@ -113,7 +113,7 @@ class Pet { id: mapValueOfType(json, r'id'), category: Category.fromJson(json[r'category']), name: mapValueOfType(json, r'name')!, - photourls: json[r'photoUrls'] is Iterable + photoUrls: json[r'photoUrls'] is Iterable ? (json[r'photoUrls'] as Iterable).cast().toSet() : const {}, tags: Tag.listFromJson(json[r'tags']), diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/special_model_name.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/special_model_name.dart index ac2f099a4df..aeb25a138f0 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/special_model_name.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/special_model_name.dart @@ -13,7 +13,7 @@ part of openapi.api; class SpecialModelName { /// Returns a new [SpecialModelName] instance. SpecialModelName({ - this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket, + this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket, }); /// @@ -22,24 +22,24 @@ class SpecialModelName { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + int? dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; @override bool operator ==(Object other) => identical(this, other) || other is SpecialModelName && - other.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket == dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + other.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket == dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; @override int get hashCode => // ignore: unnecessary_parenthesis - (dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket == null ? 0 : dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket!.hashCode); + (dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket == null ? 0 : dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket!.hashCode); @override - String toString() => 'SpecialModelName[dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket=$dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket]'; + String toString() => 'SpecialModelName[dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket=$dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket]'; Map toJson() { final json = {}; - if (this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket != null) { - json[r'$special[property.name]'] = this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket; + if (this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket != null) { + json[r'$special[property.name]'] = this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket; } else { json[r'$special[property.name]'] = null; } @@ -65,7 +65,7 @@ class SpecialModelName { }()); return SpecialModelName( - dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket: mapValueOfType(json, r'$special[property.name]'), + dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket: mapValueOfType(json, r'$special[property.name]'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/test_inline_freeform_additional_properties_request.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/test_inline_freeform_additional_properties_request.dart index fd81a25bd83..8e2316a619d 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/test_inline_freeform_additional_properties_request.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/test_inline_freeform_additional_properties_request.dart @@ -13,7 +13,7 @@ part of openapi.api; class TestInlineFreeformAdditionalPropertiesRequest { /// Returns a new [TestInlineFreeformAdditionalPropertiesRequest] instance. TestInlineFreeformAdditionalPropertiesRequest({ - this.someproperty, + this.someProperty, }); /// @@ -22,24 +22,24 @@ class TestInlineFreeformAdditionalPropertiesRequest { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? someproperty; + String? someProperty; @override bool operator ==(Object other) => identical(this, other) || other is TestInlineFreeformAdditionalPropertiesRequest && - other.someproperty == someproperty; + other.someProperty == someProperty; @override int get hashCode => // ignore: unnecessary_parenthesis - (someproperty == null ? 0 : someproperty!.hashCode); + (someProperty == null ? 0 : someProperty!.hashCode); @override - String toString() => 'TestInlineFreeformAdditionalPropertiesRequest[someproperty=$someproperty]'; + String toString() => 'TestInlineFreeformAdditionalPropertiesRequest[someProperty=$someProperty]'; Map toJson() { final json = {}; - if (this.someproperty != null) { - json[r'someProperty'] = this.someproperty; + if (this.someProperty != null) { + json[r'someProperty'] = this.someProperty; } else { json[r'someProperty'] = null; } @@ -65,7 +65,7 @@ class TestInlineFreeformAdditionalPropertiesRequest { }()); return TestInlineFreeformAdditionalPropertiesRequest( - someproperty: mapValueOfType(json, r'someProperty'), + someProperty: mapValueOfType(json, r'someProperty'), ); } return null; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/user.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/user.dart index b6be541d49f..395f9e38e04 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/user.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_use_lower_camel_case/lib/model/user.dart @@ -15,12 +15,12 @@ class User { User({ this.id, this.username, - this.firstname, - this.lastname, + this.firstName, + this.lastName, this.email, this.password, this.phone, - this.userstatus, + this.userStatus, }); /// @@ -45,7 +45,7 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? firstname; + String? firstName; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -53,7 +53,7 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - String? lastname; + String? lastName; /// /// Please note: This property should have been non-nullable! Since the specification file @@ -86,33 +86,33 @@ class User { /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// - int? userstatus; + int? userStatus; @override bool operator ==(Object other) => identical(this, other) || other is User && other.id == id && other.username == username && - other.firstname == firstname && - other.lastname == lastname && + other.firstName == firstName && + other.lastName == lastName && other.email == email && other.password == password && other.phone == phone && - other.userstatus == userstatus; + other.userStatus == userStatus; @override int get hashCode => // ignore: unnecessary_parenthesis (id == null ? 0 : id!.hashCode) + (username == null ? 0 : username!.hashCode) + - (firstname == null ? 0 : firstname!.hashCode) + - (lastname == null ? 0 : lastname!.hashCode) + + (firstName == null ? 0 : firstName!.hashCode) + + (lastName == null ? 0 : lastName!.hashCode) + (email == null ? 0 : email!.hashCode) + (password == null ? 0 : password!.hashCode) + (phone == null ? 0 : phone!.hashCode) + - (userstatus == null ? 0 : userstatus!.hashCode); + (userStatus == null ? 0 : userStatus!.hashCode); @override - String toString() => 'User[id=$id, username=$username, firstname=$firstname, lastname=$lastname, email=$email, password=$password, phone=$phone, userstatus=$userstatus]'; + String toString() => 'User[id=$id, username=$username, firstName=$firstName, lastName=$lastName, email=$email, password=$password, phone=$phone, userStatus=$userStatus]'; Map toJson() { final json = {}; @@ -126,13 +126,13 @@ class User { } else { json[r'username'] = null; } - if (this.firstname != null) { - json[r'firstName'] = this.firstname; + if (this.firstName != null) { + json[r'firstName'] = this.firstName; } else { json[r'firstName'] = null; } - if (this.lastname != null) { - json[r'lastName'] = this.lastname; + if (this.lastName != null) { + json[r'lastName'] = this.lastName; } else { json[r'lastName'] = null; } @@ -151,8 +151,8 @@ class User { } else { json[r'phone'] = null; } - if (this.userstatus != null) { - json[r'userStatus'] = this.userstatus; + if (this.userStatus != null) { + json[r'userStatus'] = this.userStatus; } else { json[r'userStatus'] = null; } @@ -180,12 +180,12 @@ class User { return User( id: mapValueOfType(json, r'id'), username: mapValueOfType(json, r'username'), - firstname: mapValueOfType(json, r'firstName'), - lastname: mapValueOfType(json, r'lastName'), + firstName: mapValueOfType(json, r'firstName'), + lastName: mapValueOfType(json, r'lastName'), email: mapValueOfType(json, r'email'), password: mapValueOfType(json, r'password'), phone: mapValueOfType(json, r'phone'), - userstatus: mapValueOfType(json, r'userStatus'), + userStatus: mapValueOfType(json, r'userStatus'), ); } return null;