Skip to content

Commit

Permalink
Tmp (#3032)
Browse files Browse the repository at this point in the history
* update gitignore to track g.dart files

* add g.dart files

* add g.dart files

* handle properly presentJwtVcJsonLd to check presentation format
  • Loading branch information
hawkbee1 authored Oct 30, 2024
1 parent 75b9a39 commit 7672b64
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/app/shared/helper_functions/helper_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,10 @@ List<VCFormatType> getPresentVCDetails({
/// jwt_vc_json
presentJwtVcJson = format?.jwtVcJson != null || format?.jwtVpJson != null;

/// jwt_vc_json_ld
presentJwtVcJsonLd =
format?.jwtVcJsonLd != null || format?.jwtVpJson != null;

/// vc+sd-jwt
presentVcSdJwt = format?.vcSdJwt != null;
} else {
Expand Down
6 changes: 6 additions & 0 deletions packages/credential_manifest/lib/src/models/format.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Format {
this.ldpVp,
this.ldpVc,
this.vcSdJwt,
this.jwtVcJsonLd,
this.jwtVpJsonLd,
});

factory Format.fromJson(Map<String, dynamic> json) => _$FormatFromJson(json);
Expand All @@ -25,6 +27,10 @@ class Format {
FormatType? jwtVpJson;
@JsonKey(name: 'jwt_vc_json')
FormatType? jwtVcJson;
@JsonKey(name: 'jwt_vp_json_ld')
FormatType? jwtVpJsonLd;
@JsonKey(name: 'jwt_vc_json_ld')
FormatType? jwtVcJsonLd;
@JsonKey(name: 'ldp_vp')
FormatType? ldpVp;
@JsonKey(name: 'ldp_vc')
Expand Down
8 changes: 8 additions & 0 deletions packages/credential_manifest/lib/src/models/format.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/oidc4vc/lib/src/models/openid_configuration.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7672b64

Please sign in to comment.