From b4f838e070a3f922e055ca0087316fe3e8d30c33 Mon Sep 17 00:00:00 2001 From: James Chua Date: Sun, 3 Dec 2023 00:06:54 +0000 Subject: [PATCH] comment with issue --- tests/experimental/pydantic_first_class/schema/test_mutation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/experimental/pydantic_first_class/schema/test_mutation.py b/tests/experimental/pydantic_first_class/schema/test_mutation.py index ed6e60c11e..4e8eb1a053 100644 --- a/tests/experimental/pydantic_first_class/schema/test_mutation.py +++ b/tests/experimental/pydantic_first_class/schema/test_mutation.py @@ -174,6 +174,8 @@ def create_user(self, input: CreateUserInput) -> Union[UserType, UserError]: try: data = input except pydantic.ValidationError as e: + # issue: the error will never be thrown here because the validation + # happens in convert_argument args: Dict[str, List[str]] = {} for error in e.errors(): field = error["loc"][0] # currently doesn't support nested errors