Azure / Azure/azure-sdk-for-python
[core] change serialization for hybrid models to `model_dump` in `azure.core.serialization`
Offen
Dieses Issue hat noch niemand übernommen.
Azure.Core
- Vorherrschende Sprache
- Python
- Sterne
- 5.6k
- Forks
- 3.4k
- Ø Merge
- 2 T. 2 Std.
- Gemergte PRs (30 T.)
- 213
Beschreibung
We want to follow what dataclass does and do model -> json serialization as a module-level method in azure.core.serialization. The thought here is to add something like model_dump in azure.core.serialization, which will take in a hybrid model and output it in a dumped model format. This way, people can save it to file / pass to json.dumps.
As part of this, we will deprecate .as_dict() on our new hybrid models
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.