On Mon, Feb 19, 2024 at 05:43:47PM -0800, Stephen Paul Weber wrote:
>Here is the JSON input:
>
>{ "alias": "GlitchTip", "text": "GlitchTip Alert", "attachments": [ {
>"title": "Some Cool Error", "title_link":
>"
https://example.com/some-cool-link", "text": "/inbound/calls" } ] }
>
>And I want to map it to an Atom structure like this:
>
><entry>
><title>Some Cool Error</title>
><content type="text">/inbound/calls</content>
><link rel="alternate" type="text/html"
>href="
https://example.com/some-cool-link" />
></entry>
>
>The basic issue I'm running into is that because attachments is an array,
>datamapper wants to wrap each element of the array in a tag. I'd like
>everything from every element of the array (of which there happens to only
>ever be one) to go onto the parent <entry> tag.