Add a JSON Schema for `codepact.config.json`

Aperta
#31 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-3 ore
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, json
Ambito
tooling

Direzione di ricerca

Start by reading the validator and the example config files to identify the constraints for ranges and ignore. Add schema/codepact.config.schema.json, show its $schema line in README.md, and add a test that validates every example config. Run npm test; the work is done when all example configs pass against the schema.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation wave

Context

The conventions repository publishes a schema, but the action does not link to it or ship one. Editors cannot complete or validate the file a workflow references.

Scope

  • schema/codepact.config.schema.json
  • README.md

Acceptance criteria

  • The schema describes ranges and ignore with the same constraints as the validator.
  • README.md shows the $schema line.
  • A test checks the schema accepts every example config in the repository.

Verification

npm test

Complexity

Medium (3 hours)

Part of Stellar Wave. Comment to claim this issue before starting.

Lingua principale
JavaScript
Stelle
0
Fork
0
Merge medio
7h 28m
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codepacct/codepact-action

Tutte le issue di codepacct/codepact-action

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.