Required validator In V5

  public schema = schema.create({
    email: schema.string({ trim: true }, [
      rules.email(),
    ]),
    password: schema.string({ trim: true }, [
      rules.minLength(6),
      rules.maxLength(50)
    ]),
    remember: schema.boolean()
  })

Remember is not required but received

Remember required validation failed

1 Like