refactor: Update StrInput to validate the given value

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-19 19:31:38 -03:00
commit 0fb4683262

View file

@ -56,6 +56,7 @@ class StrInput(BaseInputMixin, ListableInputMixin, DatabaseLoadMixin):
load_from_db: CoalesceBool = False
"""Defines if the field will allow the user to open a text editor. Default is False."""
@staticmethod
def _validate_value(v: Any, _info):
"""
Validates the given value and returns the processed value.