_validators
val_absolute_path(attribute, accept_none=False)
¶
Check that a string attribute is an absolute path
Source code in fractal_server/app/schemas/_validators.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
valint(attribute, min_val=1)
¶
Check that an integer attribute (e.g. if it is meant to be the ID of a database entry) is greater or equal to min_val.
Source code in fractal_server/app/schemas/_validators.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
valstr(attribute, accept_none=False)
¶
Check that a string attribute is not an empty string, and remove the leading and trailing whitespace characters.
If accept_none
, the validator also accepts None
.
Source code in fractal_server/app/schemas/_validators.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|