[BUG](codegen) A RootModel entry point whose root contains a non-feature union cannot be documented

Đang mở
#866 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 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
56/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Start by tracing the RootModel alias path through extract_rootmodel_alias and its call to analyze_type; the issue names these entry points but no test files. Reproduce the failure with a RootModel root containing a multi-arm union, such as list[U], and inspect how Markdown generation handles the resulting UnsupportedUnionError. Done means the alias shape is documented or the error identifies the entry point and unsupported shape.

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

Mô tả

A RootModel over list[U], dict[str, U], int | str or Model | int is not a union feature, so it takes the alias path. extract_rootmodel_alias calls analyze_type with no union_resolver, so any multi-arm union under the root raises UnsupportedUnionError and aborts a Markdown run. The alias path should document the union as the alias's shape, or raise an error naming the entry point and the unsupported shape.

Ngôn ngữ chính
Python
Star
219
Fork
20
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
37

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 OvertureMaps/schema

Tất cả issue của OvertureMaps/schema

Issue tương tự

Thêm issue về Python

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.