<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/16009897?s=20&v=4" /><strong>k-yle</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5973#issuecomment-2849262386">(openstreetmap/openstreetmap-website#5973)</a></div>
<p dir="auto">for completeness, another option that hasn't been mentioned yet is:</p>
<div class="highlight highlight-source-json-comments" dir="auto"><pre class="notranslate">{
  <span class="pl-s">"osmChange"</span>: [
    { <span class="pl-s">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>create<span class="pl-pds">"</span></span>, <span class="pl-s">"elements"</span>: [<span class="pl-ii">a</span>, <span class="pl-ii">b</span>, <span class="pl-ii">c</span>] },
    { <span class="pl-s">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>delete<span class="pl-pds">"</span></span>, <span class="pl-s">"elements"</span>: [<span class="pl-ii">d</span>, <span class="pl-ii">e</span>] },
    { <span class="pl-s">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>modify<span class="pl-pds">"</span></span>, <span class="pl-s">"elements"</span>: [<span class="pl-ii">f</span>, <span class="pl-ii">g</span>] },
    { <span class="pl-s">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>delete<span class="pl-pds">"</span></span>, <span class="pl-s">"elements"</span>: [<span class="pl-ii">h</span>, <span class="pl-ii">i</span>], <span class="pl-s">"ifUnused"</span>: <span class="pl-c1">true</span> },
  ],
  <span class="pl-c"><span class="pl-c">//</span> extra properties for 'options' or 'changesetTags' or whatever could go here</span>
}</pre></div>
<p dir="auto">this would address all the limitations from the other proposals, <em>and</em> avoids adding properties to the <code class="notranslate">Node</code>/<code class="notranslate">Way</code>/<code class="notranslate">Relation</code> objects<sup><a href="#user-content-fn-1-7aad3df583a563dada41d73f41fa23f4" id="user-content-fnref-1-7aad3df583a563dada41d73f41fa23f4" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only" dir="auto">Footnotes</h2>
<ol dir="auto">
<li id="user-content-fn-1-7aad3df583a563dada41d73f41fa23f4">
<p dir="auto">in my opinion, we should avoid adding temporary properties to these objects, because this could become messy and could be weird to implement in a type-safe way in some languages <a href="#user-content-fnref-1-7aad3df583a563dada41d73f41fa23f4" data-footnote-backref="" aria-label="Back to reference 1" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5973#issuecomment-2849262386">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPZB5JKFBXBB67FYNT24YS5FAVCNFSM6AAAAAB4HU3NT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBZGI3DEMZYGY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLGGXRVB657BRVKMM324YS5FA5CNFSM6AAAAAB4HU3NT2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVJ2RFTE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5973/c2849262386</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>

<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5973#issuecomment-2849262386",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5973#issuecomment-2849262386",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>