danielgtaylor / danielgtaylor/python-betterproto
Proposal: ability to detect set/unset fields by client
@cetanu đang làm issue này rồi.
Từ ngày 4/7/2020.
- Ngôn ngữ chính
- Python
- Star
- 1.8k
- Fork
- 234
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
This idea has been brought up a few times.
Clients want to know whether an object they've created has a certain field explicitly set or not (even when it was set to the default).
This is different from detecting whether the field was set on the wire, since it is not distinguishable whether a default value was set, or that it was omitted.
We would need this feature internally to fix #74, and for #95.
A discussion about this is available on our Slack at #unset-field-detection. In due time, the content there should be consolidated here on github.
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.
Đánh giá
Issue này chưa được đánh giá.