swagger-api/swagger-codegen

[JaxRS*] javax.ws.rs.core.Response vs. returnTypes

Open

#4.713 geöffnet am 4. Feb. 2017

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (5.474 Forks)batch import
Enhancement: GeneralServer: Javahelp wanted

Repository-Metriken

Stars
 (12.701 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

Currently only the language jaxrs-cxf returns the "real" returnType in the method signatures as opposed to the generic javax.ws.rs.core.Response. All other Jaxrs-languages use javax.ws.rs.core.Response.

IMHO all JaxRS-languages should allow a CLI-flag ("useGenericJaxRsResponse", default value=true for backwards compatibility) whether to use the generic javax.ws.rs.core.Response or the real returnTypes in the method signatures.

Languages to be updated:

  • jaxrs-cxf-cdi
  • jaxrs-spec
  • jaxrs (Jersey)
  • jaxrs-cxf CXF already has the check, but no CLI flag to use the Jaxrs-Response

I added the check for the CLI-flag useGenericResponse

  • jaxrs-cxf-client

I added the check for the CLI-flag useGenericResponse

  • jaxrs-resteasy
  • java
  • spring
Swagger-codegen version

2.2.2

Contributor Guide