`with_options` doesn't do deep merge
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
- 35/100
Hướng nghiên cứu
Start at the with_options entry point and trace how parent and nested documentation options are combined. Reproduce the example from the issue, then add a regression test showing that nested attributes retain required and type while adding example values. Done means the nested documentation is deep-merged rather than replaced.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
with_options documentation: {required: true, type: 'integer'} do
expose :posts_count, as: :posts, documentation: {example: 7}
expose :followers_count, as: :followers, documentation: {example: 105}
expose :following_count, as: :following, documentation: {example: 52}
expose :bookmarks_count, as: :bookmarks, documentation: {example: 22}
end
the example doesn't work, since documentation from nested attributes overrides parent's one.
I think they should be deep merged
- Ngôn ngữ chính
- Ruby
- Star
- 730
- Fork
- 154
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ruby-grape/grape-entity
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
ruby-grape/grape-entity#386 · 7 bình luận · 1 reaction ·
-
Custom Entity options supportĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ruby-grape/grape-entity#382 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ruby-grape/grape-entity#380 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
ruby-grape/grape-entity#373 · 2 bình luận ·
-
Truncate FormatterĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 45/100
ruby-grape/grape-entity#372 ·
Tất cả issue của ruby-grape/grape-entity
Issue tương tự
-
Windows: packaged_agent_ruby? never matches 'Puppet Labs\Puppet', so the openvox gem is not foundĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Falha nos links do postĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
temporalio/sdk-ruby#625 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 94/100
zerocracy/judges-action#2803 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
empty tone.rbĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100