common.patterns

Identifier

An identifier for a field, table, app, etc. It must start with a letter, and can contain only letters and numbers. It has a limited length.

type

string

examples

firstName

maxLength

40

minLength

2

pattern

^([a-zA-Z][a-zA-Z0-9]*)$

Nested identifier

Used to define fields or nested fields.

type

string

examples

candidate

candidate.firstName

minLength

2

pattern

^([a-zA-Z][a-zA-Z0-9.]*)$

Name

A name for an app, table, etc. It has a min length of 1 character.

type

string

examples

First Name

minLength

1

pattern

^.*$

Color

A color in hexadecimal value.

type

string

examples

#CCC

#FFFFFF

maxLength

7

minLength

4

pattern

^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$

Icon

An icon. Smartmate uses font awesome icons. See https://fontawesome.com/icons?d=gallery&s=solid&m=free for a list of icons you can use.

type

string

examples

question circle

wheelchair

pattern

^([a-z0-9- ]+)$