create JSON schema for slice definitions files
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza revisando el issue #176 y el esquema de slices de Chisel existente en SchemaStore; después, compara el esquema de Rockcraft y su pull request original. Define el esquema propio del repositorio y determina cómo afectan format, chisel-release y la versión de Chisel a la validación; se considerará terminado cuando el esquema sea mantenible en este repositorio y adecuado para su uso en CI y SchemaStore.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Go
- Estrellas
- 434
- Forks
- 74
- Merge medio
- 1 d 30 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de canonical/chisel
-
`mode` of a generated directory is random when it has a generated childPosiblemente ocupada @Amadeus-22 la tomó hace 24 días. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
-
cut fails on uncompressed debPosiblemente ocupada @yuminn-k la tomó hace 29 días. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 42/100
-
`prefer` drops a path when the preferred package lists it `until: mutate`Posiblemente ocupada @18Abhinav07 la tomó hace 8 días. AbiertoBug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Todos los issues de canonical/chisel
Issues similares
-
mcpx scan: flag unsafe tool namesPosiblemente ocupada @zeyadbadawyy la tomó hoy. Abiertoarea/scan enhancement good first issue priority/medium size/small
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rohitgollarahalli/mcpx#45 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Mend: dependency security vulnerability
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
Windows 主机
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Lee-xeo/Claude-Cage#1550 ·
Los mantenedores suelen responder en 1 día
-
(bug) ui: spanPaint can index spans past their end (panic: index out of range)Posiblemente ocupada @MaxMiksa la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día