Commit Graph

52 Commits

Author SHA1 Message Date
iffy-validio
9862a473b5 Make email-validator optional (#950) 2022-06-17 00:23:47 +08:00
Sunli
88ba75ec70 Rework connection types 2022-04-19 19:18:06 +08:00
Oscar Beaumont
c06179950f fix: export min_password_strength validator 2021-12-30 17:35:33 +08:00
Oscar Beaumont
df8f4f2791 feat: added min_password_strength validator 2021-12-30 13:53:22 +08:00
Douman
8d592b48ae Adjust fomrat for regex validator text 2021-12-21 14:36:13 +09:00
Douman
2d8b22ce65 Include regex within validator 2021-12-21 14:34:57 +09:00
Douman
988dcb7d21 Improve regex validator error message to be descriptive 2021-12-21 13:48:02 +09:00
Oscar Beaumont
6e0f803be5 replace custom email validation with fast_chemail 2021-12-19 20:50:10 +08:00
Sunli
502bfb8670 Add url, regex and ip validators. 2021-11-17 11:12:52 +08:00
Sunli
af25734697 Remove the ctx parameter of CustomValidator::check. #710 2021-11-17 08:46:13 +08:00
Sunli
5a1f0ed865 Add some validators 2021-11-16 16:20:40 +08:00
Sunli
28f027a8bc Update mod.rs 2021-11-15 20:58:57 +08:00
Sunli
613bbc5b91 Custom validator 2021-11-15 11:08:56 +08:00
Sunli
dd55421ede Rework validators 2 2021-11-15 09:12:13 +08:00
Sunli
eb022a0cca Rework validators 2021-11-14 21:09:14 +08:00
smihica
4bf947244d Changed docs comment 2021-10-14 00:49:47 +09:00
smihica
5fd0561a3a Supported CharsMinLength and CharsMaxLength to count chars 2021-10-14 00:43:14 +09:00
smihica
cf74a6c5d2 Revert "Supported multibyte string in StringMinLength and StringMaxLength to count chars, not byte len."
This reverts commit 431c15195e.
2021-10-14 00:33:20 +09:00
smihica
431c15195e Supported multibyte string in StringMinLength and StringMaxLength to count chars, not byte len. 2021-10-13 15:16:32 +09:00
Sunli
230eb847d8 Add support for the list operator to the input value validator. #579 2021-07-20 15:16:34 +08:00
Rodgers
0c46512900 Fix clippy error of map_err 2021-07-09 18:59:54 +07:00
Rodgers
d83cce9d3b Keep map_err compatible 2021-07-09 08:20:30 +07:00
Rodgers
53c4945fc4 Update AND, OR, and MapErr logic. Update logic for object input 2021-07-08 23:43:12 +07:00
Rodgers
aa1d4194b5 Add is_valid_with_extensions 2021-07-08 21:37:38 +07:00
Lichuan Shang
406de7c798 fix: typo then => than 2021-05-25 18:20:47 +08:00
Koxiaet
93c886af07 Make imports consistent 2020-10-15 07:38:10 +01:00
Sunli
e60864a18d Rework async-graphql-derive. #288 2020-09-29 16:06:10 +08:00
Sunli
e645e9d999 Remove the GQL prefix of all macros. #208 2020-09-18 09:10:24 +08:00
Sunli
24b80d52d3 Remove all attribute macros that can be replaced by derive. 2020-09-13 11:41:15 +08:00
Sunli
503339f504 InputValueValidator::is_valid function now returns the Result type. #221 2020-07-30 09:43:51 +08:00
Sunli
2dc61013be Replace Value::Int and Value::Float with Value::Number. 2020-07-29 09:42:52 +08:00
Sunli
2452a44484 Add connection::query function 2020-06-02 17:43:13 +08:00
Kevin Schoonover
9b114cf616 Add input validator tests + fix clippy errors 2020-06-01 16:42:13 -05:00
Kevin Schoonover
7c35bf1186 Update input validator errors to be standardized 2020-06-01 16:42:06 -05:00
Kevin Schoonover
eeb9d6219d Fix AND input validator operator 2020-06-01 16:42:06 -05:00
Sunli
89f9a7cbbf Add async_graphql_warp::GQLResponseStream type 2020-06-01 10:40:07 +08:00
Sunli
76035443ac Fix validators bug 2020-06-01 10:19:24 +08:00
Sunli
451f0c27f0 Compilation trouble with StringMinLength validator. #113 2020-05-27 09:42:58 +08:00
Sunli
a9d3ac9cf8 Implement a type-safe default value definition for InputValue. #111 2020-05-26 20:43:53 +08:00
sunli
534837e1b9 Add Context::look_ahead 2020-05-14 22:13:28 +08:00
sunli
dc7c8d5280 Merge branch 'parser'
Implement a new GraphQL query parser and remove the dependency on graphql-parser.
2020-05-09 17:55:04 +08:00
sunli
331e65a72b Add field guard 2020-05-02 07:57:34 +08:00
sunli
4659da9c30 fix #33 2020-04-27 12:57:52 +08:00
sunli
18b5ab1c49 Add some docs 2020-04-19 10:28:52 +08:00
sunli
ad9cd7073c Add InputValueValidatorExt trait 2020-04-18 10:25:39 +08:00
sunli
4cf83e333b Add some docs
v1.9.2
2020-04-17 11:06:33 +08:00
sunli
e1115b0a31 Add some docs 2020-04-16 17:51:10 +08:00
sunli
b88ac80084 The subscription field now returns a stream 2020-04-06 13:49:39 +08:00
sunli
3372512c3d Add validation for the InputObject field 2020-03-30 10:45:41 +08:00
sunli
788a3b558b v1.4.2 2020-03-22 09:34:32 +08:00