Skip to content

Commit

Permalink
Changed required to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nm.suvorov committed Sep 2, 2024
1 parent 8f23fa6 commit bbae1d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion proto/PowersOfAttorney/PowerOfAttorneyValidation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ message ValidationProtocol {
}

message ValidationCheckResult {
required PowerOfAttorneyValidationCheckStatus Status = 1;
optional PowerOfAttorneyValidationCheckStatus Status = 1 [default = UnknownCheckStatus];
required string Name = 2;
optional PowerOfAttorneyValidationError Error = 3;
}
Expand Down
6 changes: 4 additions & 2 deletions src/Proto/PowersOfAttorney/PowerOfAttorneyValidation.proto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ public partial class ValidationCheckResult : global::ProtoBuf.IExtensible
{
public ValidationCheckResult() {}

private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus _Status;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"Status", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]

private Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus _Status = Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus.UnknownCheckStatus;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"Status", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus.UnknownCheckStatus)]
public Diadoc.Api.Proto.PowersOfAttorney.PowerOfAttorneyValidationCheckStatus Status
{
get { return _Status; }
Expand Down

0 comments on commit bbae1d9

Please sign in to comment.