mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
Add scalar field type to jsonmodels
This commit is contained in:
parent
6df69afb25
commit
ed86750b24
@ -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,)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user