Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3429

api: to_json should strip off the ValueType type

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: schema.rs
    • None

      I think there should be a serde_json tag I can add to remove the current behaviour of value vector:

      "values": [{"Str":"+17438917865"},{"Str":"+17518179206"},{"Str":"+14108799192"}]
      

      should really just be:

      "values": ["+17438917865", "+17518179206", "+14108799192"}] 
      

      investigate in serde_json docs

            Assignee:
            irina.shestak@mongodb.com Irina Shestak (Inactive)
            Reporter:
            irina.shestak@mongodb.com Irina Shestak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: