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

Model fields fixes #588

Merged
merged 31 commits into from
Aug 6, 2024
Merged

Model fields fixes #588

merged 31 commits into from
Aug 6, 2024

Conversation

DenisRybas
Copy link
Collaborator

@DenisRybas DenisRybas commented Aug 1, 2024

  • fixed validations for EnhancedSetupFlowTCUrl, EnhancedSetupFlowTCRevision, EnhancedSetupFlowTCDigest, MaintenanceURL fields

Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
@@ -42,11 +42,11 @@ message MsgCreateModel {
string lsfUrl = 17 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""];
uint32 schemaVersion = 18 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
int32 enhancedSetupFlowOptions = 19 [(gogoproto.moretags) = "validate:\"omitempty,gte=0,lte=65535\""];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to fix startsnotwith=http: for other fields?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Fixed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to revert it, as actually it says "All HTTP based URLs SHALL use the https scheme", not that it shall be HTTPS only.

x/model/keeper/msg_server_model.go Show resolved Hide resolved
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
Signed-off-by: DenisRybas <denis.rybas@dsr-corporation.com>
@ashcherbakov ashcherbakov merged commit 912eb71 into master Aug 6, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants