Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix that quantity and variant id should be required for CheckoutLineInput
Unknown4877241df67b
diff --git a/saleor/graphql/checkout/mutations.py b/saleor/graphql/checkout/mutations.pyindex 07afb62190..31b9565109 100644--- a/saleor/graphql/checkout/mutations.py+++ b/saleor/graphql/checkout/mutations.py@@ -79,8 +79,9 @@ def check_lines_quantity(variants, quantities):class CheckoutLineInput(graphene.InputObjectType):quantity = graphene.Int(- description='The number of items purchased.')- variant_id = graphene.ID(description='ID of the ProductVariant.')+ required=True, description='The number of items purchased.')+ variant_id = graphene.ID(+ required=True, description='ID of the ProductVariant.')class CheckoutCreateInput(graphene.InputObjectType):