Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix `ShippingMethodTranslation.name` API field to allow return nullable values (#16651)

Krzysztof Waliczeka06aafd1ac74
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 69591d5c69..28d4a1cdb2 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -4247,7 +4247,7 @@ type ShippingMethodTranslation implements Node @doc(category: "Shipping") {
language: LanguageDisplay!
"""Translated shipping method name."""
- name: String!
+ name: String
"""
Translated description of the shipping method.
diff --git a/saleor/graphql/translations/types.py b/saleor/graphql/translations/types.py
index da029069c4..9fe15bb8a5 100644
--- a/saleor/graphql/translations/types.py
+++ b/saleor/graphql/translations/types.py
@@ -939,9 +939,7 @@ class ShippingMethodTranslation(
id = graphene.GlobalID(
required=True, description="The ID of the shipping method translation."
)
- name = graphene.String(
- required=True, description="Translated shipping method name."
- )
+ name = graphene.String(description="Translated shipping method name.")
description = JSONString(
description="Translated description of the shipping method." + RICH_CONTENT
)