Preview

CartFieldValidation is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

CartFieldValidation

Represents the validation information to be used for field

This page contains

    Fields

    required: Boolean!

    Represents if the field is required or optional

    readOnly: Boolean!

    Represents if the field is readOnly or editable

    minLength: Int

    Represents the minimum length of the field value

    maxLength: Int

    Represents the maximum length of the field value

    expression: String

    Represents the regular expression to be used for field validation

    validationType: CartFieldValidationType PREVIEW

    Additional validation type for the the field, primarily used for purchase and subscription custom attributes fields

    Parent objects of CartFieldValidation

    CartField PREVIEW

    Represents the Cart form field