danielgtaylor / danielgtaylor/python-betterproto

Proposal: ability to detect set/unset fields by client

Abierto
#101 0 comentarios 0 reacciones 4 asignados Reclamado por @cetanu Ver en GitHub
enhancement low priority medium medium priority
Lenguaje dominante
Python
Estrellas
1.8k
Forks
234
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.