Skip to content

oneof models are missing Serdeable annotation #2377

@KDanisme

Description

@KDanisme

Expected Behavior

when generating oneof interfaces they should be Serdeable just like all other models.

Actual Behaviour

when generating oneof interfaces the resulting interfaces looks like this:

@Generated("io.micronaut.openapi.generator.KotlinMicronautClientCodegen")
interface AccessLevel

which makes http calls using it error with:
Error decoding HTTP response body: No bean introspection available for type [interface <redacted>.model.AccessLevel]. Ensure the class is annotated with io.micronaut.core.annotation.Introspected

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

6.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions