Skip to content

Commit 196579e

Browse files
committed
fix
1 parent f0e3460 commit 196579e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+581
-493
lines changed

samples/documentation/html2/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -9512,19 +9512,19 @@ <h3 id="examples-User-loginUser-title-200"></h3>
95129512
<th>Description</th>
95139513
</tr>
95149514
<tr>
9515-
<td>SetMinusCookie</td>
9515+
<td>SetDashCookie</td>
95169516
<td>String</td>
95179517
<td></td>
95189518
<td>Cookie authentication key for use with the &#x60;api_key&#x60; apiKey authentication.</td>
95199519
</tr>
95209520
<tr>
9521-
<td>XMinusRateMinusLimit</td>
9521+
<td>XDashRateDashLimit</td>
95229522
<td>Integer</td>
95239523
<td>int32</td>
95249524
<td>calls per hour allowed by the user</td>
95259525
</tr>
95269526
<tr>
9527-
<td>XMinusExpiresMinusAfter</td>
9527+
<td>XDashExpiresDashAfter</td>
95289528
<td>Date</td>
95299529
<td>date-time</td>
95309530
<td>date in UTC when token expires</td>

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/additional_properties_class.dart

+10-8
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,17 @@ class AdditionalPropertiesClass {
4747

4848

4949

50-
@override
51-
bool operator ==(Object other) => identical(this, other) || other is AdditionalPropertiesClass &&
52-
other.mapProperty == mapProperty &&
53-
other.mapOfMapProperty == mapOfMapProperty;
5450

55-
@override
56-
int get hashCode =>
57-
mapProperty.hashCode +
58-
mapOfMapProperty.hashCode;
51+
52+
@override
53+
bool operator ==(Object other) => identical(this, other) || other is AdditionalPropertiesClass &&
54+
other.mapProperty == mapProperty &&
55+
other.mapOfMapProperty == mapOfMapProperty;
56+
57+
@override
58+
int get hashCode =>
59+
mapProperty.hashCode +
60+
mapOfMapProperty.hashCode;
5961

6062
factory AdditionalPropertiesClass.fromJson(Map<String, dynamic> json) => _$AdditionalPropertiesClassFromJson(json);
6163

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/all_of_with_single_ref.dart

+10-8
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,17 @@ class AllOfWithSingleRef {
4848

4949

5050

51-
@override
52-
bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef &&
53-
other.username == username &&
54-
other.singleRefType == singleRefType;
5551

56-
@override
57-
int get hashCode =>
58-
username.hashCode +
59-
singleRefType.hashCode;
52+
53+
@override
54+
bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef &&
55+
other.username == username &&
56+
other.singleRefType == singleRefType;
57+
58+
@override
59+
int get hashCode =>
60+
username.hashCode +
61+
singleRefType.hashCode;
6062

6163
factory AllOfWithSingleRef.fromJson(Map<String, dynamic> json) => _$AllOfWithSingleRefFromJson(json);
6264

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/animal.dart

+10-8
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,17 @@ class Animal {
4747

4848

4949

50-
@override
51-
bool operator ==(Object other) => identical(this, other) || other is Animal &&
52-
other.className == className &&
53-
other.color == color;
5450

55-
@override
56-
int get hashCode =>
57-
className.hashCode +
58-
color.hashCode;
51+
52+
@override
53+
bool operator ==(Object other) => identical(this, other) || other is Animal &&
54+
other.className == className &&
55+
other.color == color;
56+
57+
@override
58+
int get hashCode =>
59+
className.hashCode +
60+
color.hashCode;
5961

6062
factory Animal.fromJson(Map<String, dynamic> json) => _$AnimalFromJson(json);
6163

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/api_response.dart

+12-10
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,19 @@ class ApiResponse {
6161

6262

6363

64-
@override
65-
bool operator ==(Object other) => identical(this, other) || other is ApiResponse &&
66-
other.code == code &&
67-
other.type == type &&
68-
other.message == message;
6964

70-
@override
71-
int get hashCode =>
72-
code.hashCode +
73-
type.hashCode +
74-
message.hashCode;
65+
66+
@override
67+
bool operator ==(Object other) => identical(this, other) || other is ApiResponse &&
68+
other.code == code &&
69+
other.type == type &&
70+
other.message == message;
71+
72+
@override
73+
int get hashCode =>
74+
code.hashCode +
75+
type.hashCode +
76+
message.hashCode;
7577

7678
factory ApiResponse.fromJson(Map<String, dynamic> json) => _$ApiResponseFromJson(json);
7779

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_array_of_number_only.dart

+8-6
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ class ArrayOfArrayOfNumberOnly {
3333

3434

3535

36-
@override
37-
bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly &&
38-
other.arrayArrayNumber == arrayArrayNumber;
3936

40-
@override
41-
int get hashCode =>
42-
arrayArrayNumber.hashCode;
37+
38+
@override
39+
bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly &&
40+
other.arrayArrayNumber == arrayArrayNumber;
41+
42+
@override
43+
int get hashCode =>
44+
arrayArrayNumber.hashCode;
4345

4446
factory ArrayOfArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfArrayOfNumberOnlyFromJson(json);
4547

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_of_number_only.dart

+8-6
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ class ArrayOfNumberOnly {
3333

3434

3535

36-
@override
37-
bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly &&
38-
other.arrayNumber == arrayNumber;
3936

40-
@override
41-
int get hashCode =>
42-
arrayNumber.hashCode;
37+
38+
@override
39+
bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly &&
40+
other.arrayNumber == arrayNumber;
41+
42+
@override
43+
int get hashCode =>
44+
arrayNumber.hashCode;
4345

4446
factory ArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfNumberOnlyFromJson(json);
4547

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/array_test.dart

+12-10
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,19 @@ class ArrayTest {
6262

6363

6464

65-
@override
66-
bool operator ==(Object other) => identical(this, other) || other is ArrayTest &&
67-
other.arrayOfString == arrayOfString &&
68-
other.arrayArrayOfInteger == arrayArrayOfInteger &&
69-
other.arrayArrayOfModel == arrayArrayOfModel;
7065

71-
@override
72-
int get hashCode =>
73-
arrayOfString.hashCode +
74-
arrayArrayOfInteger.hashCode +
75-
arrayArrayOfModel.hashCode;
66+
67+
@override
68+
bool operator ==(Object other) => identical(this, other) || other is ArrayTest &&
69+
other.arrayOfString == arrayOfString &&
70+
other.arrayArrayOfInteger == arrayArrayOfInteger &&
71+
other.arrayArrayOfModel == arrayArrayOfModel;
72+
73+
@override
74+
int get hashCode =>
75+
arrayOfString.hashCode +
76+
arrayArrayOfInteger.hashCode +
77+
arrayArrayOfModel.hashCode;
7678

7779
factory ArrayTest.fromJson(Map<String, dynamic> json) => _$ArrayTestFromJson(json);
7880

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/capitalization.dart

+18-16
Original file line numberDiff line numberDiff line change
@@ -104,23 +104,25 @@ class Capitalization {
104104

105105

106106

107-
@override
108-
bool operator ==(Object other) => identical(this, other) || other is Capitalization &&
109-
other.smallCamel == smallCamel &&
110-
other.capitalCamel == capitalCamel &&
111-
other.smallSnake == smallSnake &&
112-
other.capitalSnake == capitalSnake &&
113-
other.sCAETHFlowPoints == sCAETHFlowPoints &&
114-
other.ATT_NAME == ATT_NAME;
115107

116-
@override
117-
int get hashCode =>
118-
smallCamel.hashCode +
119-
capitalCamel.hashCode +
120-
smallSnake.hashCode +
121-
capitalSnake.hashCode +
122-
sCAETHFlowPoints.hashCode +
123-
ATT_NAME.hashCode;
108+
109+
@override
110+
bool operator ==(Object other) => identical(this, other) || other is Capitalization &&
111+
other.smallCamel == smallCamel &&
112+
other.capitalCamel == capitalCamel &&
113+
other.smallSnake == smallSnake &&
114+
other.capitalSnake == capitalSnake &&
115+
other.sCAETHFlowPoints == sCAETHFlowPoints &&
116+
other.ATT_NAME == ATT_NAME;
117+
118+
@override
119+
int get hashCode =>
120+
smallCamel.hashCode +
121+
capitalCamel.hashCode +
122+
smallSnake.hashCode +
123+
capitalSnake.hashCode +
124+
sCAETHFlowPoints.hashCode +
125+
ATT_NAME.hashCode;
124126

125127
factory Capitalization.fromJson(Map<String, dynamic> json) => _$CapitalizationFromJson(json);
126128

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/cat.dart

+12-10
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ class Cat {
6464

6565

6666

67-
@override
68-
bool operator ==(Object other) => identical(this, other) || other is Cat &&
69-
other.className == className &&
70-
other.color == color &&
71-
other.declawed == declawed;
7267

73-
@override
74-
int get hashCode =>
75-
className.hashCode +
76-
color.hashCode +
77-
declawed.hashCode;
68+
69+
@override
70+
bool operator ==(Object other) => identical(this, other) || other is Cat &&
71+
other.className == className &&
72+
other.color == color &&
73+
other.declawed == declawed;
74+
75+
@override
76+
int get hashCode =>
77+
className.hashCode +
78+
color.hashCode +
79+
declawed.hashCode;
7880

7981
factory Cat.fromJson(Map<String, dynamic> json) => _$CatFromJson(json);
8082

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/category.dart

+10-8
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,17 @@ class Category {
4747

4848

4949

50-
@override
51-
bool operator ==(Object other) => identical(this, other) || other is Category &&
52-
other.id == id &&
53-
other.name == name;
5450

55-
@override
56-
int get hashCode =>
57-
id.hashCode +
58-
name.hashCode;
51+
52+
@override
53+
bool operator ==(Object other) => identical(this, other) || other is Category &&
54+
other.id == id &&
55+
other.name == name;
56+
57+
@override
58+
int get hashCode =>
59+
id.hashCode +
60+
name.hashCode;
5961

6062
factory Category.fromJson(Map<String, dynamic> json) => _$CategoryFromJson(json);
6163

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/child_with_nullable.dart

+12-10
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ class ChildWithNullable {
6464

6565

6666

67-
@override
68-
bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable &&
69-
other.type == type &&
70-
other.nullableProperty == nullableProperty &&
71-
other.otherProperty == otherProperty;
7267

73-
@override
74-
int get hashCode =>
75-
type.hashCode +
76-
(nullableProperty == null ? 0 : nullableProperty.hashCode) +
77-
otherProperty.hashCode;
68+
69+
@override
70+
bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable &&
71+
other.type == type &&
72+
other.nullableProperty == nullableProperty &&
73+
other.otherProperty == otherProperty;
74+
75+
@override
76+
int get hashCode =>
77+
type.hashCode +
78+
(nullableProperty == null ? 0 : nullableProperty.hashCode) +
79+
otherProperty.hashCode;
7880

7981
factory ChildWithNullable.fromJson(Map<String, dynamic> json) => _$ChildWithNullableFromJson(json);
8082

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/class_model.dart

+8-6
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ class ClassModel {
3333

3434

3535

36-
@override
37-
bool operator ==(Object other) => identical(this, other) || other is ClassModel &&
38-
other.class_ == class_;
3936

40-
@override
41-
int get hashCode =>
42-
class_.hashCode;
37+
38+
@override
39+
bool operator ==(Object other) => identical(this, other) || other is ClassModel &&
40+
other.class_ == class_;
41+
42+
@override
43+
int get hashCode =>
44+
class_.hashCode;
4345

4446
factory ClassModel.fromJson(Map<String, dynamic> json) => _$ClassModelFromJson(json);
4547

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/deprecated_object.dart

+8-6
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ class DeprecatedObject {
3434

3535

3636

37-
@override
38-
bool operator ==(Object other) => identical(this, other) || other is DeprecatedObject &&
39-
other.name == name;
4037

41-
@override
42-
int get hashCode =>
43-
name.hashCode;
38+
39+
@override
40+
bool operator ==(Object other) => identical(this, other) || other is DeprecatedObject &&
41+
other.name == name;
42+
43+
@override
44+
int get hashCode =>
45+
name.hashCode;
4446

4547
factory DeprecatedObject.fromJson(Map<String, dynamic> json) => _$DeprecatedObjectFromJson(json);
4648

0 commit comments

Comments
 (0)