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
Serialize models with __root__ #730
Comments
|
Just for future reference " I guess Anyone else, thoughts? |
what is the pydantic 2 version of this question? because root is gone |
Co-authored-by: Oli Parker <oliver.parker@gridedge.co.uk> Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
@tommyjcarpenter , the v2 property is just |
Question
import sys; print(sys.version)
: 3.6import pydantic; print(pydantic.VERSION)
: 0.30How to serrialize models with root
result:
{"__root__": ["dog", "cat"]}
How can I get
["dog","cat"]
?The text was updated successfully, but these errors were encountered: