Hi !
I'm trying some things with Fuego and follow their tutorial (I'm in the CRUD part, with code generation)
But I end up with this code:
func (rs BooksResources) postBooks(c fuego.ContextWithBody[BooksCreate]) (Books, error) {
body, err := c.Body()
if err != nil {
return Books{}, err
}
new, err := rs.BooksService.CreateBooks(body)
if err != nil {
return Books{}, err
}
return new, nil
}
And the message from Goland (the IDE): Cannot use 'body' (type B) as the type BooksCreate
(when overing the body variable usage in rs.BooksService.CreateBooks)
Even with this, the code compiles
Am I missing something ?