-
Notifications
You must be signed in to change notification settings - Fork 49
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
chore: improve the validations of messages #484
chore: improve the validations of messages #484
Conversation
bb67d03
to
8de6dd9
Compare
f9cd8a4
to
5ea3d25
Compare
6df9702
to
8ddb3b4
Compare
//} | ||
//if !containsCreateObject && s.LimitSize != nil { | ||
// return ErrInvalidStatement.Wrap("The LimitSize option can only be used with CreateObject actions at the bucket level. .") | ||
//} | ||
for _, r := range s.Resources { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we move the GRN check to ValidateRuntime
? I think yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need to move the GRN check to ValidateRuntime?
It does not change between these upgrades. Keep it in ValidateBasic
will be useful for CLI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it may be adjusted in the future.
49a2303
to
92bcef0
Compare
Description
Improve the basic validation of messages.
Rationale
Chore
Example
NA
Changes
Notable changes: