Content-Length: 232343 | pFad | http://github.com/Azure/azure-sdk-for-python/issues/41437

D1 [core] change serialization for hybrid models to `model_dump` in `azure.core.serialization` · Issue #41437 · Azure/azure-sdk-for-python · GitHub
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
iscai-msft opened this issue Jun 5, 2025 · 1 comment
Assignees

Comments

@iscai-msft
Copy link
Contributor

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

@iscai-msft iscai-msft self-assigned this Jun 5, 2025
@pvaneck pvaneck assigned pvaneck and unassigned iscai-msft Jun 5, 2025
@lmazuel
Copy link
Member

lmazuel commented Jun 6, 2025

Output format will be RestAPI JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Azure/azure-sdk-for-python/issues/41437

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy