> For the complete documentation index, see [llms.txt](https://docs.hormo.studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hormo.studio/models/validations.md).

# Validations

Hormo Studio managing validations of your models so easily by set options as validations. Then your model props will be validate in restful API endpoints and also in your admin dashboard create or edit forms. When you click on validation configure button you can reach to the below popover.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LLJWqvJtjL4p5b0wMai%2F-LOlu5j5n6GaNkUQXBGZ%2F-LOluniI-qcCChhMKKLg%2FScreen%20Shot%202018-10-14%20at%201.01.54%20PM.png?alt=media\&token=7771ee7d-f32d-4614-b9b7-03b37128644c)

The following table summarizes Hormo Studio validations for each model.

{% hint style="info" %}
We do not have required option for validation part because **initial** prop works like required validation which described on [properties](/models/properties.md)
{% endhint %}

| Key     | Type    | Descripion                                                   |
| ------- | ------- | ------------------------------------------------------------ |
| initial | Boolean | Whether the property is required.                            |
| pattern | String  | Regular expression pattern that a string should match        |
| max     | Number  | Maximum length for string types.                             |
| min     | Number  | Minimum length for string types.                             |
| length  | Number  | Maximum size of a specific type, for example for CHAR types. |

{% content-ref url="/pages/-Lz7-hWZqPdEeG2XAgE9" %}
[Relations](/models/relations.md)
{% endcontent-ref %}
