hormo studio
  • Getting Started
  • Introduction
    • How it works ?
    • Create Project
    • Playground
  • Models
    • Create model
    • Properties
    • Field types
    • UI Types
    • Options
    • Validations
    • Relations
    • Built-in User model
  • Database
    • Create Database
    • Connect to model
  • Restful API
    • Playground
    • Filters
    • Access Token
  • Dashboard
    • Usage
    • Manage users
    • Change Authentication
  • Monitoring
    • List of reports
    • Watch requests
  • Documentation
    • Export generated docs
  • Deployment
  • Licence
Powered by GitBook
On this page

Was this helpful?

  1. Models

Validations

PreviousOptionsNextRelations

Last updated 2 years ago

Was this helpful?

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.

The following table summarizes Hormo Studio validations for each model.

We do not have required option for validation part because initial prop works like required validation which described on

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.

Relations
properties