moov-io / customers

Customer registry supporting Know Your Customer (KYC), Customer Identification Program (CIP), and OFAC checks
https://moov.io
Apache License 2.0
69 stars 19 forks source link

Saving metadata only saves/returns the last{key: value} pair #259

Closed DylanAllen closed 4 years ago

DylanAllen commented 4 years ago

Customers Version: 0.5.0-dev25

What were you trying to do? Save customer metadata

What did you expect to see? All properties passed to be saved.

What did you see? Only the last property in the request body is being saved

How can we reproduce the problem? PUT /customers/{customerID}/metadata Request

{
   "metadata":{
      "keyone":"value",
      "keytwo":"valuetwo",
      "keythree":"valuethree"
   }
}

Response:

{
...
   "metadata":{
      "keytwo":"valuetwo"
   },
...
}