-
Notifications
You must be signed in to change notification settings - Fork 86
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
fix: [#533] there is a bug when validating nested data #751
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@@ -129,19 +129,6 @@ func (v *Validator) castValue() mapstructure.DecodeHookFunc { | |||
default: | |||
castedValue, err = cast.ToSliceE(from.Interface()) | |||
} | |||
case reflect.Map: |
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.
The map
structure is not fixed, so we can cast the value to StringMapString
, StringMapBool
, etc. And there is a BUG as well, to.Type().Key().Kind()
checks the map key, but in the case
logic, we are using ToStringMapBoolE
, it should be ToBoolMap***E
.
I think we can remove the logic directly.
@@ -28,22 +28,19 @@ func NewSqlserver(database, username, password string) *Sqlserver { | |||
username: username, | |||
password: password, | |||
image: &testing.Image{ | |||
Repository: "mcmoe/mssqldocker", | |||
Repository: "mcr.microsoft.com/mssql/server", |
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.
The mssql image is unavailable, the CI failed, so modify it in this PR.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v1.14.x #751 +/- ##
==========================================
Coverage ? 69.42%
==========================================
Files ? 176
Lines ? 13246
Branches ? 0
==========================================
Hits ? 9196
Misses ? 3476
Partials ? 574 β View full report in Codecov by Sentry. |
π Description
Closes goravel/goravel#533
@coderabbitai summary
β Checks