Skip to content

Commit

Permalink
DDCORE-8007 Extended Poa Validation Contracts (#297)
Browse files Browse the repository at this point in the history
* Extended Poa Validation Contracts
  • Loading branch information
SuvorovNM authored Sep 4, 2024
1 parent 9f049c3 commit 3adee10
Show file tree
Hide file tree
Showing 2 changed files with 2,238 additions and 201 deletions.
22 changes: 21 additions & 1 deletion proto/PowersOfAttorney/PowerOfAttorneyValidation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ message PowerOfAttorneyValidationStatus {
optional Severity Severity = 1 [default = UnknownSeverity];
optional PowerOfAttorneyValidationStatusNamedId StatusNamedId = 2 [default = UnknownStatus];
optional string StatusText = 3;
repeated PowerOfAttorneyValidationError Errors = 4;
repeated PowerOfAttorneyValidationError Errors = 4 [deprecated = true];
optional ValidationProtocol ValidationProtocol = 5;
optional PowerOfAttorneyValidationError OperationError = 6;
}

enum PowerOfAttorneyValidationStatusNamedId {
Expand All @@ -17,6 +19,7 @@ enum PowerOfAttorneyValidationStatusNamedId {
IsNotValid = 3;
ValidationError = 4;
IsNotAttached = 5;
HasWarnings = 6;
}

message PowerOfAttorneyValidationError {
Expand All @@ -37,3 +40,20 @@ message ConfidantCertificateToPrevalidate {
message PowerOfAttorneyPrevalidateResult {
required PowerOfAttorneyValidationStatus PrevalidateStatus = 1;
}

message ValidationProtocol {
repeated ValidationCheckResult CheckResults = 1;
}

message ValidationCheckResult {
optional PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus];
required string Name = 2;
optional PowerOfAttorneyValidationError Error = 3;
}

enum PowerOfAttorneyValidationCheckStatus {
UnknownCheckStatus = 0; //reserved for backward compatibility
Ok = 1;
Warning = 2;
Error = 3;
}
Loading

0 comments on commit 3adee10

Please sign in to comment.