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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: IDL
    • Server Programmability
    • None
    • 3
    • None
    • 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
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: