Skip to content

Conversation

hugoaguirre
Copy link
Contributor

Checklist (if applicable):

Comment on lines 353 to 356
err := genkit.DefineSchema(g, "recipe", RecipeSchema{})
if err != nil {
log.Fatalf("error defining schema: %v", err)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
err := genkit.DefineSchema(g, "recipe", RecipeSchema{})
if err != nil {
log.Fatalf("error defining schema: %v", err)
}
genkit.DefineSchema(g, "recipe", RecipeSchema{})

This should panic instead of returning an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants