Skip to content

Commit

Permalink
🐛 [#4796] Default value on non-required serializer fields in ZGW API …
Browse files Browse the repository at this point in the history
…registration raises errors

The default value of ZGW zaaktype and case_type_identification raise errors when importing. The logic should be that one of the two is required, and creating a form using that logic works. But when you export and import a form with the ZGW API registration, that only has 'zaaktype', the import gives a "case_type_identification is required" error message
  • Loading branch information
robinmolen committed Oct 31, 2024
1 parent d79a178 commit 63d8e50
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/openforms/registrations/contrib/zgw_apis/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class ZaakOptionsSerializer(JsonSchemaSerializerMixin, serializers.Serializer):
"will automatically be selected based on the submission completion "
"timestamp. When you specify this field, you MUST also specify a catalogue."
),
default="",
)
product = serializers.CharField(
required=False,
Expand All @@ -85,7 +84,6 @@ class ZaakOptionsSerializer(JsonSchemaSerializerMixin, serializers.Serializer):
zaaktype = serializers.URLField(
required=False,
help_text=_("URL of the ZAAKTYPE in the Catalogi API"),
default="",
)
informatieobjecttype = serializers.URLField(
required=True,
Expand Down

0 comments on commit 63d8e50

Please sign in to comment.