Skip to content

Smithy and Scarango #474

Answered by kubukoz
zetashift asked this question in Q&A
Sep 26, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

I think you won't be able to make the generated class extend Document[Person] directly, but you might be able to make an implicit conversion for that.

For DocumentModel[Person], I'd advise you to try and implement SchemaVisitor[DocumentModel]. Still, even if it's possible, you won't be able to call e.g. Person.name.

This might fall out of scope for Smithy4s usage. We don't provide this level of customization of the generated code, and as far as I know it's not likely to change.

Replies: 1 comment 4 replies

Comment options

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

@Baccata
Comment options

@Baccata
Comment options

@zetashift
Comment options

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