Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rezakhademix authored Jun 13, 2024
1 parent 4c079ab commit f43aaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Each validation rule in GoValidator has it's own default message, e.g: `required
MaxString(req.Description, descriptionMaxLength, "description", msgDescriptionMaxLength).
MinInt(req.Status, minStatus, "status", msgMinCategoryStatusIsWrong).
MaxInt(req.Status, maxStatus, "status", msgMaxCategoryStatusIsWrong).
IsJSON(req.Meta, "meta", msgMetaMustBeJSON).
IsJSON(req.Meta, "meta", msgMetaMustBeJSON).
When(req.ParentID != nil, func() {
v.Exists(*req.ParentID, "categories", "id", "parent_id", msgCategoryParentIDNotExist) // checks if the value of req.ParentID exists in the "id" column of the "categories" table in the database
}).
Expand Down

0 comments on commit f43aaf9

Please sign in to comment.