create JSON schema for slice definitions files
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
まず 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
- the
formatversion - the chisel-release
- 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:
- Current JSON schema: https://github.com/canonical/rockcraft/blob/main/schema/rockcraft.json (original PR)
- Rockcraft schema in the SchemaStore: https://github.com/SchemaStore/schemastore/blob/054e754b8c7318916a221bdd230a2c8b520330ca/src/api/json/catalog.json#L4486-L4491
- Existing Chisel slices schema in the SchemaStore (manually maintained): https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/chisel-slices.json
- 主要言語
- Go
- スター
- 434
- フォーク
- 74
- 平均マージ
- 1日 30分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
canonical/chisel のほかの issue
-
`mode` of a generated directory is random when it has a generated child対応中かも @Amadeus-22 が 24 日前に担当しました。 オープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
-
cut fails on uncompressed deb対応中かも @yuminn-k が 29 日前に担当しました。 オープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
-
`prefer` drops a path when the preferred package lists it `until: mutate`対応中かも @18Abhinav07 が 8 日前に担当しました。 オープンBug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
canonical/chisel の issue をすべて見る
似ている issue
-
mcpx scan: flag unsafe tool names対応中かも @zeyadbadawyy が今日担当しました。 オープンarea/scan enhancement good first issue priority/medium size/small
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rohitgollarahalli/mcpx#45 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
Windows 主机
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Lee-xeo/Claude-Cage#1550 ·
メンテナーはふだん 1 日以内に返信
-
(bug) ui: spanPaint can index spans past their end (panic: index out of range)対応中かも @MaxMiksa が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信