Dears ,
appreciate your support i have this field in xml need to get the output of map policy same as below :
<ns3:accountIdSet xmlns:ns3="http://www.banqueaudi.com/ebo/psa.cmn.Identifiers">
<ns3:accountId format="Local" domiciliation="Local">123456789</ns3:accountId>
</ns3:accountIdSet>
but i get the result as below always :
<ns3:accountIdSet>
<ns3:accountId domiciliation="Local" format="Local" />
</ns3:accountIdSet>
this is the map policy mapping
actions:
- create: accountIdSet.accountId
foreach: accountIdSet
from: accountIdSet
actions:
- set: '@format'
from: accountId.format
- set: '@domiciliation'
from: accountId.domiciliation
the xml definition is :
accountIdSet:
type: array
items:
type: object
xml:
namespace:
http://www.banqueaudi.com/ebo/psa.cmn.Identifiers prefix: ns3
wrapped: true
properties:
accountId:
type: object
xml:
wrapped: true
minItems: 1
properties:
domiciliation:
xml:
namespace: ''
attribute: true
description: >-
A hint that this account id is a local, domestic, or
international institution account id
type: string
enum:
- Local
- Domestic
- International
format:
xml:
namespace: ''
attribute: true
description: An indication of the format of this accountId
type: string
enum:
- Local
- GL
- IBAN
- Other
- Unknown
- Display
- OldAccount
- OldIBAN
- FCUBSAccount
appreciate your support to solve this issue ...
i tried to make the accountId as array but didn't work also
------------------------------
Ahmed Elaimy
------------------------------