Skip to content

Add ProtobufMapper.generateSchemaFor(TypeReference<?>) overload #148

@MrThreepwood

Description

@MrThreepwood

I'm attempting to generate a schema in Kotlin. Conveniently in Kotlin I get access to inline functions that allow me to easily create type tokens for classes with generic parameters, simplifying serialization/deserialization greatly in my JSON code. Unfortunately, I don't have that option here and am finding it difficult to get a similar solution working to create a schema for my protobuf mapper.

I don't immediately see a simple way to convert a type token into a JavaType either, though perhaps there is something simple that I am missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions