Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
See if graphql schema validation passes
Rafał Pitoń798cb5537e88
diff --git a/saleor/graphql/shipping/schema.py b/saleor/graphql/shipping/schema.pyindex e7d51d8c4b..4d04639e5d 100644--- a/saleor/graphql/shipping/schema.py+++ b/saleor/graphql/shipping/schema.py@@ -45,6 +45,7 @@ class ShippingQueries(graphene.ObjectType):description="Slug of a channel for which the data should be returned."),description="List of the shop's shipping zones.",+ required=True,)@permission_required(ShippingPermissions.MANAGE_SHIPPING)diff --git a/saleor/graphql/shipping/types.py b/saleor/graphql/shipping/types.pyindex c4ef425ca0..ef33c3024b 100644--- a/saleor/graphql/shipping/types.py+++ b/saleor/graphql/shipping/types.py@@ -6,6 +6,7 @@ from graphene import relayfrom ...core.permissions import ShippingPermissionsfrom ...core.tracing import traced_resolverfrom ...core.weight import convert_weight_to_default_weight_unit+from ...product import models as product_modelsfrom ...shipping import modelsfrom ...shipping.interface import ShippingMethodDatafrom ..channel import ChannelQsContext@@ -257,8 +258,8 @@ class ShippingMethod(ChannelContextTypeWithMetadataForObjectType):):from ..product.types import ProductCountableConnection- if root.node.excluded_products is None:- qs = root.node.excluded_products.none()+ if not root.node.excluded_products:+ qs = product_models.Product.objects.none()else:qs = ChannelQsContext(qs=root.node.excluded_products.all(), channel_slug=None # type: ignore