stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > MetafieldDefinitionInput > validations

AdminTypes.MetafieldDefinitionInput.validations property

A list of [validation options](https://shopify.dev/apps/metafields/definitions/validation) for the metafields that belong to the metafield definition. For example, for a metafield definition with the type date, you can set a minimum date validation so that each of the metafields that belong to it can only store dates after the specified minimum.

Signature:

validations?: InputMaybe<Array<MetafieldDefinitionValidationInput>>;