@@ -355,7 +355,7 @@ from claim in sdJwtRecord.Claims
355
355
ClientId = authorizationRequest . ClientId ,
356
356
ClientMetadata = authorizationRequest . ClientMetadata ,
357
357
Name = authorizationRequest . Requirements . Match (
358
- dcqlQuery => Option < string > . None ,
358
+ _ => Option < string > . None ,
359
359
presentationDefinition => presentationDefinition . Name ) ,
360
360
PresentedCredentialSets = presentedCredentials . ToList ( )
361
361
} ;
@@ -637,7 +637,7 @@ from claim in sdJwtRecord.Claims
637
637
ClientId = authorizationRequest . ClientId ,
638
638
ClientMetadata = authorizationRequest . ClientMetadata ,
639
639
Name = authorizationRequest . Requirements . Match (
640
- dcqlQuery => Option < string > . None ,
640
+ _ => Option < string > . None ,
641
641
presentationDefinition => presentationDefinition . Name ) ,
642
642
PresentedCredentialSets = presentedCredentials . ToList ( )
643
643
} ;
@@ -675,7 +675,7 @@ public async Task<Validation<AuthorizationRequestCancellation, PresentationCandi
675
675
var uc5TxDataOption = presentationCandidates
676
676
. AuthorizationRequest
677
677
. Requirements . Match (
678
- dcqlQuery => Option < IEnumerable < InputDescriptorTransactionData > > . None ,
678
+ _ => Option < IEnumerable < InputDescriptorTransactionData > > . None ,
679
679
presentationDefinition => presentationDefinition . InputDescriptors . TraverseAny ( descriptor =>
680
680
descriptor . TransactionData . OnSome ( list =>
681
681
new InputDescriptorTransactionData ( descriptor . Id , list ) ) ) ) ;
@@ -713,7 +713,8 @@ private static Validation<AuthorizationRequestCancellation, PresentationCandidat
713
713
return candidates . FindCandidateForTransactionData ( transactionData ) . Match (
714
714
candidate => candidate . AddTransactionData ( transactionData ) ,
715
715
( ) => ( Validation < PresentationCandidate > ) new InvalidTransactionDataError (
716
- $ "No credentials found that satisfy the transaction data with type { transactionData . GetTransactionDataType ( ) . AsString ( ) } ") ) ;
716
+ $ "No credentials found that satisfy the transaction data with type { transactionData . GetTransactionDataType ( ) . AsString ( ) } ",
717
+ presentationCandidates ) ) ;
717
718
} ) ;
718
719
719
720
return candidatesValidation . OnSuccess ( enumerable => presentationCandidates with
@@ -722,7 +723,8 @@ private static Validation<AuthorizationRequestCancellation, PresentationCandidat
722
723
} ) ;
723
724
} ,
724
725
( ) => new InvalidTransactionDataError (
725
- "No credentials found that satisfy the authorization request with transaction data" )
726
+ "No credentials found that satisfy the authorization request with transaction data" ,
727
+ presentationCandidates )
726
728
. ToInvalid < PresentationCandidates > ( )
727
729
) ;
728
730
@@ -748,7 +750,9 @@ private static Validation<AuthorizationRequestCancellation, PresentationCandidat
748
750
749
751
return candidateOption . Match (
750
752
candidate => candidate . AddUc5TransactionData ( inputDescriptorTxData . TransactionData ) ,
751
- ( ) => ( Validation < PresentationCandidate > ) new InvalidTransactionDataError ( "No credentials found that satisfy the authorization request with transaction data" )
753
+ ( ) => ( Validation < PresentationCandidate > ) new InvalidTransactionDataError (
754
+ "No credentials found that satisfy the authorization request with transaction data" ,
755
+ presentationCandidates )
752
756
) ;
753
757
} ) ;
754
758
0 commit comments