Skip to content
Discussion options

You must be logged in to vote

Have you tried following the docs?
The first thing I noticed is that you are using "table" model (with table=True) as a part of response model. You shouldn't use table-models for validation.

Create CardBase model with common fields (excluding relationships), then create Card(CardBase, table=True) and add relationships to it, then create CardOutput(CardBase) and duplicate tags: list["Tag"] and projects: list["Project"] (without Relationship). Use CardOutput in CardBaseSchema.

BTW, looking at the output you provided, it looks like you were using BaseResponseSchema as response model that time.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dkurchigin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants