swagger-codegen

Swagger Open API: Remove ReportProgress in Angular Typescript

爱⌒轻易说出口 提交于 2020-08-10 19:15:14
问题 We are using Swagger IO CodeGen, to create Angular API Service Proxies? Currently linking Net Core 3 APIs with Angular Typescript. https://editor.swagger.io/ public addProduct(product?: string, observe?: 'body', reportProgress?: boolean): Observable<CreatePropertyResponse>; public addProduct(product?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CreatePropertyResponse>>; public addProduct(product?: string, observe?: 'events', reportProgress?: boolean):

How to generate Map<String, …> with Swagger Codegen?

≡放荡痞女 提交于 2020-07-31 04:13:06
问题 I'm working on an API where we define the API definition in the swagger.yaml file. The API which I am working on returns an output object which contains a map. Output Object : OutputClass public class OutputClass { private Map<String, MapValue> map; } Right now, I used: OutputClass: type: object additionalProperties: $ref: '#/definitions/MapValue' But Swagger Codegen generates the following Java code: public class OutputClass extends HashMap<String, MapValue> implements Serializable { } Is

How to generate Map<String, …> with Swagger Codegen?

旧城冷巷雨未停 提交于 2020-07-31 04:11:48
问题 I'm working on an API where we define the API definition in the swagger.yaml file. The API which I am working on returns an output object which contains a map. Output Object : OutputClass public class OutputClass { private Map<String, MapValue> map; } Right now, I used: OutputClass: type: object additionalProperties: $ref: '#/definitions/MapValue' But Swagger Codegen generates the following Java code: public class OutputClass extends HashMap<String, MapValue> implements Serializable { } Is

How to generate Map<String, …> with Swagger Codegen?

流过昼夜 提交于 2020-07-31 04:11:35
问题 I'm working on an API where we define the API definition in the swagger.yaml file. The API which I am working on returns an output object which contains a map. Output Object : OutputClass public class OutputClass { private Map<String, MapValue> map; } Right now, I used: OutputClass: type: object additionalProperties: $ref: '#/definitions/MapValue' But Swagger Codegen generates the following Java code: public class OutputClass extends HashMap<String, MapValue> implements Serializable { } Is

Trouble installing Swagger CodeGen

二次信任 提交于 2020-07-29 03:49:01
问题 I installed Swagger CodeGen using the command npm install swagger-codegen -g So I should have it installed, but there is some error/glitch going on. Everytime I enter swagger-codegen -v I get the following message 'swagger-codegen' is not recognized as an internal or external command, operable program or batch file. I have no idea what to do. How should I fix this? I am trying to follow a tutorial, but the instructor nevers shows how he installs programs. Under GitHub, the instructions don't

Trouble installing Swagger CodeGen

这一生的挚爱 提交于 2020-07-29 03:48:47
问题 I installed Swagger CodeGen using the command npm install swagger-codegen -g So I should have it installed, but there is some error/glitch going on. Everytime I enter swagger-codegen -v I get the following message 'swagger-codegen' is not recognized as an internal or external command, operable program or batch file. I have no idea what to do. How should I fix this? I am trying to follow a tutorial, but the instructor nevers shows how he installs programs. Under GitHub, the instructions don't

Gradle Swagger CodeGen DefaultGenerator CodegenConfigurator Add Lombok

耗尽温柔 提交于 2020-06-29 05:04:35
问题 I have a swagger and the following build.gradle file buildscript { ext { springBootVersion = '2.1.8.RELEASE' } repositories { maven { url "https://mavenrepo.schwab.com/nexus/content/groups/public" } maven { url "https://mavenrepo.schwab.com/nexus/content/repositories/releases/" } } dependencies { classpath("io.swagger:swagger-codegen:2.4.7") classpath "io.spring.gradle:dependency-management-plugin:1.0.8.RELEASE" classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion