mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
chore/remove openapi assertion for dart 2 (#2916)
* chore(server): patch dart openapi assertion 2 * removed usused file
This commit is contained in:
parent
4311d385fc
commit
751922990f
93 changed files with 23 additions and 25 deletions
BIN
mobile/openapi/lib/model/add_assets_dto.dart
generated
BIN
mobile/openapi/lib/model/add_assets_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/add_assets_response_dto.dart
generated
BIN
mobile/openapi/lib/model/add_assets_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/add_users_dto.dart
generated
BIN
mobile/openapi/lib/model/add_users_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/admin_signup_response_dto.dart
generated
BIN
mobile/openapi/lib/model/admin_signup_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/album_count_response_dto.dart
generated
BIN
mobile/openapi/lib/model/album_count_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/album_response_dto.dart
generated
BIN
mobile/openapi/lib/model/album_response_dto.dart
generated
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/api_key_create_dto.dart
generated
BIN
mobile/openapi/lib/model/api_key_create_dto.dart
generated
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/api_key_response_dto.dart
generated
BIN
mobile/openapi/lib/model/api_key_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/api_key_update_dto.dart
generated
BIN
mobile/openapi/lib/model/api_key_update_dto.dart
generated
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/asset_count_by_time_bucket.dart
generated
BIN
mobile/openapi/lib/model/asset_count_by_time_bucket.dart
generated
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/asset_ids_dto.dart
generated
BIN
mobile/openapi/lib/model/asset_ids_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/asset_ids_response_dto.dart
generated
BIN
mobile/openapi/lib/model/asset_ids_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/asset_response_dto.dart
generated
BIN
mobile/openapi/lib/model/asset_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/auth_device_response_dto.dart
generated
BIN
mobile/openapi/lib/model/auth_device_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/change_password_dto.dart
generated
BIN
mobile/openapi/lib/model/change_password_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/check_duplicate_asset_dto.dart
generated
BIN
mobile/openapi/lib/model/check_duplicate_asset_dto.dart
generated
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/check_existing_assets_dto.dart
generated
BIN
mobile/openapi/lib/model/check_existing_assets_dto.dart
generated
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/create_album_dto.dart
generated
BIN
mobile/openapi/lib/model/create_album_dto.dart
generated
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/create_tag_dto.dart
generated
BIN
mobile/openapi/lib/model/create_tag_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/create_user_dto.dart
generated
BIN
mobile/openapi/lib/model/create_user_dto.dart
generated
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/delete_asset_dto.dart
generated
BIN
mobile/openapi/lib/model/delete_asset_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/delete_asset_response_dto.dart
generated
BIN
mobile/openapi/lib/model/delete_asset_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/download_files_dto.dart
generated
BIN
mobile/openapi/lib/model/download_files_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/exif_response_dto.dart
generated
BIN
mobile/openapi/lib/model/exif_response_dto.dart
generated
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/import_asset_dto.dart
generated
BIN
mobile/openapi/lib/model/import_asset_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/job_command_dto.dart
generated
BIN
mobile/openapi/lib/model/job_command_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/job_counts_dto.dart
generated
BIN
mobile/openapi/lib/model/job_counts_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/job_settings_dto.dart
generated
BIN
mobile/openapi/lib/model/job_settings_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/job_status_dto.dart
generated
BIN
mobile/openapi/lib/model/job_status_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/login_credential_dto.dart
generated
BIN
mobile/openapi/lib/model/login_credential_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/login_response_dto.dart
generated
BIN
mobile/openapi/lib/model/login_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/logout_response_dto.dart
generated
BIN
mobile/openapi/lib/model/logout_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/map_marker_response_dto.dart
generated
BIN
mobile/openapi/lib/model/map_marker_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/memory_lane_response_dto.dart
generated
BIN
mobile/openapi/lib/model/memory_lane_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/o_auth_callback_dto.dart
generated
BIN
mobile/openapi/lib/model/o_auth_callback_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/o_auth_config_dto.dart
generated
BIN
mobile/openapi/lib/model/o_auth_config_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/o_auth_config_response_dto.dart
generated
BIN
mobile/openapi/lib/model/o_auth_config_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/person_response_dto.dart
generated
BIN
mobile/openapi/lib/model/person_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/person_update_dto.dart
generated
BIN
mobile/openapi/lib/model/person_update_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/queue_status_dto.dart
generated
BIN
mobile/openapi/lib/model/queue_status_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/remove_assets_dto.dart
generated
BIN
mobile/openapi/lib/model/remove_assets_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/search_album_response_dto.dart
generated
BIN
mobile/openapi/lib/model/search_album_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/search_asset_dto.dart
generated
BIN
mobile/openapi/lib/model/search_asset_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/search_asset_response_dto.dart
generated
BIN
mobile/openapi/lib/model/search_asset_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/search_config_response_dto.dart
generated
BIN
mobile/openapi/lib/model/search_config_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/search_explore_item.dart
generated
BIN
mobile/openapi/lib/model/search_explore_item.dart
generated
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/search_facet_response_dto.dart
generated
BIN
mobile/openapi/lib/model/search_facet_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/search_response_dto.dart
generated
BIN
mobile/openapi/lib/model/search_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/server_info_response_dto.dart
generated
BIN
mobile/openapi/lib/model/server_info_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/server_ping_response.dart
generated
BIN
mobile/openapi/lib/model/server_ping_response.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/server_stats_response_dto.dart
generated
BIN
mobile/openapi/lib/model/server_stats_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/server_version_reponse_dto.dart
generated
BIN
mobile/openapi/lib/model/server_version_reponse_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/shared_link_create_dto.dart
generated
BIN
mobile/openapi/lib/model/shared_link_create_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/shared_link_edit_dto.dart
generated
BIN
mobile/openapi/lib/model/shared_link_edit_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/shared_link_response_dto.dart
generated
BIN
mobile/openapi/lib/model/shared_link_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/sign_up_dto.dart
generated
BIN
mobile/openapi/lib/model/sign_up_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/smart_info_response_dto.dart
generated
BIN
mobile/openapi/lib/model/smart_info_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_job_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_job_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/system_config_o_auth_dto.dart
generated
BIN
mobile/openapi/lib/model/system_config_o_auth_dto.dart
generated
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
mobile/openapi/lib/model/tag_response_dto.dart
generated
BIN
mobile/openapi/lib/model/tag_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/update_album_dto.dart
generated
BIN
mobile/openapi/lib/model/update_album_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/update_asset_dto.dart
generated
BIN
mobile/openapi/lib/model/update_asset_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/update_tag_dto.dart
generated
BIN
mobile/openapi/lib/model/update_tag_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/update_user_dto.dart
generated
BIN
mobile/openapi/lib/model/update_user_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/usage_by_user_dto.dart
generated
BIN
mobile/openapi/lib/model/usage_by_user_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/user_count_response_dto.dart
generated
BIN
mobile/openapi/lib/model/user_count_response_dto.dart
generated
Binary file not shown.
BIN
mobile/openapi/lib/model/user_response_dto.dart
generated
BIN
mobile/openapi/lib/model/user_response_dto.dart
generated
Binary file not shown.
Binary file not shown.
|
@ -91,14 +91,14 @@ class {{{classname}}} {
|
||||||
{{/isDateTime}}
|
{{/isDateTime}}
|
||||||
{{#isNullable}}
|
{{#isNullable}}
|
||||||
} else {
|
} else {
|
||||||
// json[r'{{{baseName}}}'] = null;
|
// json[r'{{{baseName}}}'] = null;
|
||||||
}
|
}
|
||||||
{{/isNullable}}
|
{{/isNullable}}
|
||||||
{{^isNullable}}
|
{{^isNullable}}
|
||||||
{{^required}}
|
{{^required}}
|
||||||
{{^defaultValue}}
|
{{^defaultValue}}
|
||||||
} else {
|
} else {
|
||||||
// json[r'{{{baseName}}}'] = null;
|
// json[r'{{{baseName}}}'] = null;
|
||||||
}
|
}
|
||||||
{{/defaultValue}}
|
{{/defaultValue}}
|
||||||
{{/required}}
|
{{/required}}
|
||||||
|
@ -114,17 +114,6 @@ class {{{classname}}} {
|
||||||
if (value is Map) {
|
if (value is Map) {
|
||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
// Ensure that the map contains the required keys.
|
|
||||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
|
||||||
// Note 2: this code is stripped in release mode!
|
|
||||||
assert(() {
|
|
||||||
requiredKeys.forEach((key) {
|
|
||||||
assert(json.containsKey(key), 'Required key "{{{classname}}}[$key]" is missing from JSON.');
|
|
||||||
// assert(json[key] != null, 'Required key "{{{classname}}}[$key]" has a null value in JSON.');
|
|
||||||
});
|
|
||||||
return true;
|
|
||||||
}());
|
|
||||||
|
|
||||||
return {{{classname}}}(
|
return {{{classname}}}(
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
{{#isDateTime}}
|
{{#isDateTime}}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
--- native_class.mustache 2023-06-22 12:00:16.480685565 -0500
|
--- native_class.mustache 2023-06-22 12:56:11.090350406 -0500
|
||||||
+++ native_class1.mustache 2023-06-22 12:01:41.772534371 -0500
|
+++ native_class1.mustache 2023-06-22 12:57:14.498184792 -0500
|
||||||
@@ -91,14 +91,14 @@
|
@@ -91,14 +91,14 @@
|
||||||
{{/isDateTime}}
|
{{/isDateTime}}
|
||||||
{{#isNullable}}
|
{{#isNullable}}
|
||||||
} else {
|
} else {
|
||||||
- json[r'{{{baseName}}}'] = null;
|
- json[r'{{{baseName}}}'] = null;
|
||||||
+ // json[r'{{{baseName}}}'] = null;
|
+ // json[r'{{{baseName}}}'] = null;
|
||||||
}
|
}
|
||||||
{{/isNullable}}
|
{{/isNullable}}
|
||||||
{{^isNullable}}
|
{{^isNullable}}
|
||||||
|
@ -13,16 +13,25 @@
|
||||||
{{^defaultValue}}
|
{{^defaultValue}}
|
||||||
} else {
|
} else {
|
||||||
- json[r'{{{baseName}}}'] = null;
|
- json[r'{{{baseName}}}'] = null;
|
||||||
+ // json[r'{{{baseName}}}'] = null;
|
+ // json[r'{{{baseName}}}'] = null;
|
||||||
}
|
}
|
||||||
{{/defaultValue}}
|
{{/defaultValue}}
|
||||||
{{/required}}
|
{{/required}}
|
||||||
@@ -120,7 +120,7 @@
|
@@ -114,17 +114,6 @@
|
||||||
assert(() {
|
if (value is Map) {
|
||||||
requiredKeys.forEach((key) {
|
final json = value.cast<String, dynamic>();
|
||||||
assert(json.containsKey(key), 'Required key "{{{classname}}}[$key]" is missing from JSON.');
|
|
||||||
|
- // Ensure that the map contains the required keys.
|
||||||
|
- // Note 1: the values aren't checked for validity beyond being non-null.
|
||||||
|
- // Note 2: this code is stripped in release mode!
|
||||||
|
- assert(() {
|
||||||
|
- requiredKeys.forEach((key) {
|
||||||
|
- assert(json.containsKey(key), 'Required key "{{{classname}}}[$key]" is missing from JSON.');
|
||||||
- assert(json[key] != null, 'Required key "{{{classname}}}[$key]" has a null value in JSON.');
|
- assert(json[key] != null, 'Required key "{{{classname}}}[$key]" has a null value in JSON.');
|
||||||
+ // assert(json[key] != null, 'Required key "{{{classname}}}[$key]" has a null value in JSON.');
|
- });
|
||||||
});
|
- return true;
|
||||||
return true;
|
- }());
|
||||||
}());
|
-
|
||||||
|
return {{{classname}}}(
|
||||||
|
{{#vars}}
|
||||||
|
{{#isDateTime}}
|
||||||
|
|
Loading…
Reference in a new issue