Add scalar field type to jsonmodels

This commit is contained in:
allegroai 2023-07-26 18:39:06 +03:00
parent 6df69afb25
commit ed86750b24

View File

@ -61,6 +61,13 @@ class ListField(fields.ListField):
item.validate()
class ScalarField(fields.BaseField):
"""String field."""
types = (str, int, float, bool)
class DictField(fields.BaseField):
types = (dict,)