Skip to content

Commit b4a39d6

Browse files
committed
made model url startswith https:
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
1 parent 43f4bd3 commit b4a39d6

File tree

2 files changed

+127
-127
lines changed
  • proto/zigbeealliance/distributedcomplianceledger/model
  • x/model/types

2 files changed

+127
-127
lines changed

proto/zigbeealliance/distributedcomplianceledger/model/tx.proto

+14-14
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ message MsgCreateModel {
3131
string productLabel = 6 [(gogoproto.moretags) = "validate:\"max=256\""];
3232
string partNumber = 7 [(gogoproto.moretags) = "validate:\"max=32\""];
3333
int32 commissioningCustomFlow = 8 [(gogoproto.moretags) = "validate:\"gte=0,lte=2\""];
34-
string commissioningCustomFlowUrl = 9 [(gogoproto.moretags) = "validate:\"required_if=CommissioningCustomFlow 2,omitempty,url,startsnotwith=http:,max=256\""];
34+
string commissioningCustomFlowUrl = 9 [(gogoproto.moretags) = "validate:\"required_if=CommissioningCustomFlow 2,omitempty,url,startswith=https:,max=256\""];
3535
uint32 commissioningModeInitialStepsHint = 10;
3636
string commissioningModeInitialStepsInstruction = 11 [(gogoproto.moretags) = "validate:\"max=1024\""];
3737
uint32 commissioningModeSecondaryStepsHint = 12;
3838
string commissioningModeSecondaryStepsInstruction = 13 [(gogoproto.moretags) = "validate:\"max=1024\""];
39-
string userManualUrl = 14 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
40-
string supportUrl = 15 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
41-
string productUrl = 16 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
42-
string lsfUrl = 17 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
39+
string userManualUrl = 14 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
40+
string supportUrl = 15 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
41+
string productUrl = 16 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
42+
string lsfUrl = 17 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
4343
uint32 schemaVersion = 18 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
4444
int32 enhancedSetupFlowOptions = 19 [(gogoproto.moretags) = "validate:\"omitempty,gte=0,lte=65535\""];
4545
string enhancedSetupFlowTCUrl = 20 [(gogoproto.moretags) = "validate:\"required_if_bit_0_set=EnhancedSetupFlowOptions,omitempty,url,startswith=https:,max=256\""];
@@ -58,13 +58,13 @@ message MsgUpdateModel {
5858
string productName = 4 [(gogoproto.moretags) = "validate:\"max=128\""];
5959
string productLabel = 5 [(gogoproto.moretags) = "validate:\"max=256\""];
6060
string partNumber = 6 [(gogoproto.moretags) = "validate:\"max=32\""];
61-
string commissioningCustomFlowUrl = 7 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
61+
string commissioningCustomFlowUrl = 7 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
6262
string commissioningModeInitialStepsInstruction = 8 [(gogoproto.moretags) = "validate:\"max=1024\""];
6363
string commissioningModeSecondaryStepsInstruction = 9 [(gogoproto.moretags) = "validate:\"max=1024\""];
64-
string userManualUrl = 10 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
65-
string supportUrl = 11 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
66-
string productUrl = 12 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
67-
string lsfUrl = 13 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
64+
string userManualUrl = 10 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
65+
string supportUrl = 11 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
66+
string productUrl = 12 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
67+
string lsfUrl = 13 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
6868
int32 lsfRevision = 14 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
6969
uint32 schemaVersion = 15 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
7070
uint32 commissioningModeInitialStepsHint = 16;
@@ -94,13 +94,13 @@ message MsgCreateModelVersion {
9494
int32 cdVersionNumber = 6 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
9595
string firmwareInformation = 7 [(gogoproto.moretags) = "validate:\"max=512\""];
9696
bool softwareVersionValid = 8;
97-
string otaUrl = 9 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
97+
string otaUrl = 9 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
9898
uint64 otaFileSize = 10 [(gogoproto.moretags) = "validate:\"required_with=OtaUrl\""];
9999
string otaChecksum = 11 [(gogoproto.moretags) = "validate:\"required_with=OtaUrl,max=64\""];
100100
int32 otaChecksumType = 12 [(gogoproto.moretags) = "validate:\"required_with=OtaUrl,gte=0,lte=65535\""];
101101
uint32 minApplicableSoftwareVersion = 13;
102102
uint32 maxApplicableSoftwareVersion = 14 [(gogoproto.moretags) = "validate:\"gtecsfield=MinApplicableSoftwareVersion\""];
103-
string releaseNotesUrl = 15 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
103+
string releaseNotesUrl = 15 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
104104
uint32 schemaVersion = 16 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
105105
}
106106
message MsgCreateModelVersionResponse {}
@@ -112,10 +112,10 @@ message MsgUpdateModelVersion {
112112
uint32 softwareVersion = 4;
113113

114114
bool softwareVersionValid = 5;
115-
string otaUrl = 6 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
115+
string otaUrl = 6 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
116116
uint32 minApplicableSoftwareVersion = 7;
117117
uint32 maxApplicableSoftwareVersion = 8 [(gogoproto.moretags) = "validate:\"omitempty,gtecsfield=MinApplicableSoftwareVersion\""];
118-
string releaseNotesUrl = 9 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
118+
string releaseNotesUrl = 9 [(gogoproto.moretags) = "validate:\"omitempty,url,startswith=https:,max=256\""];
119119
uint64 otaFileSize = 10;
120120
string otaChecksum = 11 [(gogoproto.moretags) = "validate:\"max=64\""];
121121
uint32 schemaVersion = 12 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];

0 commit comments

Comments
 (0)