Commit Graph

13 Commits

Author SHA1 Message Date
Sunli 5ad9f497d8 Remove code and tests related oneof fields. #915 2022-05-07 16:16:01 +08:00
Sunli 88ba75ec70 Rework connection types 2022-04-19 19:18:06 +08:00
Sunli a4b840a984 Add support for oneof field on object. #766 2022-03-04 21:24:17 +08:00
Sunli 86f10c5397 Fix the custom validator cannot work on `Option<Vec<T>>`. 2021-11-30 13:46:23 +08:00
Sunli c0a257dc7d Fix the validator cannot work on `Option<Vec<T>>`. 2021-11-30 12:03:55 +08:00
Sunli 4a265ed29d `#[grapql(validator(list))]` no longer applies to `max_items` and `min_items`. 2021-11-30 09:40:02 +08:00
Sunli 559bbedd3e 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 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 71cbb9d20c Rework validators 3 2021-11-15 18:37:33 +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