Maslosoft Mangan API
Sanitizer annotation to enforce particular data type.
There are numerous built-in sanitizers which can be used, as well as any custom sanitizer can be build. First annotation value must be sanitizer class literal, class name as string or short string literal based for built-in sanitizers. Some sanitizers can also have some parameters. To get list of parameters, read particular sanitizer documentation.
Note: There can be only one sanitizer per field.
Example usage: ```
Direct known subclasses
For built-in sanitizers, also short string notation can be used, without importing class:
To skip variable sanitization either make default value `null` or define `None` sanitizer:
Sanitizer('none'): Example of using sanitizer with parameters:
nullable = true) ```
Author: Piotr Maselkowski
Located at Annotations/SanitizerAnnotation.php