Skip to content

How to work with a resource and a httpLabel #434

Answered by Baccata
zetashift asked this question in Q&A
Discussion options

You must be logged in to vote

@zetashift, thanks for the interest :)

For starters, let me say that in the current version, Smithy4s doesn't have any bespoke support for Resource whatsoever, so I obviously cannot give you a very informed piece of advice on resources. I've not ever used resources myself, and though we are planning on support it eventually, we haven't even started thinking about the "how" of a possible support.

Now, that being said, let's try to minimise your example to make the problem clearer and identify a solution. This below seems to work. As you can see, I've added the @httpLabel annotation in the definition of AddContactInput

$version: "2"

namespace contacts

use smithy4s.api#simpleRestJson
use s…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@zetashift
Comment options

@Baccata
Comment options

@zetashift
Comment options

Answer selected by zetashift
Comment options

You must be logged in to vote
7 replies
@Baccata
Comment options

@Baccata
Comment options

@zetashift
Comment options

@zetashift
Comment options

@Baccata
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants