Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2098

Constraint violation message is not clear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • None
    • None
    • NEW
    • NEW

      Example:
      1. Create an employee, set its short ID to "xxxx" to violate short ID length constraint.
      2. Save the row.

      Error message:

      The Employee object you submitted was invalid. The following constraints were violated: size must be between 1 and 3

      The field breaking the constraint is missing.

      Also, the format of the message could be improved to better accommodate multiple constraint violation messages:

      The Employee object you submitted was invalid. The following constraints were violated: size must be between 1 and 3,Name should not contain any leading or trailing whitespaces

            cchianel Christopher Chianelli
            jlocker Jiří Locker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: