Alternative json model depending on initial answer #244
DiegoSVilla
started this conversation in
General
Replies: 1 comment 1 reply
-
Are you saying that the JSON you want to generate would be conditional on the value that's generated for "name"? Or did I misunderstand? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sry if this doesn't make sense or already has a possible implementation. But in the possibility that we have 3 possible json models as functions a model can run:
for what I understand, this mask works linearly, so it would be possible to know the name and generate the following masks acordingly. Is this possible with pydantic right now? Or would it be only acheivable via regex?
Beta Was this translation helpful? Give feedback.
All reactions