Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDCORE-8007 Extended Poa Validation Contracts #297

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading