-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internaldocument.NewDocumentMarshaler
not declared by package
#342
Comments
The first thing that comes to mind is whether you are missing protocol generator implementation? For example are you trying to use the code generator for just generating the Go types, but not implementing any specific protocol serde? |
Yes, that might be it. I am just trying to generate the Go types from the smithy spec. |
I have the same problem after upgrading to smithy-go@main. @skmcgrail do you mean one has to go to specific steps to implement some protocol serde? |
@skmcgrail can you perhaps elaborate what it is we need to do here? thanks. |
I have understood a bit more by reverse engineering aws-sdk-go-v2, but I haven't got it working yet. Hopefully I'll reach a working solution, and can then share my findings. |
@skmcgrail I'm not exactly sure how to work around this issue. The only protocol we are declaring is:
And yes - I'm simply trying to generate the Go types, which cannot compile due to the error. |
Update: we're also trying to use the go client, which contains no serializing/deserializing logic. Any advice here would be useful, thanks. |
This most likely is related to #354 with |
Hi,
I generated Go types from smithy models. One member shape uses the
Document
type. The generated code doesn't seem to compile:In file: codegen/document/document.go:
I get an error:
NewDocumentMarshaler not declared by package document
Any ideas?
The text was updated successfully, but these errors were encountered: