Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Restore MUST requirement for version field first

オープン
#64 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
領域
documentation

調査の方向性

まず仕様におけるバージョンフィールドの文言と、#43 の議論を読んでください。完了とするには、将来のリビジョンに向けた決定を行い、その後仕様を更新するか、なぜ SHOULD のままが適切なのかを文書化する必要があります。

索引モデルが issue の本文から書いたものです。

説明

3.0 Specification

At one point the spec said "The version field MUST be the first field within the layer", and as a result of #43 we changed it to SHOULD. I think this was a mistake, and we should have left it MUST, and accepted the requirement that vector tiles be generated with tools that provide control over field order. Let's consider changing it back in a future revision.

Here's the real-world scenario where it matters: for offline features in Mapbox Mobile, the SDK downloads a large number of gzipped vector tiles for offline storage. Mapbox Mobile wants to not have to support V1 tiles at some point in the future. Therefore it needs to verify that all downloaded tiles (possibly tens of thousands of them) are V2 tiles. If the version field were guaranteed to be first, it could gunzip just the first few bytes of each tile and check the version. If the version field is not guaranteed to be first, it has to either disallow otherwise-valid V2 tiles where the version field is not first, or allow an unbounded portion of the tile to be gunzipped, potentially making offline downloads much more compute intensive then they would otherwise need to be. Neither are good failure modes.

cc @flippmoke @joto

主要言語
言語のデータがありません
スター
1k
フォーク
213
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mapbox/vector-tile-spec のほかの issue

mapbox/vector-tile-spec の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。