Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Check for camelCase for every error in mutation
akjanik31cbafa5dd1b
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.pyindex a5f91cc356..06710f4504 100644--- a/saleor/graphql/core/mutations.py+++ b/saleor/graphql/core/mutations.py@@ -63,6 +63,7 @@ class BaseMutation(graphene.Mutation):As a result of this method, the `errors` argument is updated with anError object to be returned in mutation result."""+ field = snake_to_camel_case(field)errors.append(Error(field=field, message=message))@classmethod@@ -200,7 +201,6 @@ class ModelMutation(BaseMutation):if field in cls._meta.exclude:continuefor message in message_dict[field]:- field = snake_to_camel_case(field)cls.add_error(errors, field, message)return errors