forked from loafle/openapi-generator-original
build error fix
This commit is contained in:
parent
fc52ab972b
commit
470ba201d8
@ -37,7 +37,7 @@ public class SwaggerResource {
|
|||||||
@Produces({MediaType.APPLICATION_OCTET_STREAM})
|
@Produces({MediaType.APPLICATION_OCTET_STREAM})
|
||||||
@ApiOperation(value = "Downloads a pre-generated file",
|
@ApiOperation(value = "Downloads a pre-generated file",
|
||||||
response = String.class,
|
response = String.class,
|
||||||
tags = {@Tag(value = "clients"), @Tag(value = "servers")})
|
tags = {"clients", "servers"})
|
||||||
public Response downloadFile(@PathParam("fileId") String fileId) throws Exception {
|
public Response downloadFile(@PathParam("fileId") String fileId) throws Exception {
|
||||||
Generated g = fileMap.get(fileId);
|
Generated g = fileMap.get(fileId);
|
||||||
System.out.println("looking for fileId " + fileId);
|
System.out.println("looking for fileId " + fileId);
|
||||||
@ -61,7 +61,7 @@ public class SwaggerResource {
|
|||||||
@ApiOperation(
|
@ApiOperation(
|
||||||
value = "Generates a client library based on the config",
|
value = "Generates a client library based on the config",
|
||||||
response = ResponseCode.class,
|
response = ResponseCode.class,
|
||||||
tags = {@Tag(value = "clients", description = "client operations")})
|
tags = "clients")
|
||||||
public Response generateClient(
|
public Response generateClient(
|
||||||
@ApiParam(value = "The target language for the client library", allowableValues = "android,java,php,objc,docs", required = true) @PathParam("language") String language,
|
@ApiParam(value = "The target language for the client library", allowableValues = "android,java,php,objc,docs", required = true) @PathParam("language") String language,
|
||||||
@ApiParam(value = "Configuration for building the client library", required = true) GeneratorInput opts) throws Exception {
|
@ApiParam(value = "Configuration for building the client library", required = true) GeneratorInput opts) throws Exception {
|
||||||
@ -88,7 +88,7 @@ public class SwaggerResource {
|
|||||||
@ApiOperation(value = "Gets languages supported by the client generator",
|
@ApiOperation(value = "Gets languages supported by the client generator",
|
||||||
response = String.class,
|
response = String.class,
|
||||||
responseContainer = "List",
|
responseContainer = "List",
|
||||||
tags = {@Tag(value = "clients", description = "client operations")})
|
tags = "clients")
|
||||||
public Response clientOptions() {
|
public Response clientOptions() {
|
||||||
String[] languages = new String[clients.size()];
|
String[] languages = new String[clients.size()];
|
||||||
languages = clients.toArray(languages);
|
languages = clients.toArray(languages);
|
||||||
@ -100,7 +100,7 @@ public class SwaggerResource {
|
|||||||
@ApiOperation(value = "Gets languages supported by the server generator",
|
@ApiOperation(value = "Gets languages supported by the server generator",
|
||||||
response = String.class,
|
response = String.class,
|
||||||
responseContainer = "List",
|
responseContainer = "List",
|
||||||
tags = {@Tag(value = "servers", description = "server operations")})
|
tags = "servers")
|
||||||
public Response serverOptions() {
|
public Response serverOptions() {
|
||||||
String[] languages = new String[servers.size()];
|
String[] languages = new String[servers.size()];
|
||||||
languages = servers.toArray(languages);
|
languages = servers.toArray(languages);
|
||||||
@ -111,7 +111,7 @@ public class SwaggerResource {
|
|||||||
@Path("/servers/{framework}")
|
@Path("/servers/{framework}")
|
||||||
@ApiOperation(value = "Generates a server library for the supplied server framework",
|
@ApiOperation(value = "Generates a server library for the supplied server framework",
|
||||||
response = ResponseCode.class,
|
response = ResponseCode.class,
|
||||||
tags = {@Tag(value = "servers", description = "server operations")})
|
tags = "servers")
|
||||||
public Response generateServerForLanguage(
|
public Response generateServerForLanguage(
|
||||||
@ApiParam(value = "framework", allowableValues = "jaxrs,nodejs", required = true) @PathParam("framework") String framework,
|
@ApiParam(value = "framework", allowableValues = "jaxrs,nodejs", required = true) @PathParam("framework") String framework,
|
||||||
@ApiParam(value = "parameters", required = true) GeneratorInput opts)
|
@ApiParam(value = "parameters", required = true) GeneratorInput opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user