kokuwaio/micronaut-openapi-codegen

Accept multiple mimetypes for consumption

sebplorenz opened this issue · 1 comments

A request body can have multiple accepted mimetypes. Like

requestBody:
        content:
          application/json:
            schema:
              type: string
          application/ld+json:
            schema:
              type: string

This produces:

@io.micronaut.http.annotation.Consumes("application/json", "application/ld+json")

Expected:

@io.micronaut.http.annotation.Consumes({"application/json", "application/ld+json"})

Issue is fixed with PR #78
@stephanschnabel can you create a new release? thx