Validation options

Metafield definitions can have validation options. Validation options enable you to apply additional constraints to the data that a metafield can store, such as a minimum or maximum value, or a regular expression. The type of the metafield definition determines which validation options are available.

A validation option has two parts:

  • Name: The name of validation option. Refer to the list of available validation options.
  • Value: The value of the validation option. The value depends on the type of validation option.