Skip to content

[REQ] Java MicroPofile Rest client with Jackson serialization? #8015

@hrstoyanov

Description

@hrstoyanov

Is your feature request related to a problem? Please describe.

Quarkus, an up-and-coming Java Microprofile implementation will soon allow users to use JAX-RS with Jackson, instead of the standard JSONB as discussed here

Currently this generator cannot generate Microprofile rest client code based on JAX-RS+jackson code. I tried this (in my Gradle):

   ...
    openApiGenerate {
        generatorName = "java"       
        configOptions = [
                dateLibrary: "java8",
                java8: "true",
                library:"microprofile",
                serializationLibrary:"jackson"
        ]
     
    }

but the generated code is still JAX-RS/JSONB, not JAX-RS/Jackson

Describe the solution you'd like

This should do the trick:

 openApiGenerate {
        generatorName = "java"       
        configOptions = [
                ...
                library:"microprofile",
                serializationLibrary:"jackson"
        ]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions