Skip to content

Commit

Permalink
Merge pull request #105 from rezakhademix/rezakhademix-fix-readme-typo
Browse files Browse the repository at this point in the history
update README.md
  • Loading branch information
rezakhademix authored Jun 13, 2024
2 parents 4c079ab + f43aaf9 commit c611e7e
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 c611e7e

Please sign in to comment.