Home > @infiniteobjects/shopify-data-manager > AdminTypes > MetafieldDefinitionValidationInput
The name and value for a metafield definition validation.
For example, for a metafield definition of single_line_text_field type, you can set a validation with the name min and a value of 10. This validation will ensure that the value of the metafield is at least 10 characters.
Refer to the [list of supported validations](https://shopify.dev/api/admin/graphql/reference/common-objects/metafieldDefinitionTypes#examples-Fetch_all_metafield_definition_types).
Signature:
export interface MetafieldDefinitionValidationInput
| Property | Modifiers | Type | Description |
|---|---|---|---|
| name | Scalars[‘String’][‘input’] | The name for the metafield definition validation. | |
| value | Scalars[‘String’][‘input’] | The value for the metafield definition validation. |