Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Modify comment for PositiveDecimal to clarify it also accepts 0 (#11982)
Michał Miszczyszyn4a97140e2265
diff --git a/saleor/graphql/core/scalars.py b/saleor/graphql/core/scalars.pyindex 7a39ca804a..1369ad650a 100644--- a/saleor/graphql/core/scalars.py+++ b/saleor/graphql/core/scalars.py@@ -38,9 +38,9 @@ class Decimal(graphene.Float):class PositiveDecimal(Decimal):- """Positive Decimal scalar implementation.+ """Nonnegative Decimal scalar implementation.- Should be used in places where value must be positive.+ Should be used in places where value must be nonnegative (0 or greater)."""@staticmethoddiff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 7f3edcbf53..66f02cd1a3 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -10095,9 +10095,9 @@ type OrderLine implements Node & ObjectWithMetadata {}"""-Positive Decimal scalar implementation.+Nonnegative Decimal scalar implementation.-Should be used in places where value must be positive.+Should be used in places where value must be nonnegative (0 or greater)."""scalar PositiveDecimal