Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20584

Document Validation should tell WHY a document failed validation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.1.8
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In 3.1.8, if I define a validator option, and try to write a document that fails validation, the error message will just say "Document failed validation." For cases where uses have non-trivial rules and documents, it would be much better to also list the fields that failed validation. (Ultimate user friendliness would be to also print the specific rule for that field that was broken, but I'd consider that very much a stretch goal.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              henrik.ingo Henrik Ingo (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: