Skip to content

Commit

Permalink
small fix in zaakToRequest mapping for eigenschappen
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Aug 23, 2024
1 parent 1cfbd00 commit b46c9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Installation/Mapping/zaakToRequest.mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"status": "received",
"type": "{{ '/api/request_types/' ~ embedded.zaaktype.identificatie }}",
"customers": "{% if embedded is defined and embedded.rollen is defined %}{{ map(\"https://commongateway.nl/mapping/RolToCustomer.mapping.json\", embedded.rollen, true)|json_encode }}{% else %}[]{% endif %}",
"body": "{% if embedded is defined and embedded.eigenschappen is defined %}[{% for eigenschap in embedded.eigenschappen %}{% if loop.first == false %},{% endif %}\"{{ eigenschap.naam }}\":\"{{ eigenschap.waarde }}\"{% endfor %}]{% else %}[]{% endif %}",
"body": "{% if embedded is defined and embedded.eigenschappen is defined %}[{% for eigenschap in embedded.eigenschappen %}{% if loop.first == false %},{% endif %}\"{{ eigenschap.embedded.eigenschap.naam }}\":\"{{ eigenschap.waarde }}\"{% endfor %}]{% else %}[]{% endif %}",
"documents": "{% if embedded is defined and embedded.zaakinformatieobjecten is defined %}[{% for zaakinformatieobject in embedded.zaakinformatieobjecten %}{% if loop.first == false %},{% endif %}{\"file\":\"zaakinformatieobject.informatieobject.inhoud\"}{% endfor %}]{% else %}[]{% endif %}"
},
"cast": {
Expand Down

0 comments on commit b46c9a3

Please sign in to comment.