-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix discrepencies between ContentParts with Pydantic, GQL Input, and …
…GQL Output - Pydantic discriminated union was too strict, need to populate type field with defaults during validation since they are not provided by input - Strawberry input types need to default to UNSET when using OneOf decorator arg - unlike Strawberry input type, Strawberry output types need to match the same shape as the pydantic models so that they can be automatically converted from ORM model
- Loading branch information
1 parent
0c98ea7
commit e7dd684
Showing
17 changed files
with
511 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/pages/playground/__generated__/UpsertPromptFromTemplateDialogCreateMutation.graphql.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...rc/pages/playground/__generated__/UpsertPromptFromTemplateDialogUpdateMutation.graphql.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
111 changes: 79 additions & 32 deletions
111
app/src/pages/playground/__generated__/fetchPlaygroundPromptQuery.graphql.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.