create JSON schema for slice definitions files

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
json
領域
devtools, tooling

調査の方向性

まず issue #176 と SchemaStore にある既存の Chisel slice schema を確認し、次に Rockcraft schema とその元の pull request を比較します。リポジトリが所有する schema を定義し、format、chisel-release、Chisel のバージョンがバリデーションにどのような影響を与えるかを確定します。完了の条件は、その schema がこのリポジトリで保守可能で、CI と SchemaStore での利用に適していることです。

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

説明

Problem

The issue is depicted in #176. In short, we want to be able to validate new slice definitions that are being proposed, even though Chisel itself may ignore fields that are not part of the schema.

Suggested approach

Instead of making Chisel print warnings for unknown fields, the preferred approach is to create a manageable JSON schema within this repo, that can be updated alongside the code and used as a reference from the SchemaStore.

Pros:

  • the repo itself will be the source of truth and hold the explicit schema that Chisel expects within a Slice Definitions File
    • with this JSON schema, our CI can do an early validation of new slice definitions without having to run Chisel
  • adding this schema to the SchemaStore will allow contributors to have off-the-shelf validation within their IDEs
Additional considerations

When validating a slice definition, we may need to consider

  1. the format version
  2. the chisel-release
  3. the chisel version

We need to carefully think about this because adding new fields doesn't equate to bumping the format.

Examples

Similar work has already been done for Rockcraft:

主要言語
Go
スター
434
フォーク
74
平均マージ
1日 30分
マージ済み PR(30日)
1

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

canonical/chisel のほかの issue

canonical/chisel の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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