From ec54837d2ca22e29764ab0a888cd87806fd63094 Mon Sep 17 00:00:00 2001 From: vasileios Date: Wed, 11 Dec 2024 13:44:42 +0100 Subject: [PATCH] [#4899] Fixed optional serializer fields in ZaakOptionsSerializer --- src/openforms/registrations/contrib/zgw_apis/options.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/openforms/registrations/contrib/zgw_apis/options.py b/src/openforms/registrations/contrib/zgw_apis/options.py index 9562ac2560..9bca9766e0 100644 --- a/src/openforms/registrations/contrib/zgw_apis/options.py +++ b/src/openforms/registrations/contrib/zgw_apis/options.py @@ -86,24 +86,27 @@ class ZaakOptionsSerializer(JsonSchemaSerializerMixin, serializers.Serializer): default="", ) product_url = serializers.URLField( - required=False, label=_("Product url"), help_text=_( "The product url will be retrieved from the specified case type " "and the version that is active at that moment. " ), + required=False, + allow_blank=True, default="", ) # DeprecationWarning - deprecated, will be removed in OF 3.0 or 4.0 zaaktype = serializers.URLField( - required=False, help_text=_("URL of the ZAAKTYPE in the Catalogi API"), + required=False, + allow_blank=True, default="", ) informatieobjecttype = serializers.URLField( - required=False, help_text=_("URL of the INFORMATIEOBJECTTYPE in the Catalogi API"), + required=False, + allow_blank=True, default="", ) organisatie_rsin = serializers.CharField(