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

Include set of valid options in IDL-generated enum deserialization error message

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: IDL
    • Server Programmability
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When an enum value fails to deserialize due to an invalid value, it doesn't include in the error message what the set of possible values are. Doing so could be useful particularly when an enum value is accepted as an argument to a command, as these error messages are directly consumed by users.

      https://github.com/10gen/mongo/blob/5a46b791972f54e58b1e6d79eb77e3735c392db1/src/mongo/idl/idl_parser.cpp#L214-L226

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: