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

Đang mở
#957 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, json, openapi
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
1.1k
Fork
191
Merge trung bình
4 ngày 23 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenAPITools/openapi-diff

Tất cả issue của OpenAPITools/openapi-diff

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.