<blockquote>
<p>Consider for example the output of <a href="https://api.openstreetmap.org/api/0.6/map?bbox=-122.083819,37.4217991,-122.0834335,37.4222209" rel="nofollow">https://api.openstreetmap.org/api/0.6/map?bbox=-122.083819,37.4217991,-122.0834335,37.4222209</a><br>
Which starts with<br>
<code><osm version="0.6"</code></p>
</blockquote>
<p>Right, and I would expect the output for any requests made to api/0.7 will start <code><osm version="0.7"></code>. If a client is making requests to the api, then it would expect the response version to match the request version. If it wants a 0.6 response, it should make a request to the 0.6 endpoint.</p>
<p>Now if that response is saved somewhere, then it's useful to know which version of the API originally created that document, so that you know how to parse it. The version in the document is the version of the response. It's not related to some underlying abstract data model, if there is such a thing.</p>
<p>For example, imagine if we keep this underlying abstract data model exactly the same, but change the response format. This could be* changing tags to have "key" and "value" attributes instead of "k" and "v". Then it seems obvious that the response should be <code><osm version="0.7" ... <tag key="..." value="..."></code>, since software will need to know the version of the response to know how to parse it. But this illustrates my point - the version in the document is tied to the <strong>representation</strong> of the data, not the underlying abstract data model, which hasn't changed.</p>
<p>So this PR follows what I expect most other people expect - that the version in the returned document matches the version of the API that requested the document.</p>
<p>(* purely for example; I'm not proposing this)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2353?email_source=notifications&email_token=AAK2OLLZNPPFDTUPOVINFDLQH6PYDA5CNFSM4IOIASA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD53KTZQ#issuecomment-527870438">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLP75SGORNEELS6GIW3QH6PYDANCNFSM4IOIASAQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLIE55J3P4GAVQGEXMDQH6PYDA5CNFSM4IOIASA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD53KTZQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2353?email_source=notifications\u0026email_token=AAK2OLLZNPPFDTUPOVINFDLQH6PYDA5CNFSM4IOIASA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD53KTZQ#issuecomment-527870438",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2353?email_source=notifications\u0026email_token=AAK2OLLZNPPFDTUPOVINFDLQH6PYDA5CNFSM4IOIASA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD53KTZQ#issuecomment-527870438",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>