> ## Documentation Index
> Fetch the complete documentation index at: https://typewall.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Processing

> Refinements and transforms after built-in validation

Refinements run after built-in validation. Transforms run only after all validation and refinements succeed.

```python theme={null}
from typewall import w

Name = w.str().refine(lambda value: bool(value.strip()), "Name is empty").transform(str.strip)
assert Name.parse("  Ada  ") == "Ada"
```

> [!WARNING]
>
> Arbitrary callbacks cannot be represented faithfully in JSON Schema unless explicit export metadata is supplied.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.