create JSON schema for slice definitions files
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia esaminando l'issue #176 e lo schema delle slice di Chisel esistente in SchemaStore, quindi confronta lo schema Rockcraft e la sua pull request originale. Definisci lo schema di proprietà del repository e stabilisci in che modo format, chisel-release e la versione di Chisel influiscono sulla validazione; il lavoro sarà completo quando lo schema sarà manutenibile in questo repository e adatto all'uso con CI e SchemaStore.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Go
- Stelle
- 434
- Fork
- 74
- Merge medio
- 1g 30m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di canonical/chisel
-
`mode` of a generated directory is random when it has a generated childForse già presa @Amadeus-22 l’ha presa 24 giorni fa. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
-
cut fails on uncompressed debForse già presa @yuminn-k l’ha presa 29 giorni fa. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
-
`prefer` drops a path when the preferred package lists it `until: mutate`Forse già presa @18Abhinav07 l’ha presa 8 giorni fa. ApertaBug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Tutte le issue di canonical/chisel
Issue simili
-
mcpx scan: flag unsafe tool namesForse già presa @zeyadbadawyy l’ha presa oggi. Apertaarea/scan enhancement good first issue priority/medium size/small
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rohitgollarahalli/mcpx#45 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Windows 主机
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Lee-xeo/Claude-Cage#1550 ·
I maintainer di solito rispondono entro 1 giorno
-
(bug) ui: spanPaint can index spans past their end (panic: index out of range)Forse già presa @MaxMiksa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno