danielgtaylor / danielgtaylor/python-betterproto

Proposal: ability to detect set/unset fields by client

オープン
#101 コメント 0 件 リアクション 0 件 担当者 4 名 @cetanu が担当を希望しています GitHub で見る
enhancement low priority medium medium priority
主要言語
Python
スター
1.8k
フォーク
234
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。