then: number()
        .required()
        .min(1, translations.mustSpecifyPositiveMaxAttachment)
        .max(
          defaultMaxAttachments,