openapi-generator Questions

4

I am developing an application with an Angular frontend and RESTful Spring Boot Backend I found this very handy maven plugin openapi-generator-maven-plugin from org.openapitools. With its code gene...
Sheepcote asked 6/7, 2020 at 16:14

2

Solved

I have an OpenAPI specification document (that I do not control) that contains the following snippet: servers: - url: http://www.[someservice].com/api I am using this OpenAPI document to genera...
Simson asked 19/6, 2020 at 15:23

0

I have a rest api using supabase/postgres(t) which generates it's own OpenAPI/Swagger definition. The problem is that this only contains the id fields but not actual references to the other tables....

3

I am new to OpenApi and want to define my api with an api.yaml (OpenApi version 3.0.1). My problem is the generated enum just contains the name and not the values. This is the enum in my code: TES...

3

Solved

I recently tried to generate OpenAPI documentation for my Sprint Boot application. I added the following lines to my pom.xml <dependency> <groupId>org.springdoc</groupId> <a...
Huberthuberto asked 3/2, 2020 at 18:10

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

5

Solved

I'm using OpenApi SpringBoot generator to generate controller interfaces and models. This creates model classes with JsonNullable<String> for nullable fields. However I'm getting a Jackson ty...
Pyroclastic asked 30/12, 2019 at 0:6

3

Solved

I am using OpenAPI generator maven plugin like one below for generating Java client code for models . <plugin> <groupId>org.openapitools</groupId> <artifactId>openapi-gene...
Annabelannabela asked 15/1, 2021 at 9:55

1

Solved

I am using OpenAPI+OpenAPI-generator with spring boot, and trying to use the schema oneof as follows: This is the configuration in the requests.yaml file: ... requestBody: name: request required...
Pruchno asked 9/2, 2022 at 9:0

2

Solved

I'm using Open API code generator Maven plugin to generate Open API 3.0 from a file. I'm using this plugin in in my pom.xml: <groupId>org.openapitools</groupId> <artifactId>openap...
Tetanize asked 15/7, 2020 at 13:6

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

2

I am trying to generate Typescript client with OpenAPI Generator 4.0.0-SNAPSHOT (our manager asked us to use that version for some reason) that reads an OpenAPI 3.0 spec. All of our current endpoin...
Bronez asked 13/5, 2019 at 21:53

2

Solved

We are using openapi-generator's openapi-generator-maven-plugin to automate an integration with a swagger which uses Numeric datatypes that are not int64. Our codebase tries to standardize around u...
Debbydebee asked 3/3, 2021 at 17:36

1

Solved

I have generated my API client with openapi-generator-cli generate -i https://linktomybackendswagger/swagger.json -g typescript-axios -o src/components/api --additional-properties=supportsES6=true ...
Glade asked 1/12, 2021 at 13:57

1

Someone out there must have run into this already... I created a WebApi solution with swagger implemented, full documentation, the whole 9 yards! When I run my web api solution, see the swagger ou...

5

I'm using the openApi maven plugin to generate java request/responses for a REST api. The request has a DateTime property, when I run the generator I get the DateTime property of the attribute rep...
Inweave asked 21/5, 2019 at 11:48

2

I use @openapitools/openapi-generator-cli(v2.1.7) to generate the API library on client side. It works pretty well, except I am not able to format the code generated as I want. I just noticed there...
Ideatum asked 8/12, 2020 at 10:14

1

I define OpenAPI 3.0 documents and use openapi-generator-cli-3.3.4.jar to generate Java code (DTO). But I can't solve this case: List<Map<Integer, Set<String>>>. In Map<Inte...
Ashlar asked 5/7, 2019 at 9:4

1

Solved

I am working on a new project in my team and we are implementing an API following the API first methodology. We are using openapi-generator-maven-plugin to generate our API from an yml file of form...
Ical asked 30/7, 2021 at 6:1

2

I'd like to provide a series of custom codes and message for my error 400 but can't find any way to do so. Ideally something like: Error: type: object enum: - [E01, 'Error1'] - [E02, 'Error2']...
Fils asked 16/4, 2020 at 12:42

1

Solved

I added OpenApi support to an Azure functions application (v3), using .ConfigureOpenApi() in Program.Main(). I use function decorations for the specific functions but how can I control the general ...
Barbey asked 30/9, 2021 at 11:22

0

We build our API using an OpenAPI 3.0.0 schema and generate typescript-code that is used for the frontend-part of our application. We have defined an endpoint, that should be able to consume multip...

5

I'm running the springdoc-openapi-maven-plugin, with the following (standard) configuration: <plugin> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-mave...
Quadrangle asked 6/1, 2020 at 17:4

1

When using OpenAPI generator with Gradle, I would expect to emit the gendered sources to the standard directory used by other source generator plugins. Something like the Maven generated-sources. ...
Candycecandystriped asked 13/8, 2019 at 12:21

2

Solved

After upgrading to Angular 11, I am not able to ng serve my web application anymore. I am generating the client using Spring Doc and the latest OpenAPI generator gradle-plutin (5.0.0). The problem ...
Maricruzmaridel asked 13/1, 2021 at 21:19

© 2022 - 2024 — McMap. All rights reserved.