discriminatedUnion for schema of a JSON column, based on type
column?
#258
Unanswered
canadaduane
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a table that looks roughly like so:
But we would like to transition to a schema on the
messages
column that is a union depending on thetype
column. Is there a way to make a discriminated union of a JSON schema depend on a model's column?For example, making up some kind of notation for this:
Beta Was this translation helpful? Give feedback.
All reactions