From 7a1587a94719f6ca9cf20d8e5993f4ad92329c67 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Tue, 12 Mar 2024 16:01:04 +0100 Subject: [PATCH] :ok_hand: [#3977] PR feedback * Added missing docstring --- src/openforms/formio/service.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openforms/formio/service.py b/src/openforms/formio/service.py index cdbccdaf94..e03733cf4f 100644 --- a/src/openforms/formio/service.py +++ b/src/openforms/formio/service.py @@ -112,4 +112,10 @@ def get_dynamic_configuration( def build_serializer( components: list[Component], _register: ComponentRegistry | None = None, **kwargs ): + """ + Translate a sequence of Formio.js component definitions into a serializer. + + This recursively builds up the serializer fields for each (nested) component and + puts them into a serializer instance ready for validation. + """ return _build_serializer(components, register=_register or register, **kwargs)