<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-2890519162">(openstreetmap/openstreetmap-website#5973)</a></div>
<p dir="auto">If we decide to get rid of the <code class="notranslate">create</code>/<code class="notranslate">update</code>/<code class="notranslate">delete</code> blocks, then there are two options (broadly speaking):</p>
<ol dir="auto">
<li>allow attributes to be specified some some elements only. Requires a nested array:</li>
</ol>
<div class="highlight highlight-source-json-comments" dir="auto"><pre class="notranslate">{
<span class="pl-s">"osmChange"</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-ii">d</span>] },
{ <span class="pl-s">"elements"</span>: [<span class="pl-ii">e</span>, <span class="pl-ii">f</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>
<ol start="2" dir="auto">
<li>require all attributes to specified per-changeset:</li>
</ol>
<div class="highlight highlight-source-json-comments" dir="auto"><pre class="notranslate">{
<span class="pl-s">"osmChange"</span>: [<span class="pl-ii">a</span>, <span class="pl-ii">b</span>, <span class="pl-ii">c</span>, <span class="pl-ii">d</span>, <span class="pl-ii">e</span>, <span class="pl-ii">f</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>
<hr>
<p dir="auto">I know that iD specifies <code class="notranslate">if-unused</code> for <em>all</em> elements, and I'm struggling to think of a use-case where you would want <code class="notranslate">if-unused</code> to only apply to some items</p>
<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-2890519162">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL6ZXYXNDB54TYY6BD27GXYJAVCNFSM6AAAAAB4HU3NT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJQGUYTSMJWGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPLQ7OSEU4FW6VUJC327GXYJA5CNFSM6AAAAAB4HU3NT2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVMJHJHU.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/c2890519162</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-2890519162",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5973#issuecomment-2890519162",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>