opengovsg/mockpass

Values in an array in v3.json does not get parsed / picked.

xiaochris opened this issue · 0 comments

Describe the bug
For MyInfo, an example of childrenbirthrecords has an array of records.
image

In such scenario, the pick function in /myinfo/express.js would not return the selected attributes of childrenbirthrecords. E.g. childrebirthrecords.dob
image

To Reproduce
Send childrenbirthrecords.dob as scope.

Expected behaviour
childrenbirthrecords.dob should be returned as part of the payload returned.

Desktop (please complete the following information):
OS: Windows 10
Browser: Chrome
Version: Latest