swagger-codegen Questions

2

I need to create swagger codegen client for java, javascript pointing to swagger yaml pusblished on https. When tried below command got SSLHandshakeError. "swagger-codegen generate -i https://loc...
Argil asked 25/8, 2016 at 3:40

1

I have a type which is extending HashMap<String, String>. As per the documentation here, it is possible to add a custom converter for the type. But it seems not working. The contents of the h...
Alaynaalayne asked 15/1, 2021 at 20:0

3

Solved

Does Swagger code generation tool have an option for selecting whether the generated classes should have Lists, Maps etc. defaulted to null or empty? Previously, the default was empty, for example...
Hawkshaw asked 31/7, 2018 at 13:57

2

While designing the API, I am defining a UserGeo model that contains two fields - domain (string array) and country (string array). An empty List [] should be used in the request body if no value i...
Helladic asked 24/1, 2021 at 19:41

3

Solved

I created an enum on my server with integer values set manually rather than the default increment up from 0 public enum UserType { Anonymous = 0, Customer = 10, Technician = 21, Manager = 25, ...
Regent asked 14/2, 2020 at 8:21

3

I am using Swagger codegen to create Java models to be used in a Spring REST server, and would like to know how to get Swagger to declare each model as a JPA entity. I generate the code with the s...
Staffordshire asked 5/2, 2019 at 14:51

1

In a Maven project with Spring Boot, there are several OpenAPI 3.0 specification files. One spec defines all HTTP errors (errors.yml), and the components of errors.yml are referenced in other spec....
Heterodoxy asked 17/3, 2022 at 21:54

6

Solved

I'm learning about Swagger and how to generate REST Client using Swagger codegen. I know how to do documentation with Swagger, also I know how to generate a simple REST Server with Swagger, but I d...
Verner asked 18/8, 2019 at 15:17

3

Solved

I have the following structure Notification | ------------------------ | | SmsNotification EmailNotification The Notification contains an enum notificationType containing either SMS or EMA...
Monzon asked 28/11, 2019 at 11:20

1

Solved

I have a project with an Swagger API and its server code was generated by swagger-codegen-2.4.24 for language jaxrs. The code generated has an abstract class suffixed "*ApiService" that d...
Pomade asked 30/11, 2021 at 20:16

2

A byte[] is modelled in swagger file as an Array of byte[]. When using swagger codegen we are getting List<byte[]> instead of simply byte[] Swagger.json "document": { "type": "array", "it...
Anchusin asked 2/1, 2019 at 17:48

1

Solved

I'm using ASP.NET Core with Swashbuckle.AspNetCore.SwaggerGen in version v6.1.5. I want routes like [HttpGet] or [HttpGet("user")] in a public swagger.json for public endpoints and other ...
Abhorrence asked 29/8, 2021 at 12:9

3

I am able to integrate the Swagge UI in my web api using Swashbuckle. I also want to explore the swagger codegen feature. Can somebody help in - how I can integrate swagger codegen into my web api ...
Aggappora asked 31/1, 2018 at 10:15

2

I am specifying my APIs using swagger I was using 2.0 now there is new version 3.0.0 according to the documentation I have specified 3.0.0 specification using offline swagger editor. Once it was re...
Peddling asked 15/11, 2017 at 7:43

2

Solved

I'm trying to generate kotlin code from a swagger json file, and I can't figure out the command-line parameters that should be used. I've tried Swagger codegen v2.3.1 and v2.2.3 and both fail for...
Corrade asked 16/3, 2018 at 19:40

1

Solved

I use swagger to generate code for spring server and try to run with intelliJ. However I got the following error message. Any help is appreciated. java: cannot access java.util.function.Predicate ...
Aromatize asked 9/6, 2021 at 3:37

1

I have an enum in my swagger scheme which looks like the following: - name: shipmentType in: query required: false type: integer format: int32 enum: - 0 - 1 - 2 - 3 - 4 - 5 - 6 After g...
Semiconductor asked 21/1, 2021 at 12:37

1

Solved

I have a backend application (Java 8) and an Angular frontend. Now, I added a file upload using multipart/formdata. We use openapi to generate the api code. Here's the part of the code used to gene...
Arlynearlynne asked 19/4, 2021 at 9:24

3

Solved

I have a django rest_framework API, Swagger and a Swagger UI. When I am not logged in I can see a very limited view of "login" and "docs". When I am logged in I can see lots of stuff. I am trying ...
Signorina asked 8/2, 2017 at 17:18

2

Solved

I have an OpenAPI 3.0 schema YAML document that defines some API endpoints with all the required parameters and responses. Now, I'd like to generate some boilerplate server-side code: the control...

0

I've an OpenAPI contract like this: openapi: 3.0.1 info: title: Internal API version: '' tags: - name: Calendar description: Api for Calendar resource paths: '/api/v1/appointments/{id}': get:...
Implicatory asked 17/3, 2021 at 8:30

0

I have generated a Python client via the swagger-codegen-cli (v3) docker image in my GitLab ci pipline for a Shopware 6 shop. The problem I encounter is that every endpoint returns empty data. The ...
Hime asked 15/3, 2021 at 8:43

3

Solved

I am generating https://editor.swagger.io/ Codegen proxies. It is giving the following error in Angular 10. How can this be fixed? Generic type 'ModuleWithProviders' requires 1 type argument(s). ...
Pyelography asked 30/7, 2020 at 4:48

4

Solved

Swagger Code Generator can generate SDKs in many languages (listed below from the Github project page). Does anyone use any of Swagger's auto-generated SDKs in production, both as alpha/beta and as...

3

Solved

I am lost in dependencies and tools: I previously use the following tool to generate code for my swagger webservices. swagger-codegen-cli https://mvnrepository.com/artifact/io.swagger.codegen.v3...
Equestrian asked 21/10, 2019 at 8:51

© 2022 - 2024 — McMap. All rights reserved.