Commit Graph

11 Commits

Author SHA1 Message Date
Sunli
632529ee3e Add support for oneof field on object. #766 2022-03-04 21:24:17 +08:00
Sunli
40a7192919 Fix the custom validator cannot work on Option<Vec<T>>. 2021-11-30 13:46:23 +08:00
Sunli
7034734cb4 Fix the validator cannot work on Option<Vec<T>>. 2021-11-30 12:03:55 +08:00
Sunli
b7ba6844af #[grapql(validator(list))] no longer applies to max_items and min_items. 2021-11-30 09:40:02 +08:00
Sunli
94816b84dc Allowed use validators on wrapper types, for example: Option<T>, MaybeUnefined<T>.
Remove `OutputJson` because `Json` can replace it.
2021-11-18 15:43:12 +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
a7c82d303a Rework validators 3 2021-11-15 18:37:33 +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