Skip to content

Automatically make a __root__: List actually work as a list with iter and getitem? #640

Answered by koxudaxi
antont asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry for my too-late reply.
We can use --custom-template-dir option for a custom jinja template.
But I don't recommend it. The custom root type is common in pydantic.
https://docs.pydantic.dev/usage/models/#custom-root-types

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by koxudaxi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants