mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-12-08 20:29:05 +00:00
fix(server): non-nullable IsOptional (#3939)
* custom `IsOptional` * added link to source * formatting * Update server/src/domain/domain.util.ts Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * nullable birth date endpoint * made `nullable` a property * formatting * removed unused dto * updated decorator arg * fixed album e2e tests * add null tests for auth e2e * add null test for person e2e * fixed tests * added null test for user e2e * removed unusued import * log key in test name * chore: add note about mobile not being able to use the endpoint --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
2
mobile/openapi/doc/PeopleUpdateItem.md
generated
2
mobile/openapi/doc/PeopleUpdateItem.md
generated
@@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**birthDate** | [**DateTime**](DateTime.md) | Person date of birth. | [optional]
|
||||
**birthDate** | [**DateTime**](DateTime.md) | Person date of birth. Note: the mobile app cannot currently set the birth date to null. | [optional]
|
||||
**featureFaceAssetId** | **String** | Asset is used to get the feature face thumbnail. | [optional]
|
||||
**id** | **String** | Person id. |
|
||||
**isHidden** | **bool** | Person visibility | [optional]
|
||||
|
||||
2
mobile/openapi/doc/PersonUpdateDto.md
generated
2
mobile/openapi/doc/PersonUpdateDto.md
generated
@@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**birthDate** | [**DateTime**](DateTime.md) | Person date of birth. | [optional]
|
||||
**birthDate** | [**DateTime**](DateTime.md) | Person date of birth. Note: the mobile app cannot currently set the birth date to null. | [optional]
|
||||
**featureFaceAssetId** | **String** | Asset is used to get the feature face thumbnail. | [optional]
|
||||
**isHidden** | **bool** | Person visibility | [optional]
|
||||
**name** | **String** | Person name. | [optional]
|
||||
|
||||
2
mobile/openapi/lib/model/people_update_item.dart
generated
2
mobile/openapi/lib/model/people_update_item.dart
generated
@@ -20,7 +20,7 @@ class PeopleUpdateItem {
|
||||
this.name,
|
||||
});
|
||||
|
||||
/// Person date of birth.
|
||||
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||
DateTime? birthDate;
|
||||
|
||||
/// Asset is used to get the feature face thumbnail.
|
||||
|
||||
2
mobile/openapi/lib/model/person_update_dto.dart
generated
2
mobile/openapi/lib/model/person_update_dto.dart
generated
@@ -19,7 +19,7 @@ class PersonUpdateDto {
|
||||
this.name,
|
||||
});
|
||||
|
||||
/// Person date of birth.
|
||||
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||
DateTime? birthDate;
|
||||
|
||||
/// Asset is used to get the feature face thumbnail.
|
||||
|
||||
2
mobile/openapi/test/people_update_item_test.dart
generated
2
mobile/openapi/test/people_update_item_test.dart
generated
@@ -16,7 +16,7 @@ void main() {
|
||||
// final instance = PeopleUpdateItem();
|
||||
|
||||
group('test PeopleUpdateItem', () {
|
||||
// Person date of birth.
|
||||
// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||
// DateTime birthDate
|
||||
test('to test the property `birthDate`', () async {
|
||||
// TODO
|
||||
|
||||
2
mobile/openapi/test/person_update_dto_test.dart
generated
2
mobile/openapi/test/person_update_dto_test.dart
generated
@@ -16,7 +16,7 @@ void main() {
|
||||
// final instance = PersonUpdateDto();
|
||||
|
||||
group('test PersonUpdateDto', () {
|
||||
// Person date of birth.
|
||||
// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||
// DateTime birthDate
|
||||
test('to test the property `birthDate`', () async {
|
||||
// TODO
|
||||
|
||||
Reference in New Issue
Block a user