mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(server): auto sort open api spec (#3500)
* chore: recursively sort api keys * chore: open api
This commit is contained in:
parent
690b87e375
commit
310fab526d
190 changed files with 6172 additions and 6168 deletions
|
|
@ -13,18 +13,14 @@ part of openapi.api;
|
|||
class AssetBulkUploadCheckResult {
|
||||
/// Returns a new [AssetBulkUploadCheckResult] instance.
|
||||
AssetBulkUploadCheckResult({
|
||||
required this.id,
|
||||
required this.action,
|
||||
this.reason,
|
||||
this.assetId,
|
||||
required this.id,
|
||||
this.reason,
|
||||
});
|
||||
|
||||
String id;
|
||||
|
||||
AssetBulkUploadCheckResultActionEnum action;
|
||||
|
||||
AssetBulkUploadCheckResultReasonEnum? reason;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
|
|
@ -33,37 +29,41 @@ class AssetBulkUploadCheckResult {
|
|||
///
|
||||
String? assetId;
|
||||
|
||||
String id;
|
||||
|
||||
AssetBulkUploadCheckResultReasonEnum? reason;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResult &&
|
||||
other.id == id &&
|
||||
other.action == action &&
|
||||
other.reason == reason &&
|
||||
other.assetId == assetId;
|
||||
other.assetId == assetId &&
|
||||
other.id == id &&
|
||||
other.reason == reason;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(id.hashCode) +
|
||||
(action.hashCode) +
|
||||
(reason == null ? 0 : reason!.hashCode) +
|
||||
(assetId == null ? 0 : assetId!.hashCode);
|
||||
(assetId == null ? 0 : assetId!.hashCode) +
|
||||
(id.hashCode) +
|
||||
(reason == null ? 0 : reason!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'AssetBulkUploadCheckResult[id=$id, action=$action, reason=$reason, assetId=$assetId]';
|
||||
String toString() => 'AssetBulkUploadCheckResult[action=$action, assetId=$assetId, id=$id, reason=$reason]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'id'] = this.id;
|
||||
json[r'action'] = this.action;
|
||||
if (this.reason != null) {
|
||||
json[r'reason'] = this.reason;
|
||||
} else {
|
||||
// json[r'reason'] = null;
|
||||
}
|
||||
if (this.assetId != null) {
|
||||
json[r'assetId'] = this.assetId;
|
||||
} else {
|
||||
// json[r'assetId'] = null;
|
||||
}
|
||||
json[r'id'] = this.id;
|
||||
if (this.reason != null) {
|
||||
json[r'reason'] = this.reason;
|
||||
} else {
|
||||
// json[r'reason'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
|
@ -76,10 +76,10 @@ class AssetBulkUploadCheckResult {
|
|||
final json = value.cast<String, dynamic>();
|
||||
|
||||
return AssetBulkUploadCheckResult(
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
action: AssetBulkUploadCheckResultActionEnum.fromJson(json[r'action'])!,
|
||||
reason: AssetBulkUploadCheckResultReasonEnum.fromJson(json[r'reason']),
|
||||
assetId: mapValueOfType<String>(json, r'assetId'),
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
reason: AssetBulkUploadCheckResultReasonEnum.fromJson(json[r'reason']),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
|
@ -127,8 +127,8 @@ class AssetBulkUploadCheckResult {
|
|||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'id',
|
||||
'action',
|
||||
'id',
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue