Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2042

Returning errInfo - Schema Validation

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Unknown
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      Version 5 of mongodb resolved the issue SERVER-20547. Now the MongoDb server is able to return unvalidated fields in a schema. The information comes via the “errInfo” variable, but mongo-go-driver only returns the “errmsg”.

      I think “errInfo” can be returned by modifying the ExtractErrorFromServerResponse function. Am I right? Any tips on how best to do this and submit as a pull request?

      Thank you.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matt.dale Matt Dale
              Reporter:
              vini.gracindo@gmail.com Vinnicyus Gracindo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: