pyrtma.validators.String
- class String(len)[source]
Bases:
FieldValidator[_P,str],Generic[_P]Validator for strings (char arrays)
Methods
Validate multiple strings
Validate a string value
- Parameters:
len (int)
- validate_one(value)[source]
Validate a string value
- Parameters:
value (
str) – String value- Raises:
TypeError – Wrong type
ValueError – String exceeds max length