Accept multiple mimetypes for consumption #77

Closed
opened 2021-07-15 17:36:20 +02:00 by sebplorenz · 1 comment
sebplorenz commented 2021-07-15 17:36:20 +02:00 (Migrated from github.com)

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"})
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"}) ```
sebplorenz commented 2021-08-18 11:37:54 +02:00 (Migrated from github.com)

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

Issue is fixed with PR #78 @stephanschnabel can you create a new release? thx
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
kokuwaio/micronaut-openapi-codegen#77
No description provided.