You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Fields are always *required* in inputs, unless a *default* value is set.
@@ -20,6 +30,7 @@ All fields support the following arguments.
20
30
*`description` - A string describing the input. **Default: `None`**
21
31
*`default` - A value to be used if no input is provided for this field. May be a callable, such as `datetime.datetime.now`. **Default: `NO_DEFAULT`**
22
32
*`allow_null` - A boolean determining if `None` values are valid. **Default: `False`**
33
+
*`read_only` - A boolean determining if field should be considered as read-only, this is usually used in form rendering. **Default: `False`**
23
34
24
35
## Using fields directly
25
36
@@ -60,6 +71,7 @@ For example: `username = typesystem.String(max_length=100)`
60
71
*`min_length` - A minimum number of characters that valid input stings may contain. **Default: `None`**
61
72
*`pattern` - A regular expression that must match. This can be either a string or a compiled regular expression. E.g. `pattern="^[A-Za-z]+$"`**Default: `None`**
62
73
*`format` - A string used to indicate a semantic type, such as `"email"`, `"url"`, or `"color"`. **Default: `None`**
74
+
*`coerce_types` - A boolean determining if type casting should be done, E.g. changing `None` to `""` if `allow_blank`. **Default: `True`**
0 commit comments