<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/111561?s=20&v=4" /><strong>tordans</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6399#issuecomment-3389799395">(openstreetmap/openstreetmap-website#6399)</a></div>
<blockquote>
<p dir="auto">this should definitely be accompanied by a change to the capabilities api call that reports the max value</p>
</blockquote>
<p dir="auto">Good point. I added changes that expose this limit like so…<br>
<code class="notranslate">http://localhost:3001/api/0.6/capabilities.json</code></p>
<pre class="notranslate"><code class="notranslate">{
"version": "0.6",
"generator": "OpenStreetMap server",
"copyright": "OpenStreetMap and contributors",
"attribution": "http://www.openstreetmap.org/copyright",
"license": "http://opendatacommons.org/licenses/odbl/1-0/",
"api": {
"version": {
"minimum": "0.6",
"maximum": "0.6"
},
"area": {
"maximum": 0.25
},
"note_area": {
"maximum": 25
},
"tracepoints": {
"per_page": 5000
},
"waynodes": {
"maximum": 2000
},
"relationmembers": {
"maximum": 32000
},
"changesets": {
"maximum_elements": 10000,
"default_query_limit": 100,
"maximum_query_limit": 100
},
"notes": {
"default_query_limit": 100,
"maximum_query_limit": 10000
},
"user_preferences": {
"key_maximum_length": 255,
"value_maximum_length": 10000
},
"timeout": {
"seconds": 300
},
"status": {
"database": "online",
"api": "online",
"gpx": "online"
}
},
"policy": {
"imagery": {
"blacklist": []
}
}
}
</code></pre>
<blockquote>
<p dir="auto">(and given that it is related, should probably report the standard 255 limit too, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="244930200" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1593" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1593/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1593">#1593</a>).</p>
</blockquote>
<p dir="auto">Lets tackle this separate to keep this PR as small as possible. What would a good format be? Just <code class="notranslate">defaults: { key_max…, value_max…}</code>?</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/6399#issuecomment-3389799395">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKBFCG6XSAMGNBS2233W6QHBAVCNFSM6AAAAACG62OP7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOBZG44TSMZZGU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMAYKO6GLSEUBFZ7K33W6QHBA5CNFSM6AAAAACG62OP7GWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTWKBQ56G.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/6399/c3389799395</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/6399#issuecomment-3389799395",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6399#issuecomment-3389799395",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>