[prev in list] [next in list] [prev in thread] [next in thread]
List: geronimo-dev
Subject: [jira] [Updated] (GERONIMO-6722) The AnnotationProcessor should inject media type instead of respons
From: "Andriy Redko (JIRA)" <jira () apache ! org>
Date: 2019-04-16 12:25:00
Message-ID: JIRA.13228329.1555417218000.81579.1555417500077 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/GERONIMO-6722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Andriy Redko updated GERONIMO-6722:
-----------------------------------
Fix Version/s: OpenAPI_1.0.8
> The AnnotationProcessor should inject media type instead of response code (when \
> endpoint returns void or Response)
> ------------------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6722
> URL: https://issues.apache.org/jira/browse/GERONIMO-6722
> Project: Geronimo
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Affects Versions: OpenAPI_1.0.7
> Reporter: Andriy Redko
> Priority: Major
> Fix For: OpenAPI_1.0.8
>
> Attachments: after.png, before.png
>
>
> The Problem
> ----
> Under certain conditions, for example when endpoint returns `void` or generic \
> `Response`, the `AnnotationProcessor` does not properly inject the media type \
> (which could be omitted or explicitly provided using `@Produces` JAX-RS \
> annotation). Here is an example (using Swagger UI here as it is easier to spot the \
> issue visually, the underlying JSON / YAML spec has the same data):
> !before.png!
>
> Whereas the expected media type should be compatible with \
> [https://tools.ietf.org/html/rfc6838] \
> ([https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#mediaTypes]). \
> The expected behavior is to set media type to **/** (if not \
> provided):
> !after.png!
> Or pick the value from `@Produces` annotation.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic