Skip to content
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

build(deps): bump akka-actor_2.12 from 2.5.9 to 2.5.16 in /concurrency/akka/akka-spring-boot #8

Closed
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
2166c9b
(1)修正参数的设置顺序
wx-chevalier Jul 9, 2017
9686054
添加实体类自动生成功能
wx-chevalier Jul 11, 2017
1640b76
Update README.md
wx-chevalier Jul 11, 2017
29ac5bc
Update README.md
wx-chevalier Jul 11, 2017
faa4ac7
(1)变更 lib 路径以方便进行编译
wx-chevalier Jul 11, 2017
0aac8ed
Merge branch 'master' of https://github.com/wxyyxc1992/swagger-decorator
wx-chevalier Jul 11, 2017
d1b9934
(1)将 declarative-validator 独立出来,成为单独的项目
wx-chevalier Jul 16, 2017
9073bed
(1)初始化创建 observer-x 库
wx-chevalier Jul 17, 2017
1a1dc69
修正 README.md
wx-chevalier Jul 18, 2017
4770a9e
(1)重命名本项目
wx-chevalier Jul 18, 2017
305ae9a
Update README.md
wx-chevalier Jul 18, 2017
cc0a113
Update README.en.md
wx-chevalier Jul 18, 2017
9189b65
(1)使用 Rollup 作为 observer-x 打包工具
wx-chevalier Jul 18, 2017
52fe388
Merge branch 'master' of https://github.com/wxyyxc1992/Modern-JavaScr…
wx-chevalier Jul 18, 2017
1ecaeb5
Update README.md
wx-chevalier Jul 19, 2017
e1f1bc4
Update README.md
wx-chevalier Jul 20, 2017
85e0f23
合并 Swagger-Decorator 的 PR
wx-chevalier Jul 23, 2017
3eda318
发布并且修正 observer-x 示例
wx-chevalier Jul 23, 2017
f1a8b41
refactor(src): 重命名 swagger-decorator 为 decorator-x
wx-chevalier Jul 25, 2017
dc41676
fet(demo): 为测试用例添加 GraphQL 支持
wx-chevalier Jul 25, 2017
d015ac2
refactor(fluent-fetcher): 将 fluent-fetcher 移动到现代 JavaScript 瑞士军刀中
wx-chevalier Jul 25, 2017
239e82b
refactor(fluent-fetcher): 升级依赖版本
wx-chevalier Aug 8, 2017
5e5924d
refactor(decorator-x):重构 Flow 支持
wx-chevalier Aug 8, 2017
4909587
refactor(observer-x):优化 Flow 支持
wx-chevalier Aug 8, 2017
18b65f9
refactor(*): 重构部分类型支持
wx-chevalier Aug 18, 2017
4b640cc
feature(*): Fix
wx-chevalier Sep 3, 2017
cf50ccf
重新命名文件内容
wx-chevalier Dec 17, 2017
7267bd5
Create Usage.md
wx-chevalier Jan 8, 2018
de41963
Update README.md
wx-chevalier Jan 8, 2018
07b9dc3
移入项目
wx-chevalier Feb 3, 2018
fbd3e91
feat: 更新 README
wx-chevalier Apr 28, 2018
86e2e1d
feat: update
wx-chevalier Apr 28, 2018
90c8dda
feat: update
wx-chevalier Apr 28, 2018
a75f8a1
feat: update
wx-chevalier May 14, 2018
a8cc844
refactor: 重新定位项目
wx-chevalier Nov 5, 2018
f4de99e
Create README.md
Nov 27, 2018
64dc741
feat: add glo
wx-chevalier Dec 26, 2018
c5844ec
Create README.md
Apr 23, 2019
3f6c2b4
Update README.md
Apr 23, 2019
fcdc8c5
build(deps): bump stringstream
dependabot[bot] Jun 21, 2019
4aae569
build(deps): bump stringstream from 0.0.5 to 0.0.6 in /js/x-fetch
dependabot[bot] Jun 21, 2019
d8dd492
Update README.md
Jun 24, 2019
f3c5ffd
Merge pull request #3 from wx-chevalier/dependabot/npm_and_yarn/js/x-…
Jun 24, 2019
1521ce7
Merge pull request #2 from wx-chevalier/dependabot/npm_and_yarn/js/ty…
Jun 24, 2019
1a22499
chore: housekeeping
wx-chevalier Aug 10, 2019
9bc5df0
chore: housekeeping
wx-chevalier Aug 10, 2019
14ca118
chore: housekeeping
wx-chevalier Aug 10, 2019
dd41345
chore: housekeeping
wx-chevalier Aug 15, 2019
fcb2818
Update README.md
Aug 19, 2019
ac498e4
chore: housekeeping
wx-chevalier Aug 29, 2019
6cd399f
chore: housekeeping
wx-chevalier Oct 29, 2019
35be94d
chore: housekeeping
wx-chevalier Dec 16, 2019
58f3bad
chore: housekeeping
wx-chevalier Dec 17, 2019
e81408f
chore: housekeeping
wx-chevalier Dec 19, 2019
b07f6a0
chore: housekeeping
wx-chevalier Feb 4, 2020
ae4a53d
build(deps): bump akka-actor_2.12 in /concurrency/akka/akka-spring-boot
dependabot[bot] Feb 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Create Usage.md
  • Loading branch information
wx-chevalier authored Jan 8, 2018
commit 7267bd567b9c4b6de065ca36275ea69f3a2ffb99
147 changes: 147 additions & 0 deletions declarative-validator/docs/Usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# Rules

Validation rules do not have an implicit 'required'. If a field is undefined or an empty string, it will pass validation. If you want a validation to fail for undefined or '', use the required rule.

accepted

The field under validation must be yes, on, 1 or true. This is useful for validating "Terms of Service" acceptance.

after:date

The field under validation must be after the given date.

after_or_equal:date

The field unter validation must be after or equal to the given field

alpha

The field under validation must be entirely alphabetic characters.

alpha_dash

The field under validation may have alpha-numeric characters, as well as dashes and underscores.

alpha_num

The field under validation must be entirely alpha-numeric characters.

array

The field under validation must be an array.

before:date

The field under validation must be before the given date.

before_or_equal:date

The field under validation must be before or equal to the given date.

between:min,max

The field under validation must have a size between the given min and max. Strings, numerics, and files are evaluated in the same fashion as the size rule.

boolean

The field under validation must be a boolean value of the form true, false, 0, 1, 'true', 'false', '0', '1',

confirmed

The field under validation must have a matching field of foo_confirmation. For example, if the field under validation is password, a matching password_confirmation field must be present in the input.

date

The field under validation must be a valid date format which is acceptable by Javascript's Date object.

digits:value

The field under validation must be numeric and must have an exact length of value.

different:attribute

The given field must be different than the field under validation.

email

The field under validation must be formatted as an e-mail address.

in:foo,bar,...

The field under validation must be included in the given list of values. The field can be an array or string.

integer

The field under validation must have an integer value.

max:value

Validate that an attribute is no greater than a given size

Note: Maximum checks are inclusive.

min:value

Validate that an attribute is at least a given size.

Note: Minimum checks are inclusive.

not_in:foo,bar,...

The field under validation must not be included in the given list of values.

numeric

Validate that an attribute is numeric. The string representation of a number will pass.

The field under validation must be present and not empty only if any of the other specified fields are present.

required_with_all:foo,bar,...

The field under validation must be present and not empty only if all of the other specified fields are present.

required_without:foo,bar,...

The field under validation must be present and not empty only when any of the other specified fields are not present.

required_without_all:foo,bar,...

The field under validation must be present and not empty only when all of the other specified fields are not present.

same:attribute

The given field must match the field under validation.

size:value

The field under validation must have a size matching the given value. For string data, value corresponds to the number of characters. For numeric data, value corresponds to a given integer value.

string

The field under validation must be a string.

url

Validate that an attribute has a valid URL format

regex:pattern

The field under validation must match the given regular expression.

```javascript
let validation = new Validator(
{
name: 'Doe',
salary: '10,000.00',
yearOfBirth: '1980'
},
{
name: 'required|size:3',
salary: ['required', 'regex:/^(?!0\\.00)\\d{1,3}(,\\d{3})*(\\.\\d\\d)?$/'],
yearOfBirth: ['required', 'regex:/^(19|20)[\\d]{2,2}$/']
}
);

validation.fails(); // false
validation.passes(); // true
```