From c1cbf1658b75003be1497391c540decf1ae375b0 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Tue, 21 Oct 2025 13:59:19 +0300 Subject: [PATCH] fix(oauth): sex=null --- Makefile | 5 ++++- lib/features/auth/models/yandex_profile_model.dart | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cd6bc421..3db711ab 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,7 @@ run-tests: run-analyse: flutter analyze -run-checks: run-analyse run-tests \ No newline at end of file +run-checks: run-analyse run-tests + +build-generated-files: + dart run build_runner build --delete-conflicting-outputs \ No newline at end of file diff --git a/lib/features/auth/models/yandex_profile_model.dart b/lib/features/auth/models/yandex_profile_model.dart index 9bb84998..1c8b149d 100644 --- a/lib/features/auth/models/yandex_profile_model.dart +++ b/lib/features/auth/models/yandex_profile_model.dart @@ -14,7 +14,7 @@ abstract class YandexProfileModel with _$YandexProfileModel { @JsonKey(name: 'real_name') required String realName, @JsonKey(name: 'first_name') required String firstName, @JsonKey(name: 'last_name') required String lastName, - @JsonKey(name: 'sex') required String sex, + @JsonKey(name: 'sex') String? sex, @JsonKey(name: 'default_email') required String defaultEmail, @JsonKey(name: 'default_phone') required YandexPhoneData defaultPhone, }) = _YandexProfileModel;