From a5377647f47d86fba56740357bcb7b4ff79d83c4 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Thu, 17 Dec 2020 10:50:36 +0100 Subject: [PATCH] [dart][dart-dio] Add support for default values (#8201) * [dart-dio] Generate default value builders * return `null` when there is no default value instead of `"null"` * use built_value's `_initializeBuilder` to set default values * [dart-dio] Fix default value formatting in model doc --- .../languages/DartDioClientCodegen.java | 9 +-- .../main/resources/dart-dio/class.mustache | 3 + .../resources/dart-dio/object_doc.mustache | 2 +- .../codegen/dartdio/DartDioModelTest.java | 16 ++--- .../petstore_client_lib/doc/ApiResponse.md | 6 +- .../petstore_client_lib/doc/Category.md | 4 +- .../dart-dio/petstore_client_lib/doc/Order.md | 10 +-- .../dart-dio/petstore_client_lib/doc/Pet.md | 12 ++-- .../petstore_client_lib/doc/PetApi.md | 22 +++--- .../petstore_client_lib/doc/StoreApi.md | 4 +- .../dart-dio/petstore_client_lib/doc/Tag.md | 4 +- .../dart-dio/petstore_client_lib/doc/User.md | 16 ++--- .../petstore_client_lib/doc/UserApi.md | 10 +-- .../lib/model/api_response.dart | 2 + .../lib/model/category.dart | 2 + .../petstore_client_lib/lib/model/order.dart | 3 + .../petstore_client_lib/lib/model/pet.dart | 2 + .../petstore_client_lib/lib/model/tag.dart | 2 + .../petstore_client_lib/lib/model/user.dart | 2 + .../petstore_client_lib/doc/ApiResponse.md | 6 +- .../petstore_client_lib/doc/Category.md | 4 +- .../petstore_client_lib/doc/InlineObject.md | 4 +- .../petstore_client_lib/doc/InlineObject1.md | 4 +- .../dart-dio/petstore_client_lib/doc/Order.md | 10 +-- .../dart-dio/petstore_client_lib/doc/Pet.md | 12 ++-- .../petstore_client_lib/doc/PetApi.md | 22 +++--- .../petstore_client_lib/doc/StoreApi.md | 4 +- .../dart-dio/petstore_client_lib/doc/Tag.md | 4 +- .../dart-dio/petstore_client_lib/doc/User.md | 16 ++--- .../petstore_client_lib/doc/UserApi.md | 10 +-- .../lib/model/api_response.dart | 2 + .../lib/model/category.dart | 2 + .../lib/model/inline_object.dart | 2 + .../lib/model/inline_object1.dart | 2 + .../petstore_client_lib/lib/model/order.dart | 3 + .../petstore_client_lib/lib/model/pet.dart | 2 + .../petstore_client_lib/lib/model/tag.dart | 2 + .../petstore_client_lib/lib/model/user.dart | 2 + .../doc/AdditionalPropertiesClass.md | 4 +- .../petstore_client_lib_fake/doc/Animal.md | 4 +- .../doc/ApiResponse.md | 6 +- .../doc/ArrayOfArrayOfNumberOnly.md | 2 +- .../doc/ArrayOfNumberOnly.md | 2 +- .../petstore_client_lib_fake/doc/ArrayTest.md | 6 +- .../doc/Capitalization.md | 12 ++-- .../petstore_client_lib_fake/doc/Cat.md | 6 +- .../petstore_client_lib_fake/doc/CatAllOf.md | 2 +- .../petstore_client_lib_fake/doc/Category.md | 4 +- .../doc/ClassModel.md | 2 +- .../petstore_client_lib_fake/doc/Dog.md | 6 +- .../petstore_client_lib_fake/doc/DogAllOf.md | 2 +- .../doc/EnumArrays.md | 4 +- .../petstore_client_lib_fake/doc/EnumTest.md | 16 ++--- .../petstore_client_lib_fake/doc/FakeApi.md | 68 +++++++++---------- .../doc/FileSchemaTestClass.md | 4 +- .../petstore_client_lib_fake/doc/Foo.md | 2 +- .../doc/FormatTest.md | 32 ++++----- .../doc/HasOnlyReadOnly.md | 4 +- .../doc/HealthCheckResult.md | 2 +- .../doc/InlineObject.md | 4 +- .../doc/InlineObject1.md | 4 +- .../doc/InlineObject2.md | 4 +- .../doc/InlineObject3.md | 28 ++++---- .../doc/InlineObject4.md | 4 +- .../doc/InlineObject5.md | 4 +- .../doc/InlineResponseDefault.md | 2 +- .../petstore_client_lib_fake/doc/MapTest.md | 8 +-- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../doc/Model200Response.md | 4 +- .../doc/ModelClient.md | 2 +- .../petstore_client_lib_fake/doc/ModelFile.md | 2 +- .../petstore_client_lib_fake/doc/ModelList.md | 2 +- .../doc/ModelReturn.md | 2 +- .../petstore_client_lib_fake/doc/Name.md | 8 +-- .../doc/NullableClass.md | 24 +++---- .../doc/NumberOnly.md | 2 +- .../petstore_client_lib_fake/doc/Order.md | 10 +-- .../doc/OuterComposite.md | 6 +- .../petstore_client_lib_fake/doc/Pet.md | 12 ++-- .../petstore_client_lib_fake/doc/PetApi.md | 28 ++++---- .../doc/ReadOnlyFirst.md | 4 +- .../doc/SpecialModelName.md | 2 +- .../petstore_client_lib_fake/doc/StoreApi.md | 4 +- .../petstore_client_lib_fake/doc/Tag.md | 4 +- .../petstore_client_lib_fake/doc/User.md | 16 ++--- .../petstore_client_lib_fake/doc/UserApi.md | 10 +-- .../model/additional_properties_class.dart | 2 + .../lib/model/animal.dart | 3 + .../lib/model/api_response.dart | 2 + .../model/array_of_array_of_number_only.dart | 2 + .../lib/model/array_of_number_only.dart | 2 + .../lib/model/array_test.dart | 2 + .../lib/model/capitalization.dart | 2 + .../lib/model/cat.dart | 3 + .../lib/model/cat_all_of.dart | 2 + .../lib/model/category.dart | 3 + .../lib/model/class_model.dart | 2 + .../lib/model/dog.dart | 3 + .../lib/model/dog_all_of.dart | 2 + .../lib/model/enum_arrays.dart | 2 + .../lib/model/enum_test.dart | 2 + .../lib/model/file_schema_test_class.dart | 2 + .../lib/model/foo.dart | 3 + .../lib/model/format_test.dart | 2 + .../lib/model/has_only_read_only.dart | 2 + .../lib/model/health_check_result.dart | 2 + .../lib/model/inline_object.dart | 2 + .../lib/model/inline_object1.dart | 2 + .../lib/model/inline_object2.dart | 3 + .../lib/model/inline_object3.dart | 2 + .../lib/model/inline_object4.dart | 2 + .../lib/model/inline_object5.dart | 2 + .../lib/model/inline_response_default.dart | 2 + .../lib/model/map_test.dart | 2 + ...rties_and_additional_properties_class.dart | 2 + .../lib/model/model200_response.dart | 2 + .../lib/model/model_client.dart | 2 + .../lib/model/model_file.dart | 2 + .../lib/model/model_list.dart | 2 + .../lib/model/model_return.dart | 2 + .../lib/model/name.dart | 2 + .../lib/model/nullable_class.dart | 2 + .../lib/model/number_only.dart | 2 + .../lib/model/order.dart | 3 + .../lib/model/outer_composite.dart | 2 + .../lib/model/pet.dart | 2 + .../lib/model/read_only_first.dart | 2 + .../lib/model/special_model_name.dart | 2 + .../lib/model/tag.dart | 2 + .../lib/model/user.dart | 2 + 130 files changed, 428 insertions(+), 307 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java index 2c49745c294..ff934aa6161 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/DartDioClientCodegen.java @@ -125,20 +125,13 @@ public class DartDioClientCodegen extends DartClientCodegen { @Override public String toDefaultValue(Schema schema) { - if (ModelUtils.isMapSchema(schema)) { - return "const {}"; - } else if (ModelUtils.isArraySchema(schema)) { - return "const []"; - } - if (schema.getDefault() != null) { if (ModelUtils.isStringSchema(schema)) { return "'" + schema.getDefault().toString().replaceAll("'", "\\'") + "'"; } return schema.getDefault().toString(); - } else { - return "null"; } + return null; } @Override diff --git a/modules/openapi-generator/src/main/resources/dart-dio/class.mustache b/modules/openapi-generator/src/main/resources/dart-dio/class.mustache index 14f3f10b55f..37499b5a822 100644 --- a/modules/openapi-generator/src/main/resources/dart-dio/class.mustache +++ b/modules/openapi-generator/src/main/resources/dart-dio/class.mustache @@ -22,6 +22,9 @@ abstract class {{classname}} implements Built<{{classname}}, {{classname}}Builde // Boilerplate code needed to wire-up generated code {{classname}}._(); + static void _initializeBuilder({{{classname}}}Builder b) => b{{#vars}}{{#defaultValue}} + ..{{{name}}} = {{#isEnum}}{{^isContainer}}const {{{classname}}}{{{enumName}}}._({{/isContainer}}{{/isEnum}}{{{defaultValue}}}{{#isEnum}}{{^isContainer}}){{/isContainer}}{{/isEnum}}{{/defaultValue}}{{/vars}}; + factory {{classname}}([updates({{classname}}Builder b)]) = _${{classname}}; static Serializer<{{classname}}> get serializer => _${{#lambda.camelcase}}{{{classname}}}{{/lambda.camelcase}}Serializer; } diff --git a/modules/openapi-generator/src/main/resources/dart-dio/object_doc.mustache b/modules/openapi-generator/src/main/resources/dart-dio/object_doc.mustache index 14d3cf2dda5..f2a52db11a4 100644 --- a/modules/openapi-generator/src/main/resources/dart-dio/object_doc.mustache +++ b/modules/openapi-generator/src/main/resources/dart-dio/object_doc.mustache @@ -8,7 +8,7 @@ import 'package:{{pubName}}/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{{dataType}}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{{dataType}}}**]({{complexType}}.md){{/isPrimitiveType}} | {{{description}}} | {{^required}}[optional] {{/required}}{{#readOnly}}[readonly] {{/readOnly}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}} +{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{{dataType}}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{{dataType}}}**]({{complexType}}.md){{/isPrimitiveType}} | {{{description}}} | {{^required}}[optional] {{/required}}{{#readOnly}}[readonly] {{/readOnly}}{{#defaultValue}}[default to {{{defaultValue}}}]{{/defaultValue}} {{/vars}} [[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/modules/openapi-generator/src/test/java/org/openapitools/codegen/dartdio/DartDioModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dartdio/DartDioModelTest.java index 1d7c9532c56..ade2bff57c0 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/dartdio/DartDioModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/dartdio/DartDioModelTest.java @@ -69,7 +69,7 @@ public class DartDioModelTest { Assert.assertEquals(property1.baseName, "id"); Assert.assertEquals(property1.dataType, "int"); Assert.assertEquals(property1.name, "id"); - Assert.assertEquals(property1.defaultValue, "null"); + Assert.assertNull(property1.defaultValue); Assert.assertEquals(property1.baseType, "int"); Assert.assertTrue(property1.required); Assert.assertTrue(property1.isPrimitiveType); @@ -79,7 +79,7 @@ public class DartDioModelTest { Assert.assertEquals(property2.baseName, "name"); Assert.assertEquals(property2.dataType, "String"); Assert.assertEquals(property2.name, "name"); - Assert.assertEquals(property2.defaultValue, "null"); + Assert.assertNull(property2.defaultValue); Assert.assertEquals(property2.baseType, "String"); Assert.assertTrue(property2.required); Assert.assertTrue(property2.isPrimitiveType); @@ -90,7 +90,7 @@ public class DartDioModelTest { Assert.assertEquals(property3.complexType, "DateTime"); Assert.assertEquals(property3.dataType, "DateTime"); Assert.assertEquals(property3.name, "createdAt"); - Assert.assertEquals(property3.defaultValue, "null"); + Assert.assertNull(property3.defaultValue); Assert.assertEquals(property3.baseType, "DateTime"); Assert.assertFalse(property3.required); Assert.assertFalse(property3.isContainer); @@ -128,7 +128,7 @@ public class DartDioModelTest { Assert.assertEquals(property1.baseName, "id"); Assert.assertEquals(property1.dataType, "int"); Assert.assertEquals(property1.name, "id"); - Assert.assertEquals(property1.defaultValue, "null"); + Assert.assertNull(property1.defaultValue); Assert.assertEquals(property1.baseType, "int"); Assert.assertTrue(property1.required); Assert.assertTrue(property1.isPrimitiveType); @@ -138,7 +138,7 @@ public class DartDioModelTest { Assert.assertEquals(property2.baseName, "name"); Assert.assertEquals(property2.dataType, "String"); Assert.assertEquals(property2.name, "name"); - Assert.assertEquals(property2.defaultValue, "null"); + Assert.assertNull(property2.defaultValue); Assert.assertEquals(property2.baseType, "String"); Assert.assertTrue(property2.required); Assert.assertTrue(property2.isPrimitiveType); @@ -149,7 +149,7 @@ public class DartDioModelTest { Assert.assertEquals(property3.complexType, "OffsetDateTime"); Assert.assertEquals(property3.dataType, "OffsetDateTime"); Assert.assertEquals(property3.name, "createdAt"); - Assert.assertEquals(property3.defaultValue, "null"); + Assert.assertNull(property3.defaultValue); Assert.assertEquals(property3.baseType, "OffsetDateTime"); Assert.assertFalse(property3.required); Assert.assertFalse(property3.isContainer); @@ -159,7 +159,7 @@ public class DartDioModelTest { Assert.assertEquals(property4.complexType, "OffsetDate"); Assert.assertEquals(property4.dataType, "OffsetDate"); Assert.assertEquals(property4.name, "birthDate"); - Assert.assertEquals(property4.defaultValue, "null"); + Assert.assertNull(property4.defaultValue); Assert.assertEquals(property4.baseType, "OffsetDate"); Assert.assertFalse(property4.required); Assert.assertFalse(property4.isContainer); @@ -187,7 +187,7 @@ public class DartDioModelTest { Assert.assertEquals(property1.baseName, "id"); Assert.assertEquals(property1.dataType, "int"); Assert.assertEquals(property1.name, "id"); - Assert.assertEquals(property1.defaultValue, "null"); + Assert.assertNull(property1.defaultValue); Assert.assertEquals(property1.baseType, "int"); Assert.assertTrue(property1.required); Assert.assertTrue(property1.isPrimitiveType); diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/doc/ApiResponse.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/ApiResponse.md index 92422f0f446..7ad5da0f89e 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/ApiResponse.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/ApiResponse.md @@ -8,9 +8,9 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**code** | **int** | | [optional] [default to null] -**type** | **String** | | [optional] [default to null] -**message** | **String** | | [optional] [default to null] +**code** | **int** | | [optional] +**type** | **String** | | [optional] +**message** | **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/client/petstore/dart-dio/petstore_client_lib/doc/Category.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/Category.md index cc0d1633b59..98d0b14be7b 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/Category.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/Category.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**name** | **String** | | [optional] [default to null] +**id** | **int** | | [optional] +**name** | **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/client/petstore/dart-dio/petstore_client_lib/doc/Order.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/Order.md index 310ce6c65be..bde5ffe51a2 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/Order.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/Order.md @@ -8,11 +8,11 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**petId** | **int** | | [optional] [default to null] -**quantity** | **int** | | [optional] [default to null] -**shipDate** | [**DateTime**](DateTime.md) | | [optional] [default to null] -**status** | **String** | Order Status | [optional] [default to null] +**id** | **int** | | [optional] +**petId** | **int** | | [optional] +**quantity** | **int** | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] +**status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] [[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/client/petstore/dart-dio/petstore_client_lib/doc/Pet.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/Pet.md index b7e9e9282a1..3a8dd5b8996 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/Pet.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/Pet.md @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**category** | [**Category**](Category.md) | | [optional] [default to null] -**name** | **String** | | [default to null] -**photoUrls** | **BuiltList** | | [default to const []] -**tags** | [**BuiltList**](Tag.md) | | [optional] [default to const []] -**status** | **String** | pet status in the store | [optional] [default to null] +**id** | **int** | | [optional] +**category** | [**Category**](Category.md) | | [optional] +**name** | **String** | | +**photoUrls** | **BuiltList** | | +**tags** | [**BuiltList**](Tag.md) | | [optional] +**status** | **String** | pet status in the store | [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/client/petstore/dart-dio/petstore_client_lib/doc/PetApi.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/PetApi.md index a277a99936e..8957c2bbf07 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/PetApi.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/PetApi.md @@ -87,8 +87,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| Pet id to delete | [default to null] - **apiKey** | **String**| | [optional] [default to null] + **petId** | **int**| Pet id to delete | + **apiKey** | **String**| | [optional] ### Return type @@ -133,7 +133,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**BuiltList**](String.md)| Status values that need to be considered for filter | [default to const []] + **status** | [**BuiltList**](String.md)| Status values that need to be considered for filter | ### Return type @@ -178,7 +178,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**BuiltList**](String.md)| Tags to filter by | [default to const []] + **tags** | [**BuiltList**](String.md)| Tags to filter by | ### Return type @@ -225,7 +225,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet to return | [default to null] + **petId** | **int**| ID of pet to return | ### Return type @@ -311,9 +311,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet that needs to be updated | [default to null] - **name** | **String**| Updated name of the pet | [optional] [default to null] - **status** | **String**| Updated status of the pet | [optional] [default to null] + **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] ### Return type @@ -358,9 +358,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet to update | [default to null] - **additionalMetadata** | **String**| Additional data to pass to server | [optional] [default to null] - **file** | **Uint8List**| file to upload | [optional] [default to null] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] + **file** | **Uint8List**| file to upload | [optional] ### Return type diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/doc/StoreApi.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/StoreApi.md index 39ef3bd3d85..011664d06e5 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/StoreApi.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/StoreApi.md @@ -40,7 +40,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **String**| ID of the order that needs to be deleted | [default to null] + **orderId** | **String**| ID of the order that needs to be deleted | ### Return type @@ -126,7 +126,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int**| ID of pet that needs to be fetched | [default to null] + **orderId** | **int**| ID of pet that needs to be fetched | ### Return type diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/doc/Tag.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/Tag.md index ded7b32ac3d..c219f987c19 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/Tag.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/Tag.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**name** | **String** | | [optional] [default to null] +**id** | **int** | | [optional] +**name** | **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/client/petstore/dart-dio/petstore_client_lib/doc/User.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/User.md index 3761b70cf0b..fa87e64d859 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/User.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/User.md @@ -8,14 +8,14 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**username** | **String** | | [optional] [default to null] -**firstName** | **String** | | [optional] [default to null] -**lastName** | **String** | | [optional] [default to null] -**email** | **String** | | [optional] [default to null] -**password** | **String** | | [optional] [default to null] -**phone** | **String** | | [optional] [default to null] -**userStatus** | **int** | User Status | [optional] [default to null] +**id** | **int** | | [optional] +**username** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] +**email** | **String** | | [optional] +**password** | **String** | | [optional] +**phone** | **String** | | [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/client/petstore/dart-dio/petstore_client_lib/doc/UserApi.md b/samples/client/petstore/dart-dio/petstore_client_lib/doc/UserApi.md index 3e8817e83d7..9cdbae87963 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/doc/UserApi.md +++ b/samples/client/petstore/dart-dio/petstore_client_lib/doc/UserApi.md @@ -166,7 +166,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be deleted | [default to null] + **username** | **String**| The name that needs to be deleted | ### Return type @@ -207,7 +207,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be fetched. Use user1 for testing. | [default to null] + **username** | **String**| The name that needs to be fetched. Use user1 for testing. | ### Return type @@ -249,8 +249,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The user name for login | [default to null] - **password** | **String**| The password for login in clear text | [default to null] + **username** | **String**| The user name for login | + **password** | **String**| The password for login in clear text | ### Return type @@ -329,7 +329,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| name that need to be deleted | [default to null] + **username** | **String**| name that need to be deleted | **body** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/api_response.dart b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/api_response.dart index 954d6a2b721..137b6de21ab 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/api_response.dart +++ b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/api_response.dart @@ -20,6 +20,8 @@ abstract class ApiResponse implements Built { // Boilerplate code needed to wire-up generated code ApiResponse._(); + static void _initializeBuilder(ApiResponseBuilder b) => b; + factory ApiResponse([updates(ApiResponseBuilder b)]) = _$ApiResponse; static Serializer get serializer => _$apiResponseSerializer; } diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/category.dart b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/category.dart index ce3ca3070bd..c716072d768 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/category.dart +++ b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/category.dart @@ -16,6 +16,8 @@ abstract class Category implements Built { // Boilerplate code needed to wire-up generated code Category._(); + static void _initializeBuilder(CategoryBuilder b) => b; + factory Category([updates(CategoryBuilder b)]) = _$Category; static Serializer get serializer => _$categorySerializer; } diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/order.dart b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/order.dart index 095b4d45448..517fba8eb73 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/order.dart +++ b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/order.dart @@ -35,6 +35,9 @@ abstract class Order implements Built { // Boilerplate code needed to wire-up generated code Order._(); + static void _initializeBuilder(OrderBuilder b) => b + ..complete = false; + factory Order([updates(OrderBuilder b)]) = _$Order; static Serializer get serializer => _$orderSerializer; } diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/pet.dart b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/pet.dart index 393376a819c..1fb992db794 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/pet.dart +++ b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/pet.dart @@ -37,6 +37,8 @@ abstract class Pet implements Built { // Boilerplate code needed to wire-up generated code Pet._(); + static void _initializeBuilder(PetBuilder b) => b; + factory Pet([updates(PetBuilder b)]) = _$Pet; static Serializer get serializer => _$petSerializer; } diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/tag.dart b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/tag.dart index 006e3426810..8149a7d3498 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/tag.dart +++ b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/tag.dart @@ -16,6 +16,8 @@ abstract class Tag implements Built { // Boilerplate code needed to wire-up generated code Tag._(); + static void _initializeBuilder(TagBuilder b) => b; + factory Tag([updates(TagBuilder b)]) = _$Tag; static Serializer get serializer => _$tagSerializer; } diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/user.dart b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/user.dart index fa480028d7e..3fd4092d546 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/user.dart +++ b/samples/client/petstore/dart-dio/petstore_client_lib/lib/model/user.dart @@ -41,6 +41,8 @@ abstract class User implements Built { // Boilerplate code needed to wire-up generated code User._(); + static void _initializeBuilder(UserBuilder b) => b; + factory User([updates(UserBuilder b)]) = _$User; static Serializer get serializer => _$userSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/ApiResponse.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/ApiResponse.md index 92422f0f446..7ad5da0f89e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/ApiResponse.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/ApiResponse.md @@ -8,9 +8,9 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**code** | **int** | | [optional] [default to null] -**type** | **String** | | [optional] [default to null] -**message** | **String** | | [optional] [default to null] +**code** | **int** | | [optional] +**type** | **String** | | [optional] +**message** | **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/doc/Category.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Category.md index cc0d1633b59..98d0b14be7b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Category.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Category.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**name** | **String** | | [optional] [default to null] +**id** | **int** | | [optional] +**name** | **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/doc/InlineObject.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/InlineObject.md index 1789b30bb81..9aa480dee58 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/InlineObject.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/InlineObject.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Updated name of the pet | [optional] [default to null] -**status** | **String** | Updated status of the pet | [optional] [default to null] +**name** | **String** | Updated name of the pet | [optional] +**status** | **String** | Updated status 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/doc/InlineObject1.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/InlineObject1.md index 37aaa575901..89db64f1214 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/InlineObject1.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/InlineObject1.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**additionalMetadata** | **String** | Additional data to pass to server | [optional] [default to null] -**file** | [**Uint8List**](Uint8List.md) | file to upload | [optional] [default to null] +**additionalMetadata** | **String** | Additional data to pass to server | [optional] +**file** | [**Uint8List**](Uint8List.md) | file to upload | [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/doc/Order.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Order.md index 310ce6c65be..bde5ffe51a2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Order.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Order.md @@ -8,11 +8,11 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**petId** | **int** | | [optional] [default to null] -**quantity** | **int** | | [optional] [default to null] -**shipDate** | [**DateTime**](DateTime.md) | | [optional] [default to null] -**status** | **String** | Order Status | [optional] [default to null] +**id** | **int** | | [optional] +**petId** | **int** | | [optional] +**quantity** | **int** | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] +**status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] [[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/doc/Pet.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Pet.md index b7e9e9282a1..3a8dd5b8996 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Pet.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Pet.md @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**category** | [**Category**](Category.md) | | [optional] [default to null] -**name** | **String** | | [default to null] -**photoUrls** | **BuiltList** | | [default to const []] -**tags** | [**BuiltList**](Tag.md) | | [optional] [default to const []] -**status** | **String** | pet status in the store | [optional] [default to null] +**id** | **int** | | [optional] +**category** | [**Category**](Category.md) | | [optional] +**name** | **String** | | +**photoUrls** | **BuiltList** | | +**tags** | [**BuiltList**](Tag.md) | | [optional] +**status** | **String** | pet status in the store | [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/doc/PetApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/PetApi.md index c73760c02dc..e9d815eafcc 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/PetApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/PetApi.md @@ -88,8 +88,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| Pet id to delete | [default to null] - **apiKey** | **String**| | [optional] [default to null] + **petId** | **int**| Pet id to delete | + **apiKey** | **String**| | [optional] ### Return type @@ -134,7 +134,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**BuiltList**](String.md)| Status values that need to be considered for filter | [default to const []] + **status** | [**BuiltList**](String.md)| Status values that need to be considered for filter | ### Return type @@ -179,7 +179,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**BuiltList**](String.md)| Tags to filter by | [default to const []] + **tags** | [**BuiltList**](String.md)| Tags to filter by | ### Return type @@ -226,7 +226,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet to return | [default to null] + **petId** | **int**| ID of pet to return | ### Return type @@ -313,9 +313,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet that needs to be updated | [default to null] - **name** | **String**| Updated name of the pet | [optional] [default to null] - **status** | **String**| Updated status of the pet | [optional] [default to null] + **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] ### Return type @@ -360,9 +360,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet to update | [default to null] - **additionalMetadata** | **String**| Additional data to pass to server | [optional] [default to null] - **file** | **Uint8List**| file to upload | [optional] [default to null] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] + **file** | **Uint8List**| file to upload | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/StoreApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/StoreApi.md index 2770b91589d..2c033925bba 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/StoreApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/StoreApi.md @@ -40,7 +40,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **String**| ID of the order that needs to be deleted | [default to null] + **orderId** | **String**| ID of the order that needs to be deleted | ### Return type @@ -126,7 +126,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int**| ID of pet that needs to be fetched | [default to null] + **orderId** | **int**| ID of pet that needs to be fetched | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Tag.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Tag.md index ded7b32ac3d..c219f987c19 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Tag.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/Tag.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**name** | **String** | | [optional] [default to null] +**id** | **int** | | [optional] +**name** | **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/doc/User.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/User.md index 3761b70cf0b..fa87e64d859 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/User.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/User.md @@ -8,14 +8,14 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**username** | **String** | | [optional] [default to null] -**firstName** | **String** | | [optional] [default to null] -**lastName** | **String** | | [optional] [default to null] -**email** | **String** | | [optional] [default to null] -**password** | **String** | | [optional] [default to null] -**phone** | **String** | | [optional] [default to null] -**userStatus** | **int** | User Status | [optional] [default to null] +**id** | **int** | | [optional] +**username** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] +**email** | **String** | | [optional] +**password** | **String** | | [optional] +**phone** | **String** | | [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/doc/UserApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/UserApi.md index 27728ac5f89..7bc40983f69 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/UserApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/doc/UserApi.md @@ -182,7 +182,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be deleted | [default to null] + **username** | **String**| The name that needs to be deleted | ### Return type @@ -223,7 +223,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be fetched. Use user1 for testing. | [default to null] + **username** | **String**| The name that needs to be fetched. Use user1 for testing. | ### Return type @@ -265,8 +265,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The user name for login | [default to null] - **password** | **String**| The password for login in clear text | [default to null] + **username** | **String**| The user name for login | + **password** | **String**| The password for login in clear text | ### Return type @@ -353,7 +353,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| name that need to be deleted | [default to null] + **username** | **String**| name that need to be deleted | **user** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/api_response.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/api_response.dart index 954d6a2b721..137b6de21ab 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/api_response.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/api_response.dart @@ -20,6 +20,8 @@ abstract class ApiResponse implements Built { // Boilerplate code needed to wire-up generated code ApiResponse._(); + static void _initializeBuilder(ApiResponseBuilder b) => b; + factory ApiResponse([updates(ApiResponseBuilder b)]) = _$ApiResponse; static Serializer get serializer => _$apiResponseSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/category.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/category.dart index ce3ca3070bd..c716072d768 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/category.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/category.dart @@ -16,6 +16,8 @@ abstract class Category implements Built { // Boilerplate code needed to wire-up generated code Category._(); + static void _initializeBuilder(CategoryBuilder b) => b; + factory Category([updates(CategoryBuilder b)]) = _$Category; static Serializer get serializer => _$categorySerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/inline_object.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/inline_object.dart index dc0ff059470..b1477f60e8c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/inline_object.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/inline_object.dart @@ -18,6 +18,8 @@ abstract class InlineObject implements Built // Boilerplate code needed to wire-up generated code InlineObject._(); + static void _initializeBuilder(InlineObjectBuilder b) => b; + factory InlineObject([updates(InlineObjectBuilder b)]) = _$InlineObject; static Serializer get serializer => _$inlineObjectSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/inline_object1.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/inline_object1.dart index 18eeafff1f4..2eadc367d2d 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/inline_object1.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/inline_object1.dart @@ -19,6 +19,8 @@ abstract class InlineObject1 implements Built b; + factory InlineObject1([updates(InlineObject1Builder b)]) = _$InlineObject1; static Serializer get serializer => _$inlineObject1Serializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/order.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/order.dart index 095b4d45448..517fba8eb73 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/order.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/order.dart @@ -35,6 +35,9 @@ abstract class Order implements Built { // Boilerplate code needed to wire-up generated code Order._(); + static void _initializeBuilder(OrderBuilder b) => b + ..complete = false; + factory Order([updates(OrderBuilder b)]) = _$Order; static Serializer get serializer => _$orderSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/pet.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/pet.dart index 393376a819c..1fb992db794 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/pet.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/pet.dart @@ -37,6 +37,8 @@ abstract class Pet implements Built { // Boilerplate code needed to wire-up generated code Pet._(); + static void _initializeBuilder(PetBuilder b) => b; + factory Pet([updates(PetBuilder b)]) = _$Pet; static Serializer get serializer => _$petSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/tag.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/tag.dart index 006e3426810..8149a7d3498 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/tag.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/tag.dart @@ -16,6 +16,8 @@ abstract class Tag implements Built { // Boilerplate code needed to wire-up generated code Tag._(); + static void _initializeBuilder(TagBuilder b) => b; + factory Tag([updates(TagBuilder b)]) = _$Tag; static Serializer get serializer => _$tagSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/user.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/user.dart index fa480028d7e..3fd4092d546 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/user.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/model/user.dart @@ -41,6 +41,8 @@ abstract class User implements Built { // Boilerplate code needed to wire-up generated code User._(); + static void _initializeBuilder(UserBuilder b) => b; + factory User([updates(UserBuilder b)]) = _$User; static Serializer get serializer => _$userSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AdditionalPropertiesClass.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AdditionalPropertiesClass.md index 425c84470b9..5443d024fd2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/AdditionalPropertiesClass.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mapProperty** | **BuiltMap** | | [optional] [default to const {}] -**mapOfMapProperty** | [**BuiltMap>**](BuiltMap.md) | | [optional] [default to const {}] +**mapProperty** | **BuiltMap** | | [optional] +**mapOfMapProperty** | [**BuiltMap>**](BuiltMap.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 1b4b3dfac54..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,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**className** | **String** | | [default to null] -**color** | **String** | | [optional] [default to 'red'] +**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/ApiResponse.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ApiResponse.md index 92422f0f446..7ad5da0f89e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ApiResponse.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ApiResponse.md @@ -8,9 +8,9 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**code** | **int** | | [optional] [default to null] -**type** | **String** | | [optional] [default to null] -**message** | **String** | | [optional] [default to null] +**code** | **int** | | [optional] +**type** | **String** | | [optional] +**message** | **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/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayOfArrayOfNumberOnly.md index fe512e3a423..0a9d69c7e3c 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.md) | | [optional] [default to const []] +**arrayArrayNumber** | [**BuiltList>**](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 4e1c3df7d09..6ffe36730c2 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** | | [optional] [default to const []] +**arrayNumber** | **BuiltList** | | [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/ArrayTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayTest.md index 8d1a3b218f1..fc38f8ae52d 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayTest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ArrayTest.md @@ -8,9 +8,9 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**arrayOfString** | **BuiltList** | | [optional] [default to const []] -**arrayArrayOfInteger** | [**BuiltList>**](BuiltList.md) | | [optional] [default to const []] -**arrayArrayOfModel** | [**BuiltList>**](BuiltList.md) | | [optional] [default to const []] +**arrayOfString** | **BuiltList** | | [optional] +**arrayArrayOfInteger** | [**BuiltList>**](BuiltList.md) | | [optional] +**arrayArrayOfModel** | [**BuiltList>**](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/Capitalization.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Capitalization.md index 00ccdd84f0e..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] [default to null] -**capitalCamel** | **String** | | [optional] [default to null] -**smallSnake** | **String** | | [optional] [default to null] -**capitalSnake** | **String** | | [optional] [default to null] -**sCAETHFlowPoints** | **String** | | [optional] [default to null] -**ATT_NAME** | **String** | Name of the pet | [optional] [default to null] +**smallCamel** | **String** | | [optional] +**capitalCamel** | **String** | | [optional] +**smallSnake** | **String** | | [optional] +**capitalSnake** | **String** | | [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 1b6237e4ed3..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,9 +8,9 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**className** | **String** | | [default to null] -**color** | **String** | | [optional] [default to 'red'] -**declawed** | **bool** | | [optional] [default to null] +**className** | **String** | | +**color** | **String** | | [optional] [default to 'red'] +**declawed** | **bool** | | [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/CatAllOf.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/CatAllOf.md index b8f643e416f..36b2ae0e8ab 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/CatAllOf.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/CatAllOf.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**declawed** | **bool** | | [optional] [default to null] +**declawed** | **bool** | | [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/Category.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Category.md index 24feec604a0..ae6bc52e89d 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Category.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Category.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**name** | **String** | | [default to 'default-name'] +**id** | **int** | | [optional] +**name** | **String** | | [default to 'default-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/petstore_client_lib_fake/doc/ClassModel.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ClassModel.md index 71200db1f5d..13ae5d3a470 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ClassModel.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ClassModel.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**class_** | **String** | | [optional] [default to null] +**class_** | **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 6c2e2287da6..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,9 +8,9 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**className** | **String** | | [default to null] -**color** | **String** | | [optional] [default to 'red'] -**breed** | **String** | | [optional] [default to null] +**className** | **String** | | +**color** | **String** | | [optional] [default to 'red'] +**breed** | **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/DogAllOf.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/DogAllOf.md index 45c19fe6567..97a7c8fba49 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/DogAllOf.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/DogAllOf.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**breed** | **String** | | [optional] [default to null] +**breed** | **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/EnumArrays.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/EnumArrays.md index 96c39716383..9cc4d727b2a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/EnumArrays.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/EnumArrays.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**justSymbol** | **String** | | [optional] [default to null] -**arrayEnum** | **BuiltList** | | [optional] [default to const []] +**justSymbol** | **String** | | [optional] +**arrayEnum** | **BuiltList** | | [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/EnumTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/EnumTest.md index e2d54c8286d..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 @@ -8,14 +8,14 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enumString** | **String** | | [optional] [default to null] -**enumStringRequired** | **String** | | [default to null] -**enumInteger** | **int** | | [optional] [default to null] -**enumNumber** | **double** | | [optional] [default to null] -**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional] [default to null] -**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] [default to null] -**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] [default to null] -**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] [default to null] +**enumString** | **String** | | [optional] +**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] [[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 c615d0c0bda..c40ba1e5c15 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 @@ -92,8 +92,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | - **query1** | **String**| query parameter | [optional] [default to null] - **header1** | **String**| header parameter | [optional] [default to null] + **query1** | **String**| query parameter | [optional] + **header1** | **String**| header parameter | [optional] ### Return type @@ -348,7 +348,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **query** | **String**| | [default to null] + **query** | **String**| | **user** | [**User**](User.md)| | ### Return type @@ -450,20 +450,20 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **number** | **num**| None | [default to null] - **double_** | **double**| None | [default to null] - **patternWithoutDelimiter** | **String**| None | [default to null] - **byte** | **String**| None | [default to null] - **integer** | **int**| None | [optional] [default to null] - **int32** | **int**| None | [optional] [default to null] - **int64** | **int**| None | [optional] [default to null] - **float** | **double**| None | [optional] [default to null] - **string** | **String**| None | [optional] [default to null] - **binary** | **Uint8List**| None | [optional] [default to null] - **date** | **DateTime**| None | [optional] [default to null] - **dateTime** | **DateTime**| None | [optional] [default to null] - **password** | **String**| None | [optional] [default to null] - **callback** | **String**| None | [optional] [default to null] + **number** | **num**| None | + **double_** | **double**| None | + **patternWithoutDelimiter** | **String**| None | + **byte** | **String**| None | + **integer** | **int**| None | [optional] + **int32** | **int**| None | [optional] + **int64** | **int**| None | [optional] + **float** | **double**| None | [optional] + **string** | **String**| None | [optional] + **binary** | **Uint8List**| None | [optional] + **date** | **DateTime**| None | [optional] + **dateTime** | **DateTime**| None | [optional] + **password** | **String**| None | [optional] + **callback** | **String**| None | [optional] ### Return type @@ -512,12 +512,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enumHeaderStringArray** | [**BuiltList**](String.md)| Header parameter enum test (string array) | [optional] [default to const []] + **enumHeaderStringArray** | [**BuiltList**](String.md)| Header parameter enum test (string array) | [optional] **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to '-efg'] - **enumQueryStringArray** | [**BuiltList**](String.md)| Query parameter enum test (string array) | [optional] [default to const []] + **enumQueryStringArray** | [**BuiltList**](String.md)| Query parameter enum test (string array) | [optional] **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to '-efg'] - **enumQueryInteger** | **int**| Query parameter enum test (double) | [optional] [default to null] - **enumQueryDouble** | **double**| Query parameter enum test (double) | [optional] [default to null] + **enumQueryInteger** | **int**| Query parameter enum test (double) | [optional] + **enumQueryDouble** | **double**| Query parameter enum test (double) | [optional] **enumFormStringArray** | [**BuiltList**](String.md)| Form parameter enum test (string array) | [optional] [default to '$'] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to '-efg'] @@ -569,12 +569,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **requiredStringGroup** | **int**| Required String in group parameters | [default to null] - **requiredBooleanGroup** | **bool**| Required Boolean in group parameters | [default to null] - **requiredInt64Group** | **int**| Required Integer in group parameters | [default to null] - **stringGroup** | **int**| String in group parameters | [optional] [default to null] - **booleanGroup** | **bool**| Boolean in group parameters | [optional] [default to null] - **int64Group** | **int**| Integer in group parameters | [optional] [default to null] + **requiredStringGroup** | **int**| Required String in group parameters | + **requiredBooleanGroup** | **bool**| Required Boolean in group parameters | + **requiredInt64Group** | **int**| Required Integer in group parameters | + **stringGroup** | **int**| String in group parameters | [optional] + **booleanGroup** | **bool**| Boolean in group parameters | [optional] + **int64Group** | **int**| Integer in group parameters | [optional] ### Return type @@ -655,8 +655,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **param** | **String**| field1 | [default to null] - **param2** | **String**| field2 | [default to null] + **param** | **String**| field1 | + **param2** | **String**| field2 | ### Return type @@ -702,11 +702,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pipe** | [**BuiltList**](String.md)| | [default to const []] - **ioutil** | [**BuiltList**](String.md)| | [default to const []] - **http** | [**BuiltList**](String.md)| | [default to const []] - **url** | [**BuiltList**](String.md)| | [default to const []] - **context** | [**BuiltList**](String.md)| | [default to const []] + **pipe** | [**BuiltList**](String.md)| | + **ioutil** | [**BuiltList**](String.md)| | + **http** | [**BuiltList**](String.md)| | + **url** | [**BuiltList**](String.md)| | + **context** | [**BuiltList**](String.md)| | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FileSchemaTestClass.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FileSchemaTestClass.md index e0d0fdb7cac..9b7eebcb2bf 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FileSchemaTestClass.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FileSchemaTestClass.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**file** | [**ModelFile**](ModelFile.md) | | [optional] [default to null] -**files** | [**BuiltList**](ModelFile.md) | | [optional] [default to const []] +**file** | [**ModelFile**](ModelFile.md) | | [optional] +**files** | [**BuiltList**](ModelFile.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/Foo.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Foo.md index 092ee227d3b..185b76e3f5b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Foo.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Foo.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [default to 'bar'] +**bar** | **String** | | [optional] [default to 'bar'] [[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/FormatTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FormatTest.md index 9315dc8cc49..7cac4e3b6be 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 @@ -8,22 +8,22 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integer** | **int** | | [optional] [default to null] -**int32** | **int** | | [optional] [default to null] -**int64** | **int** | | [optional] [default to null] -**number** | **num** | | [default to null] -**float** | **double** | | [optional] [default to null] -**double_** | **double** | | [optional] [default to null] -**decimal** | **double** | | [optional] [default to null] -**string** | **String** | | [optional] [default to null] -**byte** | **String** | | [default to null] -**binary** | [**Uint8List**](Uint8List.md) | | [optional] [default to null] -**date** | [**DateTime**](DateTime.md) | | [default to null] -**dateTime** | [**DateTime**](DateTime.md) | | [optional] [default to null] -**uuid** | **String** | | [optional] [default to null] -**password** | **String** | | [default to null] -**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] [default to null] -**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] [default to null] +**integer** | **int** | | [optional] +**int32** | **int** | | [optional] +**int64** | **int** | | [optional] +**number** | **num** | | +**float** | **double** | | [optional] +**double_** | **double** | | [optional] +**decimal** | **double** | | [optional] +**string** | **String** | | [optional] +**byte** | **String** | | +**binary** | [**Uint8List**](Uint8List.md) | | [optional] +**date** | [**DateTime**](DateTime.md) | | +**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] +**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [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/HasOnlyReadOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/HasOnlyReadOnly.md index 25583acdb41..32cae937155 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/HasOnlyReadOnly.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/HasOnlyReadOnly.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [default to null] -**foo** | **String** | | [optional] [default to null] +**bar** | **String** | | [optional] +**foo** | **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/HealthCheckResult.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/HealthCheckResult.md index ef9230ec17b..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] [default to null] +**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/InlineObject.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject.md index 1789b30bb81..9aa480dee58 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | Updated name of the pet | [optional] [default to null] -**status** | **String** | Updated status of the pet | [optional] [default to null] +**name** | **String** | Updated name of the pet | [optional] +**status** | **String** | Updated status 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/InlineObject1.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject1.md index 37aaa575901..89db64f1214 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject1.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject1.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**additionalMetadata** | **String** | Additional data to pass to server | [optional] [default to null] -**file** | [**Uint8List**](Uint8List.md) | file to upload | [optional] [default to null] +**additionalMetadata** | **String** | Additional data to pass to server | [optional] +**file** | [**Uint8List**](Uint8List.md) | file to upload | [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/InlineObject2.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject2.md index ec2d57ff078..7bea7e9566e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject2.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject2.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enumFormStringArray** | **BuiltList** | Form parameter enum test (string array) | [optional] [default to const []] -**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg'] +**enumFormStringArray** | **BuiltList** | Form parameter enum test (string array) | [optional] +**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg'] [[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/InlineObject3.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject3.md index 9339321662b..a8915eb5d38 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject3.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject3.md @@ -8,20 +8,20 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integer** | **int** | None | [optional] [default to null] -**int32** | **int** | None | [optional] [default to null] -**int64** | **int** | None | [optional] [default to null] -**number** | **num** | None | [default to null] -**float** | **double** | None | [optional] [default to null] -**double_** | **double** | None | [default to null] -**string** | **String** | None | [optional] [default to null] -**patternWithoutDelimiter** | **String** | None | [default to null] -**byte** | **String** | None | [default to null] -**binary** | [**Uint8List**](Uint8List.md) | None | [optional] [default to null] -**date** | [**DateTime**](DateTime.md) | None | [optional] [default to null] -**dateTime** | [**DateTime**](DateTime.md) | None | [optional] [default to null] -**password** | **String** | None | [optional] [default to null] -**callback** | **String** | None | [optional] [default to null] +**integer** | **int** | None | [optional] +**int32** | **int** | None | [optional] +**int64** | **int** | None | [optional] +**number** | **num** | None | +**float** | **double** | None | [optional] +**double_** | **double** | None | +**string** | **String** | None | [optional] +**patternWithoutDelimiter** | **String** | None | +**byte** | **String** | None | +**binary** | [**Uint8List**](Uint8List.md) | None | [optional] +**date** | [**DateTime**](DateTime.md) | None | [optional] +**dateTime** | [**DateTime**](DateTime.md) | None | [optional] +**password** | **String** | None | [optional] +**callback** | **String** | None | [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/InlineObject4.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject4.md index ad273a04827..3823ffff979 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject4.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject4.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**param** | **String** | field1 | [default to null] -**param2** | **String** | field2 | [default to null] +**param** | **String** | field1 | +**param2** | **String** | field2 | [[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/InlineObject5.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject5.md index 168f55b1525..e5daf8da8a1 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject5.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineObject5.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**additionalMetadata** | **String** | Additional data to pass to server | [optional] [default to null] -**requiredFile** | [**Uint8List**](Uint8List.md) | file to upload | [default to null] +**additionalMetadata** | **String** | Additional data to pass to server | [optional] +**requiredFile** | [**Uint8List**](Uint8List.md) | file to upload | [[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/InlineResponseDefault.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineResponseDefault.md index 505d0ba55c4..c5e61e1162b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineResponseDefault.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/InlineResponseDefault.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**string** | [**Foo**](Foo.md) | | [optional] [default to null] +**string** | [**Foo**](Foo.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/MapTest.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/MapTest.md index d6e1a324476..2da739ba8b8 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/MapTest.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/MapTest.md @@ -8,10 +8,10 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**mapMapOfString** | [**BuiltMap>**](BuiltMap.md) | | [optional] [default to const {}] -**mapOfEnumString** | **BuiltMap** | | [optional] [default to const {}] -**directMap** | **BuiltMap** | | [optional] [default to const {}] -**indirectMap** | **BuiltMap** | | [optional] [default to const {}] +**mapMapOfString** | [**BuiltMap>**](BuiltMap.md) | | [optional] +**mapOfEnumString** | **BuiltMap** | | [optional] +**directMap** | **BuiltMap** | | [optional] +**indirectMap** | **BuiltMap** | | [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 2ea59399358..f50d9768751 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 @@ -8,9 +8,9 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**uuid** | **String** | | [optional] [default to null] -**dateTime** | [**DateTime**](DateTime.md) | | [optional] [default to null] -**map** | [**BuiltMap**](Animal.md) | | [optional] [default to const {}] +**uuid** | **String** | | [optional] +**dateTime** | [**DateTime**](DateTime.md) | | [optional] +**map** | [**BuiltMap**](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/Model200Response.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Model200Response.md index 0142612fca8..5aa3fb97c32 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Model200Response.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Model200Response.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **int** | | [optional] [default to null] -**class_** | **String** | | [optional] [default to null] +**name** | **int** | | [optional] +**class_** | **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/ModelClient.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelClient.md index 3d79babf2c8..f7b922f4a39 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelClient.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelClient.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**client** | **String** | | [optional] [default to null] +**client** | **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/ModelFile.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelFile.md index 761c4b125c9..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] [default to null] +**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/ModelList.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelList.md index 012393143f3..283aa1f6b71 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelList.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelList.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**n123list** | **String** | | [optional] [default to null] +**n123list** | **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/ModelReturn.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelReturn.md index 1cba65d72fe..bc02df7a369 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelReturn.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ModelReturn.md @@ -8,7 +8,7 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**return_** | **int** | | [optional] [default to null] +**return_** | **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/Name.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Name.md index efb8098a6f8..25f49ea946b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Name.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Name.md @@ -8,10 +8,10 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **int** | | [default to null] -**snakeCase** | **int** | | [optional] [default to null] -**property** | **String** | | [optional] [default to null] -**n123number** | **int** | | [optional] [default to null] +**name** | **int** | | +**snakeCase** | **int** | | [optional] +**property** | **String** | | [optional] +**n123number** | **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/NullableClass.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/NullableClass.md index 240b222ca20..a9694f846c5 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/NullableClass.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/NullableClass.md @@ -8,18 +8,18 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**integerProp** | **int** | | [optional] [default to null] -**numberProp** | **num** | | [optional] [default to null] -**booleanProp** | **bool** | | [optional] [default to null] -**stringProp** | **String** | | [optional] [default to null] -**dateProp** | [**DateTime**](DateTime.md) | | [optional] [default to null] -**datetimeProp** | [**DateTime**](DateTime.md) | | [optional] [default to null] -**arrayNullableProp** | [**BuiltList**](JsonObject.md) | | [optional] [default to const []] -**arrayAndItemsNullableProp** | [**BuiltList**](JsonObject.md) | | [optional] [default to const []] -**arrayItemsNullable** | [**BuiltList**](JsonObject.md) | | [optional] [default to const []] -**objectNullableProp** | [**BuiltMap**](JsonObject.md) | | [optional] [default to const {}] -**objectAndItemsNullableProp** | [**BuiltMap**](JsonObject.md) | | [optional] [default to const {}] -**objectItemsNullable** | [**BuiltMap**](JsonObject.md) | | [optional] [default to const {}] +**integerProp** | **int** | | [optional] +**numberProp** | **num** | | [optional] +**booleanProp** | **bool** | | [optional] +**stringProp** | **String** | | [optional] +**dateProp** | [**DateTime**](DateTime.md) | | [optional] +**datetimeProp** | [**DateTime**](DateTime.md) | | [optional] +**arrayNullableProp** | [**BuiltList**](JsonObject.md) | | [optional] +**arrayAndItemsNullableProp** | [**BuiltList**](JsonObject.md) | | [optional] +**arrayItemsNullable** | [**BuiltList**](JsonObject.md) | | [optional] +**objectNullableProp** | [**BuiltMap**](JsonObject.md) | | [optional] +**objectAndItemsNullableProp** | [**BuiltMap**](JsonObject.md) | | [optional] +**objectItemsNullable** | [**BuiltMap**](JsonObject.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/NumberOnly.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/NumberOnly.md index dd7011e3798..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] [default to null] +**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/Order.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Order.md index 310ce6c65be..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 @@ -8,11 +8,11 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**petId** | **int** | | [optional] [default to null] -**quantity** | **int** | | [optional] [default to null] -**shipDate** | [**DateTime**](DateTime.md) | | [optional] [default to null] -**status** | **String** | Order Status | [optional] [default to null] +**id** | **int** | | [optional] +**petId** | **int** | | [optional] +**quantity** | **int** | | [optional] +**shipDate** | [**DateTime**](DateTime.md) | | [optional] +**status** | **String** | Order Status | [optional] **complete** | **bool** | | [optional] [default to false] [[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/OuterComposite.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/OuterComposite.md index c03674fcdb2..04bab7eff5d 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/OuterComposite.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/OuterComposite.md @@ -8,9 +8,9 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**myNumber** | **num** | | [optional] [default to null] -**myString** | **String** | | [optional] [default to null] -**myBoolean** | **bool** | | [optional] [default to null] +**myNumber** | **num** | | [optional] +**myString** | **String** | | [optional] +**myBoolean** | **bool** | | [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 b7e9e9282a1..3a8dd5b8996 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 @@ -8,12 +8,12 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**category** | [**Category**](Category.md) | | [optional] [default to null] -**name** | **String** | | [default to null] -**photoUrls** | **BuiltList** | | [default to const []] -**tags** | [**BuiltList**](Tag.md) | | [optional] [default to const []] -**status** | **String** | pet status in the store | [optional] [default to null] +**id** | **int** | | [optional] +**category** | [**Category**](Category.md) | | [optional] +**name** | **String** | | +**photoUrls** | **BuiltList** | | +**tags** | [**BuiltList**](Tag.md) | | [optional] +**status** | **String** | pet status in the store | [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/PetApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/PetApi.md index 709c73e4c63..24e5719295d 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 @@ -88,8 +88,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| Pet id to delete | [default to null] - **apiKey** | **String**| | [optional] [default to null] + **petId** | **int**| Pet id to delete | + **apiKey** | **String**| | [optional] ### Return type @@ -134,7 +134,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | [**BuiltList**](String.md)| Status values that need to be considered for filter | [default to const []] + **status** | [**BuiltList**](String.md)| Status values that need to be considered for filter | ### Return type @@ -179,7 +179,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tags** | [**BuiltList**](String.md)| Tags to filter by | [default to const []] + **tags** | [**BuiltList**](String.md)| Tags to filter by | ### Return type @@ -226,7 +226,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet to return | [default to null] + **petId** | **int**| ID of pet to return | ### Return type @@ -312,9 +312,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet that needs to be updated | [default to null] - **name** | **String**| Updated name of the pet | [optional] [default to null] - **status** | **String**| Updated status of the pet | [optional] [default to null] + **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] ### Return type @@ -359,9 +359,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet to update | [default to null] - **additionalMetadata** | **String**| Additional data to pass to server | [optional] [default to null] - **file** | **Uint8List**| file to upload | [optional] [default to null] + **petId** | **int**| ID of pet to update | + **additionalMetadata** | **String**| Additional data to pass to server | [optional] + **file** | **Uint8List**| file to upload | [optional] ### Return type @@ -406,9 +406,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **petId** | **int**| ID of pet to update | [default to null] - **requiredFile** | **Uint8List**| file to upload | [default to null] - **additionalMetadata** | **String**| Additional data to pass to server | [optional] [default to null] + **petId** | **int**| ID of pet to update | + **requiredFile** | **Uint8List**| 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/ReadOnlyFirst.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ReadOnlyFirst.md index ac7dd38e0d6..8f612e8ba19 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ReadOnlyFirst.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/ReadOnlyFirst.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bar** | **String** | | [optional] [default to null] -**baz** | **String** | | [optional] [default to null] +**bar** | **String** | | [optional] +**baz** | **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/SpecialModelName.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/SpecialModelName.md index 780f12a1aae..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] [default to null] +**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/StoreApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/StoreApi.md index a6730d263c4..43009901208 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/StoreApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/StoreApi.md @@ -40,7 +40,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **String**| ID of the order that needs to be deleted | [default to null] + **orderId** | **String**| ID of the order that needs to be deleted | ### Return type @@ -126,7 +126,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **orderId** | **int**| ID of pet that needs to be fetched | [default to null] + **orderId** | **int**| ID of pet that needs to be fetched | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Tag.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Tag.md index ded7b32ac3d..c219f987c19 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Tag.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/Tag.md @@ -8,8 +8,8 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**name** | **String** | | [optional] [default to null] +**id** | **int** | | [optional] +**name** | **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 3761b70cf0b..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 @@ -8,14 +8,14 @@ import 'package:openapi/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | | [optional] [default to null] -**username** | **String** | | [optional] [default to null] -**firstName** | **String** | | [optional] [default to null] -**lastName** | **String** | | [optional] [default to null] -**email** | **String** | | [optional] [default to null] -**password** | **String** | | [optional] [default to null] -**phone** | **String** | | [optional] [default to null] -**userStatus** | **int** | User Status | [optional] [default to null] +**id** | **int** | | [optional] +**username** | **String** | | [optional] +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] +**email** | **String** | | [optional] +**password** | **String** | | [optional] +**phone** | **String** | | [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/doc/UserApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/UserApi.md index b19dd8f5aa6..83a3fa85a5e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/UserApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/UserApi.md @@ -166,7 +166,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be deleted | [default to null] + **username** | **String**| The name that needs to be deleted | ### Return type @@ -207,7 +207,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The name that needs to be fetched. Use user1 for testing. | [default to null] + **username** | **String**| The name that needs to be fetched. Use user1 for testing. | ### Return type @@ -249,8 +249,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| The user name for login | [default to null] - **password** | **String**| The password for login in clear text | [default to null] + **username** | **String**| The user name for login | + **password** | **String**| The password for login in clear text | ### Return type @@ -329,7 +329,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **String**| name that need to be deleted | [default to null] + **username** | **String**| name that need to be deleted | **user** | [**User**](User.md)| Updated user object | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/additional_properties_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/additional_properties_class.dart index 3f643a8e81f..231d14a7307 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/additional_properties_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/additional_properties_class.dart @@ -17,6 +17,8 @@ abstract class AdditionalPropertiesClass implements Built b; + factory AdditionalPropertiesClass([updates(AdditionalPropertiesClassBuilder b)]) = _$AdditionalPropertiesClass; static Serializer get serializer => _$additionalPropertiesClassSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/animal.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/animal.dart index 3af06b0b0ff..9c95b826bcc 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/animal.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/animal.dart @@ -16,6 +16,9 @@ abstract class Animal implements Built { // Boilerplate code needed to wire-up generated code Animal._(); + static void _initializeBuilder(AnimalBuilder b) => b + ..color = 'red'; + factory Animal([updates(AnimalBuilder b)]) = _$Animal; static Serializer get serializer => _$animalSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/api_response.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/api_response.dart index 954d6a2b721..137b6de21ab 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/api_response.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/api_response.dart @@ -20,6 +20,8 @@ abstract class ApiResponse implements Built { // Boilerplate code needed to wire-up generated code ApiResponse._(); + static void _initializeBuilder(ApiResponseBuilder b) => b; + factory ApiResponse([updates(ApiResponseBuilder b)]) = _$ApiResponse; static Serializer get serializer => _$apiResponseSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_of_array_of_number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_of_array_of_number_only.dart index 9563de02022..d2700a8356f 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_of_array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_of_array_of_number_only.dart @@ -13,6 +13,8 @@ abstract class ArrayOfArrayOfNumberOnly implements Built b; + factory ArrayOfArrayOfNumberOnly([updates(ArrayOfArrayOfNumberOnlyBuilder b)]) = _$ArrayOfArrayOfNumberOnly; static Serializer get serializer => _$arrayOfArrayOfNumberOnlySerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_of_number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_of_number_only.dart index 5ab814cb813..86f09a92bd6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_of_number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_of_number_only.dart @@ -13,6 +13,8 @@ abstract class ArrayOfNumberOnly implements Built b; + factory ArrayOfNumberOnly([updates(ArrayOfNumberOnlyBuilder b)]) = _$ArrayOfNumberOnly; static Serializer get serializer => _$arrayOfNumberOnlySerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_test.dart index 84365633d1c..cb602702bb9 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/array_test.dart @@ -22,6 +22,8 @@ abstract class ArrayTest implements Built { // Boilerplate code needed to wire-up generated code ArrayTest._(); + static void _initializeBuilder(ArrayTestBuilder b) => b; + factory ArrayTest([updates(ArrayTestBuilder b)]) = _$ArrayTest; static Serializer get serializer => _$arrayTestSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/capitalization.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/capitalization.dart index c616b2c11cb..41364d53b56 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/capitalization.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/capitalization.dart @@ -33,6 +33,8 @@ abstract class Capitalization implements Built b; + factory Capitalization([updates(CapitalizationBuilder b)]) = _$Capitalization; static Serializer get serializer => _$capitalizationSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/cat.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/cat.dart index 82c37819a7c..946f3353413 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/cat.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/cat.dart @@ -22,6 +22,9 @@ abstract class Cat implements Built { // Boilerplate code needed to wire-up generated code Cat._(); + static void _initializeBuilder(CatBuilder b) => b + ..color = 'red'; + factory Cat([updates(CatBuilder b)]) = _$Cat; static Serializer get serializer => _$catSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/cat_all_of.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/cat_all_of.dart index 0b436c34640..67961695b26 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/cat_all_of.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/cat_all_of.dart @@ -12,6 +12,8 @@ abstract class CatAllOf implements Built { // Boilerplate code needed to wire-up generated code CatAllOf._(); + static void _initializeBuilder(CatAllOfBuilder b) => b; + factory CatAllOf([updates(CatAllOfBuilder b)]) = _$CatAllOf; static Serializer get serializer => _$catAllOfSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/category.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/category.dart index ce3ca3070bd..0a46032028a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/category.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/category.dart @@ -16,6 +16,9 @@ abstract class Category implements Built { // Boilerplate code needed to wire-up generated code Category._(); + static void _initializeBuilder(CategoryBuilder b) => b + ..name = 'default-name'; + factory Category([updates(CategoryBuilder b)]) = _$Category; static Serializer get serializer => _$categorySerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/class_model.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/class_model.dart index 04f6e80b872..f46cf38c5c4 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/class_model.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/class_model.dart @@ -12,6 +12,8 @@ abstract class ClassModel implements Built { // Boilerplate code needed to wire-up generated code ClassModel._(); + static void _initializeBuilder(ClassModelBuilder b) => b; + factory ClassModel([updates(ClassModelBuilder b)]) = _$ClassModel; static Serializer get serializer => _$classModelSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/dog.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/dog.dart index c95f3f060d4..0914e416ce3 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/dog.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/dog.dart @@ -22,6 +22,9 @@ abstract class Dog implements Built { // Boilerplate code needed to wire-up generated code Dog._(); + static void _initializeBuilder(DogBuilder b) => b + ..color = 'red'; + factory Dog([updates(DogBuilder b)]) = _$Dog; static Serializer get serializer => _$dogSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/dog_all_of.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/dog_all_of.dart index 9d424755b03..5805cdd29ce 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/dog_all_of.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/dog_all_of.dart @@ -12,6 +12,8 @@ abstract class DogAllOf implements Built { // Boilerplate code needed to wire-up generated code DogAllOf._(); + static void _initializeBuilder(DogAllOfBuilder b) => b; + factory DogAllOf([updates(DogAllOfBuilder b)]) = _$DogAllOf; static Serializer get serializer => _$dogAllOfSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/enum_arrays.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/enum_arrays.dart index 36bdfabbb98..6abf34bc4a2 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/enum_arrays.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/enum_arrays.dart @@ -19,6 +19,8 @@ abstract class EnumArrays implements Built { // Boilerplate code needed to wire-up generated code EnumArrays._(); + static void _initializeBuilder(EnumArraysBuilder b) => b; + factory EnumArrays([updates(EnumArraysBuilder b)]) = _$EnumArrays; static Serializer get serializer => _$enumArraysSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/enum_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/enum_test.dart index 72427403b00..4c48f04f8a5 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/enum_test.dart @@ -53,6 +53,8 @@ abstract class EnumTest implements Built { // Boilerplate code needed to wire-up generated code EnumTest._(); + static void _initializeBuilder(EnumTestBuilder b) => b; + factory EnumTest([updates(EnumTestBuilder b)]) = _$EnumTest; static Serializer get serializer => _$enumTestSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/file_schema_test_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/file_schema_test_class.dart index 2e822c5a701..fccb6c1708d 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/file_schema_test_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/file_schema_test_class.dart @@ -18,6 +18,8 @@ abstract class FileSchemaTestClass implements Built b; + factory FileSchemaTestClass([updates(FileSchemaTestClassBuilder b)]) = _$FileSchemaTestClass; static Serializer get serializer => _$fileSchemaTestClassSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/foo.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/foo.dart index d4f91044022..3e2020ea2ef 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/foo.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/foo.dart @@ -12,6 +12,9 @@ abstract class Foo implements Built { // Boilerplate code needed to wire-up generated code Foo._(); + static void _initializeBuilder(FooBuilder b) => b + ..bar = 'bar'; + factory Foo([updates(FooBuilder b)]) = _$Foo; static Serializer get serializer => _$fooSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/format_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/format_test.dart index 493b2b3be31..9738eb3de68 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/format_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/format_test.dart @@ -75,6 +75,8 @@ abstract class FormatTest implements Built { // Boilerplate code needed to wire-up generated code FormatTest._(); + static void _initializeBuilder(FormatTestBuilder b) => b; + factory FormatTest([updates(FormatTestBuilder b)]) = _$FormatTest; static Serializer get serializer => _$formatTestSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/has_only_read_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/has_only_read_only.dart index 58b72184eb9..9489432fe52 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/has_only_read_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/has_only_read_only.dart @@ -16,6 +16,8 @@ abstract class HasOnlyReadOnly implements Built b; + factory HasOnlyReadOnly([updates(HasOnlyReadOnlyBuilder b)]) = _$HasOnlyReadOnly; static Serializer get serializer => _$hasOnlyReadOnlySerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/health_check_result.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/health_check_result.dart index 1e985b34437..dd6c1ccaff7 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/health_check_result.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/health_check_result.dart @@ -12,6 +12,8 @@ abstract class HealthCheckResult implements Built b; + factory HealthCheckResult([updates(HealthCheckResultBuilder b)]) = _$HealthCheckResult; static Serializer get serializer => _$healthCheckResultSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object.dart index dc0ff059470..b1477f60e8c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object.dart @@ -18,6 +18,8 @@ abstract class InlineObject implements Built // Boilerplate code needed to wire-up generated code InlineObject._(); + static void _initializeBuilder(InlineObjectBuilder b) => b; + factory InlineObject([updates(InlineObjectBuilder b)]) = _$InlineObject; static Serializer get serializer => _$inlineObjectSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object1.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object1.dart index 18eeafff1f4..2eadc367d2d 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object1.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object1.dart @@ -19,6 +19,8 @@ abstract class InlineObject1 implements Built b; + factory InlineObject1([updates(InlineObject1Builder b)]) = _$InlineObject1; static Serializer get serializer => _$inlineObject1Serializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object2.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object2.dart index fd7a999ff99..833fef79291 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object2.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object2.dart @@ -21,6 +21,9 @@ abstract class InlineObject2 implements Built b + ..enumFormString = const InlineObject2EnumFormStringEnum._('-efg'); + factory InlineObject2([updates(InlineObject2Builder b)]) = _$InlineObject2; static Serializer get serializer => _$inlineObject2Serializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object3.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object3.dart index a5e7526f9a4..6afbdfa1625 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object3.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object3.dart @@ -79,6 +79,8 @@ abstract class InlineObject3 implements Built b; + factory InlineObject3([updates(InlineObject3Builder b)]) = _$InlineObject3; static Serializer get serializer => _$inlineObject3Serializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object4.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object4.dart index c33b4c9c317..212de4d90dd 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object4.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object4.dart @@ -18,6 +18,8 @@ abstract class InlineObject4 implements Built b; + factory InlineObject4([updates(InlineObject4Builder b)]) = _$InlineObject4; static Serializer get serializer => _$inlineObject4Serializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object5.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object5.dart index ffeb2fd62fa..b212a41cc6c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object5.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_object5.dart @@ -19,6 +19,8 @@ abstract class InlineObject5 implements Built b; + factory InlineObject5([updates(InlineObject5Builder b)]) = _$InlineObject5; static Serializer get serializer => _$inlineObject5Serializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_response_default.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_response_default.dart index 2e2cf922423..ba9c7ad34f6 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_response_default.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/inline_response_default.dart @@ -13,6 +13,8 @@ abstract class InlineResponseDefault implements Built b; + factory InlineResponseDefault([updates(InlineResponseDefaultBuilder b)]) = _$InlineResponseDefault; static Serializer get serializer => _$inlineResponseDefaultSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/map_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/map_test.dart index ef4b0b9794b..39dca4c8bba 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/map_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/map_test.dart @@ -26,6 +26,8 @@ abstract class MapTest implements Built { // Boilerplate code needed to wire-up generated code MapTest._(); + static void _initializeBuilder(MapTestBuilder b) => b; + factory MapTest([updates(MapTestBuilder b)]) = _$MapTest; static Serializer get serializer => _$mapTestSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/mixed_properties_and_additional_properties_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/mixed_properties_and_additional_properties_class.dart index fab066f4e22..19b4b3aa521 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/mixed_properties_and_additional_properties_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/mixed_properties_and_additional_properties_class.dart @@ -22,6 +22,8 @@ abstract class MixedPropertiesAndAdditionalPropertiesClass implements Built b; + factory MixedPropertiesAndAdditionalPropertiesClass([updates(MixedPropertiesAndAdditionalPropertiesClassBuilder b)]) = _$MixedPropertiesAndAdditionalPropertiesClass; static Serializer get serializer => _$mixedPropertiesAndAdditionalPropertiesClassSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model200_response.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model200_response.dart index d1e9eba050a..1f8ea361b90 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model200_response.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model200_response.dart @@ -16,6 +16,8 @@ abstract class Model200Response implements Built b; + factory Model200Response([updates(Model200ResponseBuilder b)]) = _$Model200Response; static Serializer get serializer => _$model200ResponseSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_client.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_client.dart index cd36b77637e..2ee3e1ced2c 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_client.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_client.dart @@ -12,6 +12,8 @@ abstract class ModelClient implements Built { // Boilerplate code needed to wire-up generated code ModelClient._(); + static void _initializeBuilder(ModelClientBuilder b) => b; + factory ModelClient([updates(ModelClientBuilder b)]) = _$ModelClient; static Serializer get serializer => _$modelClientSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_file.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_file.dart index 9e10a9b8214..bc1e736feca 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_file.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_file.dart @@ -13,6 +13,8 @@ abstract class ModelFile implements Built { // Boilerplate code needed to wire-up generated code ModelFile._(); + static void _initializeBuilder(ModelFileBuilder b) => b; + factory ModelFile([updates(ModelFileBuilder b)]) = _$ModelFile; static Serializer get serializer => _$modelFileSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_list.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_list.dart index a925685dbad..e95e59d4ec7 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_list.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_list.dart @@ -12,6 +12,8 @@ abstract class ModelList implements Built { // Boilerplate code needed to wire-up generated code ModelList._(); + static void _initializeBuilder(ModelListBuilder b) => b; + factory ModelList([updates(ModelListBuilder b)]) = _$ModelList; static Serializer get serializer => _$modelListSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_return.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_return.dart index 3f8eb1004e6..9d297a1538b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_return.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/model_return.dart @@ -12,6 +12,8 @@ abstract class ModelReturn implements Built { // Boilerplate code needed to wire-up generated code ModelReturn._(); + static void _initializeBuilder(ModelReturnBuilder b) => b; + factory ModelReturn([updates(ModelReturnBuilder b)]) = _$ModelReturn; static Serializer get serializer => _$modelReturnSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/name.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/name.dart index 2309150bffa..abd03a16c05 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/name.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/name.dart @@ -24,6 +24,8 @@ abstract class Name implements Built { // Boilerplate code needed to wire-up generated code Name._(); + static void _initializeBuilder(NameBuilder b) => b; + factory Name([updates(NameBuilder b)]) = _$Name; static Serializer get serializer => _$nameSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/nullable_class.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/nullable_class.dart index 9840000d6f4..33e36a0aacf 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/nullable_class.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/nullable_class.dart @@ -58,6 +58,8 @@ abstract class NullableClass implements Built b; + factory NullableClass([updates(NullableClassBuilder b)]) = _$NullableClass; static Serializer get serializer => _$nullableClassSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/number_only.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/number_only.dart index 2a700465952..0f801275141 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/number_only.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/number_only.dart @@ -12,6 +12,8 @@ abstract class NumberOnly implements Built { // Boilerplate code needed to wire-up generated code NumberOnly._(); + static void _initializeBuilder(NumberOnlyBuilder b) => b; + factory NumberOnly([updates(NumberOnlyBuilder b)]) = _$NumberOnly; static Serializer get serializer => _$numberOnlySerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/order.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/order.dart index 095b4d45448..517fba8eb73 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/order.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/order.dart @@ -35,6 +35,9 @@ abstract class Order implements Built { // Boilerplate code needed to wire-up generated code Order._(); + static void _initializeBuilder(OrderBuilder b) => b + ..complete = false; + factory Order([updates(OrderBuilder b)]) = _$Order; static Serializer get serializer => _$orderSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/outer_composite.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/outer_composite.dart index b252c5ea019..3c2c45170aa 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/outer_composite.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/outer_composite.dart @@ -20,6 +20,8 @@ abstract class OuterComposite implements Built b; + factory OuterComposite([updates(OuterCompositeBuilder b)]) = _$OuterComposite; static Serializer get serializer => _$outerCompositeSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/pet.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/pet.dart index 393376a819c..1fb992db794 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/pet.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/pet.dart @@ -37,6 +37,8 @@ abstract class Pet implements Built { // Boilerplate code needed to wire-up generated code Pet._(); + static void _initializeBuilder(PetBuilder b) => b; + factory Pet([updates(PetBuilder b)]) = _$Pet; static Serializer get serializer => _$petSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/read_only_first.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/read_only_first.dart index 72346def77d..898c30f40e1 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/read_only_first.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/read_only_first.dart @@ -16,6 +16,8 @@ abstract class ReadOnlyFirst implements Built b; + factory ReadOnlyFirst([updates(ReadOnlyFirstBuilder b)]) = _$ReadOnlyFirst; static Serializer get serializer => _$readOnlyFirstSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/special_model_name.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/special_model_name.dart index e7dc9cf4e7a..f80fcb16f66 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/special_model_name.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/special_model_name.dart @@ -12,6 +12,8 @@ abstract class SpecialModelName implements Built b; + factory SpecialModelName([updates(SpecialModelNameBuilder b)]) = _$SpecialModelName; static Serializer get serializer => _$specialModelNameSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/tag.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/tag.dart index 006e3426810..8149a7d3498 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/tag.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/tag.dart @@ -16,6 +16,8 @@ abstract class Tag implements Built { // Boilerplate code needed to wire-up generated code Tag._(); + static void _initializeBuilder(TagBuilder b) => b; + factory Tag([updates(TagBuilder b)]) = _$Tag; static Serializer get serializer => _$tagSerializer; } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/user.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/user.dart index fa480028d7e..3fd4092d546 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/user.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/user.dart @@ -41,6 +41,8 @@ abstract class User implements Built { // Boilerplate code needed to wire-up generated code User._(); + static void _initializeBuilder(UserBuilder b) => b; + factory User([updates(UserBuilder b)]) = _$User; static Serializer get serializer => _$userSerializer; }