# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hormo.studio/models/validations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
