From 5a5cc26ab4d9f42aae997fc72630a334db9a5d44 Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Fri, 13 Dec 2024 15:27:28 +0545 Subject: [PATCH] feat: Remove -none- from the VC format choice #3194 --- .../discover_dummy_credential.g.dart | 1 - lib/dashboard/profile/models/profile_setting.g.dart | 1 - packages/oidc4vc/lib/src/vc_format_type.dart | 10 ---------- 3 files changed, 12 deletions(-) diff --git a/lib/dashboard/home/tab_bar/credentials/models/discover_dummy_credential/discover_dummy_credential.g.dart b/lib/dashboard/home/tab_bar/credentials/models/discover_dummy_credential/discover_dummy_credential.g.dart index 655cea71c..cc739e5bf 100644 --- a/lib/dashboard/home/tab_bar/credentials/models/discover_dummy_credential/discover_dummy_credential.g.dart +++ b/lib/dashboard/home/tab_bar/credentials/models/discover_dummy_credential/discover_dummy_credential.g.dart @@ -117,5 +117,4 @@ const _$VCFormatTypeEnumMap = { VCFormatType.jwtVcJsonLd: 'jwt_vc_json-ld', VCFormatType.vcSdJWT: 'vc+sd-jwt', VCFormatType.auto: 'auto', - VCFormatType.none: 'none', }; diff --git a/lib/dashboard/profile/models/profile_setting.g.dart b/lib/dashboard/profile/models/profile_setting.g.dart index 26ca0af4f..cc2d8dff3 100644 --- a/lib/dashboard/profile/models/profile_setting.g.dart +++ b/lib/dashboard/profile/models/profile_setting.g.dart @@ -85,7 +85,6 @@ const _$VCFormatTypeEnumMap = { VCFormatType.jwtVcJsonLd: 'jwt_vc_json-ld', VCFormatType.vcSdJWT: 'vc+sd-jwt', VCFormatType.auto: 'auto', - VCFormatType.none: 'none', }; DiscoverCardsOptions _$DiscoverCardsOptionsFromJson( diff --git a/packages/oidc4vc/lib/src/vc_format_type.dart b/packages/oidc4vc/lib/src/vc_format_type.dart index 257d216a2..d366e7551 100644 --- a/packages/oidc4vc/lib/src/vc_format_type.dart +++ b/packages/oidc4vc/lib/src/vc_format_type.dart @@ -13,8 +13,6 @@ enum VCFormatType { vcSdJWT, @JsonValue('auto') auto, - @JsonValue('none') - none, } extension VCFormatTypeX on VCFormatType { @@ -32,8 +30,6 @@ extension VCFormatTypeX on VCFormatType { return 'vc+sd-jwt'; case VCFormatType.auto: return 'auto'; - case VCFormatType.none: - return 'none'; } } @@ -58,8 +54,6 @@ extension VCFormatTypeX on VCFormatType { case VCFormatType.auto: return 'auto'; - case VCFormatType.none: - return 'none'; } } @@ -72,9 +66,7 @@ extension VCFormatTypeX on VCFormatType { case VCFormatType.jwtVcJsonLd: case VCFormatType.vcSdJWT: case VCFormatType.auto: - case VCFormatType.none: return false; - // TODO: Handle this case. } } @@ -92,8 +84,6 @@ extension VCFormatTypeX on VCFormatType { return 'vc+sd-jwt'; case VCFormatType.auto: return 'auto'; - case VCFormatType.none: - return 'none'; } } }