Skip to content

Support for kotlinx serialization model generation #883

Open
@simon-st

Description

@simon-st

I am looking to only generate the client models based off of Smithy specs. I will handle the actual network call myself, but would like to use generated model classes for the requests and responses. I would love to use kotlinx serialization for the deserialization of the responses instead of the current builder approach.

Questions:

  1. Is there a way to only create the models and not the service class?
  2. Do you plan on adding support for kotlinx serialization at some point?
  3. Is there a way to define a model template or to influence the output models in any way without cloning and customizing the whole smithy-kotlin repo?

Thank you

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

Describe the Feature

Support for output models that can be parsed from a json string using kotlinx serialization

Is your Feature Request related to a problem?

Proposed Solution

Describe alternatives you've considered

Additional Context

  • I may be able to implement this feature request

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions