Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix returning values in JSONString scalar (#10124)
sanket-jethava248d2b604b16
diff --git a/saleor/graphql/core/fields.py b/saleor/graphql/core/fields.pyindex b209820a34..6e22b8472f 100644--- a/saleor/graphql/core/fields.py+++ b/saleor/graphql/core/fields.py@@ -107,6 +107,6 @@ class JSONString(graphene.JSONString):@staticmethoddef parse_literal(node):try:- graphene.JSONString.parse_literal(node)+ return graphene.JSONString.parse_literal(node)except JSONDecodeError:raise GraphQLError(f"{str(node.value)[:20]}... is not a valid JSONString")