Pydantic usage
#1196
Replies: 1 comment 3 replies
-
There is more discussion in #967 . Though we probably want to hold off with that for after the 1.0 release and the paper. Though if you are looking for some issues to tackle I would love some help with #647 or #1040. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been going over the cobra issues, and trying to find issues/pull request I can tackle.
I saw #959 where @Midnighter mentioned that he would prefer Pydantic models. I'm not sure how exactly you'd like to use them.
It seems that
and then rely on pydantic to validate and convert from cobra.Metaoblite. reactionDict will be more complicated, since there are more validations and conversion.
json.py will rely on dict.py and use Pydantic to convert to/from JSON
Is (1) correct? Is the format something like what you were thinking?
Beta Was this translation helpful? Give feedback.
All reactions