I believe making a field required will cause a `ValidationError` to be raised if it is empty. Additionally, I think you can specify a regex pattern using the `pattern` key directly inside the schema.

```
{
    'properties': {
        'filename': {
            'type': 'string',
            'pattern': '^\w+$',
        },
    },
    'required': ['filename'],
}
```