danielgtaylor / danielgtaylor/python-betterproto

to_json will miss field.

Aperta
#160 16 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
1.8k
Fork
234
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

![image](https://user-images.githubusercontent.com/17704611/96240606-affc5d80-0fd3-11eb-8b96-05ab169ccdcd.png)
json = program.to_json()
'{"sdkVersion": "Python 1.0.0", "head": {"usingQRegList": [0, 1, 2], "usingCRegList": [0, 1]}}'

If I use to_dict,I need to use include_default_values. If I don't use include_default_values, it miss field too.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

The report names no files or tests; begin at the to_json and to_dict entry points and reproduce the difference around include_default_values. The intended output is not specified, so clarify which fields must be present before defining the regression test and completion criteria.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
backend-api-design
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.