Commit Graph

52 Commits

Author SHA1 Message Date
iffy-validio
1e555370e0
Make email-validator optional (#950) 2022-06-17 00:23:47 +08:00
Sunli
93763997af Rework connection types 2022-04-19 19:18:06 +08:00
Oscar Beaumont
4126906721
fix: export min_password_strength validator 2021-12-30 17:35:33 +08:00
Oscar Beaumont
831b0f8aa5
feat: added min_password_strength validator 2021-12-30 13:53:22 +08:00
Douman
67fb3e5539 Adjust fomrat for regex validator text 2021-12-21 14:36:13 +09:00
Douman
808da27648 Include regex within validator 2021-12-21 14:34:57 +09:00
Douman
1c719bfa6b Improve regex validator error message to be descriptive 2021-12-21 13:48:02 +09:00
Oscar Beaumont
7d4f78fe5d
replace custom email validation with fast_chemail 2021-12-19 20:50:10 +08:00
Sunli
723bb10912 Add url, regex and ip validators. 2021-11-17 11:12:52 +08:00
Sunli
d3078e73d0 Remove the ctx parameter of CustomValidator::check. #710 2021-11-17 08:46:13 +08:00
Sunli
2518fd17c6 Add some validators 2021-11-16 16:20:40 +08:00
Sunli
3a30fb7464 Update mod.rs 2021-11-15 20:58:57 +08:00
Sunli
e81bc7a97b Custom validator 2021-11-15 11:08:56 +08:00
Sunli
958b534b77 Rework validators 2 2021-11-15 09:12:13 +08:00
Sunli
8750d8d34b Rework validators 2021-11-14 21:09:14 +08:00
smihica
b4066d5f50 Changed docs comment 2021-10-14 00:49:47 +09:00
smihica
7d9de1c0f8 Supported CharsMinLength and CharsMaxLength to count chars 2021-10-14 00:43:14 +09:00
smihica
4c3e5905a7 Revert "Supported multibyte string in StringMinLength and StringMaxLength to count chars, not byte len."
This reverts commit b4116cdcaa.
2021-10-14 00:33:20 +09:00
smihica
b4116cdcaa Supported multibyte string in StringMinLength and StringMaxLength to count chars, not byte len. 2021-10-13 15:16:32 +09:00
Sunli
28d22dbe32 Add support for the list operator to the input value validator. #579 2021-07-20 15:16:34 +08:00
Rodgers
572b363798 Fix clippy error of map_err 2021-07-09 18:59:54 +07:00
Rodgers
55fcdf4c5d Keep map_err compatible 2021-07-09 08:20:30 +07:00
Rodgers
0417f4181a Update AND, OR, and MapErr logic. Update logic for object input 2021-07-08 23:43:12 +07:00
Rodgers
ab277494d7 Add is_valid_with_extensions 2021-07-08 21:37:38 +07:00
Lichuan Shang
0b7957dfea fix: typo then => than 2021-05-25 18:20:47 +08:00
Koxiaet
d34ac0ba08 Make imports consistent 2020-10-15 07:38:10 +01:00
Sunli
8c5d8f0324 Rework async-graphql-derive. #288 2020-09-29 16:06:10 +08:00
Sunli
322e296a24 Remove the GQL prefix of all macros. #208 2020-09-18 09:10:24 +08:00
Sunli
f530d01bf4 Remove all attribute macros that can be replaced by derive. 2020-09-13 11:41:15 +08:00
Sunli
c22ff21b96 InputValueValidator::is_valid function now returns the Result type. #221 2020-07-30 09:43:51 +08:00
Sunli
3395c00603 Replace Value::Int and Value::Float with Value::Number. 2020-07-29 09:42:52 +08:00
Sunli
27b622e8bc Add connection::query function 2020-06-02 17:43:13 +08:00
Kevin Schoonover
80ff792f1a Add input validator tests + fix clippy errors 2020-06-01 16:42:13 -05:00
Kevin Schoonover
e96ee8a8d6 Update input validator errors to be standardized 2020-06-01 16:42:06 -05:00
Kevin Schoonover
009ff2d2d6 Fix AND input validator operator 2020-06-01 16:42:06 -05:00
Sunli
467a6119bf Add async_graphql_warp::GQLResponseStream type 2020-06-01 10:40:07 +08:00
Sunli
9ca2ed6e2e Fix validators bug 2020-06-01 10:19:24 +08:00
Sunli
b1accc90e7 Compilation trouble with StringMinLength validator. #113 2020-05-27 09:42:58 +08:00
Sunli
a92a619345 Implement a type-safe default value definition for InputValue. #111 2020-05-26 20:43:53 +08:00
sunli
ad8ba68d44 Add Context::look_ahead 2020-05-14 22:13:28 +08:00
sunli
311859e12a 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
98864c6879 Add field guard 2020-05-02 07:57:34 +08:00
sunli
1bc97de889 fix #33 2020-04-27 12:57:52 +08:00
sunli
776719743c Add some docs 2020-04-19 10:28:52 +08:00
sunli
7761277f42 Add InputValueValidatorExt trait 2020-04-18 10:25:39 +08:00
sunli
2c664bb7d7 Add some docs
v1.9.2
2020-04-17 11:06:33 +08:00
sunli
20c132406c Add some docs 2020-04-16 17:51:10 +08:00
sunli
631de52400 The subscription field now returns a stream 2020-04-06 13:49:39 +08:00
sunli
9b538cd85b Add validation for the InputObject field 2020-03-30 10:45:41 +08:00
sunli
934038150e v1.4.2 2020-03-22 09:34:32 +08:00