We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For some field, like Status in RulesType, it is marked as case insensitive in doc.
Status
RulesType
However, when check validation in code, only lower case values will be marked as valid. Here is the code.
// Validate validates the Rules. func (v *RulesType) Validate() error { ... if v.Status != nil { statusValidValues := []string{"enabled", "disabled"} statusParameterValue := fmt.Sprint(*v.Status) statusIsValid := false for _, value := range statusValidValues { if value == statusParameterValue { statusIsValid = true } } if !statusIsValid { return errors.ParameterValueNotAllowedError{ ParameterName: "Status", ParameterValue: statusParameterValue, AllowedValues: statusValidValues, } } } ... }
See https://github.com/qingstor/qingstor-sdk-go/blob/master/service/bucket.go#L814 for more details.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For some field, like
Status
inRulesType
, it is marked as case insensitive in doc.However, when check validation in code, only lower case values will be marked as valid. Here is the code.
See https://github.com/qingstor/qingstor-sdk-go/blob/master/service/bucket.go#L814 for more details.
The text was updated successfully, but these errors were encountered: