Azure / Azure/azure-sdk-for-python

[core] change serialization for hybrid models to `model_dump` in `azure.core.serialization`

Offen
#41,437 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

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

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.