[Rendering] R1: lean JSON output and --state fix

Aperta
#957 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, json, openapi
Ambito
cli

Direzione di ricerca

Start by locating the CLI JSON rendering path and the --state flag handling; read the linked rendering plan #954 and #562 for the expected output shape. Add the new formatVersion/result/summary/changes output and its JSON Schema, then add tests that validate output against the schema and assert --state never emits metadata. Done means those tests pass and the large spec pair produces small output.

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

Descrizione

Render capabilities

Part of the rendering plan: #954 (R1)

Goal

--json outputs the change list instead of the whole result tree.

Scope
  • New JSON output: formatVersion, result, summary, changes (#562)
  • JSON Schema for it in the repo, with the rule "consumers must ignore unknown fields"
  • --state prints only no_changes, compatible or incompatible, as documented (#508)
Done when
  • JSON output validates against the JSON Schema in tests
  • The spec pair from #562 (or a similar large one) produces small output
  • --state never prints metadata
Lingua principale
Java
Stelle
1.1k
Fork
191
Merge medio
4g 23h
PR unite (30g)
1

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 OpenAPITools/openapi-diff

Tutte le issue di OpenAPITools/openapi-diff

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.