Skip to content

Commit

Permalink
Changed Project Name
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-georgiadis committed Dec 16, 2020
1 parent c13f277 commit 5e29ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# valify
# valimo

A validation library inspired by [FluentValidation](https://github.com/FluentValidation/FluentValidation) of C# and [fluentvalidation-ts](https://github.com/AlexJPotter/fluentvalidation-ts) of [@AlexJPotter](https://github.com/AlexJPotter)

Expand All @@ -25,8 +25,7 @@ class PersonValidator extends AbstractValidator<Person> {
this.ruleFor(x => x.name)
.isNotEmpty() // Checks if the name is not empty
.withMessage("NAMES! NAMES! GIVE ME NAMES") // A (little too dramatic) custom message
.hasMinLengthOf(4)
.withMessage("Custom messages for every rule!");
.hasMinLengthOf(4); // Or you can opt out and use the default ones instead
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "valify",
"name": "valimo",
"version": "0.0.1",
"description": "A fluent validation library, inspired by FluentValidation of .Net",
"main": "dist/index.js",
Expand Down

0 comments on commit 5e29ef4

Please sign in to comment.