## utils.validate_fields_in_model()

<span id="hexkit.utils.validate_fields_in_model"></span>


Checks that all provided fields are present in the dto_model.


Usage

``` python
utils.validate_fields_in_model(
    *,
    model,
    fields,
)
```


Raises IndexFieldsInvalidError otherwise.

Fields which start with \$ are excluded from consideration. For fields with dot notation, only the top-level field will be validated.
