openapi-generator Questions
3
Solved
I use OpenApi 3.0 and the maven plugin openapi-generator-maven-plugin to generate my api + objects.
This is my maven config:
<execution>
<goals>
<goal>generate</goal>
&l...
Henderson asked 23/8, 2022 at 15:18
3
Solved
I see that there is a date format for strings in OpenAPI, and that by using dateLibrary=java8 we can generate LocalDate fields by using openapi-generator.
But is there any way of producing LocalTim...
Hungry asked 6/10, 2021 at 8:46
1
Solved
With org.openapitools:openapi-generator-maven-plugin, I have noticed that using allOf composed of multiple objects in a response does not generate a class combining these multiple objects. Instead ...
Multivibrator asked 13/8, 2021 at 14:10
1
Problem:
When I generate a class with the openAPI code generator properties with a List type are initialized right away as an empty ArrayList.
I want to remove this initialization, so that this pro...
Murguia asked 18/7, 2022 at 11:50
1
I would like to know is there a way to make the OpenApi generated classes to show their proper date and time format. I read a few topics on this and none of them help. Here is a sample of the build...
Skip asked 21/4, 2023 at 11:50
1
Using OpenApi generator with Spring Boot
Here is my translation.yml file:
openapi: 3.0.1
info:
title: OpenAPI definition
version: v0
servers:
- url: http://localhost:8088/
description: Generate...
With asked 20/4, 2023 at 22:21
2
Solved
I would like the OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator) to be able to generate Pageable parameter in API according to the implementation in Spring Boot Data. I've bee...
Stonwin asked 19/4, 2020 at 16:1
2
Solved
I know the following about various python HTTP libraries:
Requests does not support HTTP/2 requests.
Hyper does support HTTP/2 requests, but is archived as of early 2021 and wouldn't be a good cho...
Crosspollination asked 13/4, 2022 at 14:6
2
I am using openapi-codegen version 4.2.2 and openapi specification 3.0.0 to generate a java server API from a yaml file like this:
openapi-generator generate -i test.yaml -g spring -o /tmp/springT...
Lysol asked 18/12, 2019 at 10:38
2
How do you set a default discriminator for each child class?
For example, take this schema:
components:
schemas:
Pet:
type: object
required:
- petType
properties:
petType:
type: string
dis...
Distraction asked 3/8, 2020 at 22:6
0
I am developing a Rest-API service using Quarkus and for this, I have added OpenAPI (org.eclipse.microprofile.openapi) annotations to generate Swagger-UI. My response can consist of large amounts o...
Headlight asked 7/10, 2022 at 8:19
1
I would like to generate a java interface with Spring annotations for an OpenAPI 3.0.1 specification in yaml. In particular it is the @PutMapping I want to ask about.
I would like as outcome someth...
Rosemarie asked 17/5, 2022 at 11:51
1
Solved
I am generating the Scala code shown below using the openapi-generator.
import examples.openverse.model.{InlineObject, OAuth2RegistrationSuccessful}
import examples.openverse.core.JsonSupport._
imp...
Torque asked 14/9, 2022 at 6:26
2
I'm trying to run the OpenAPI generator, but I keep getting an error message that doesn't make sense.
Failed to execute goal org.openapitools:openapi-generator-maven-plugin:5.0.0-SNAPSHOT:generate ...
Eliga asked 7/1, 2021 at 9:4
5
I have two yaml file, customer.yaml and employee.yaml. How do I generate java code from these two yaml file in single project. I'm using gradle, I know the task specification for single yaml but ho...
Thelen asked 26/9, 2019 at 14:6
4
What I'm trying to achieve
I'm trying to generate my REST API client for Android using OpenAPI Generator from the build.gradle script. That way, I wouldn't have to run the generator command line ev...
Martingale asked 17/8, 2020 at 9:12
5
I'm using OpenAPI 3.0 inheritance in components schemas and I have the (Java) classes generated by openapi-generator (which uses Jackson).
Why the discriminator property gets serialized twice in th...
Fetich asked 29/8, 2019 at 8:35
2
Solved
I wrote specifications for my REST API server using OpenAPI 3.0. Now, instead of manually writing a lot of repetitive code, with all the errors that could be introduced, I'd like to quickly generat...
Tabes asked 4/8, 2019 at 3:52
4
I'm trying to omit null values in my ResponseEntity.
My controller looks something like this:
@RestController
public class FooController {
//fields
//constructor
@PostMapping
public Respon...
Brat asked 18/2, 2020 at 0:38
2
I am using openapi-generator to generate java classes.
I want the model classes to implement an external interface which has not been generated by openapi-generator.
Is there something that can be ...
Lacerated asked 22/9, 2020 at 8:30
1
Solved
I'm trying to split a large yml into a bunch of smaller yml documents. I followed the example provided by David Garcia here, and then using OpenAPI CodeGenerator to generate my models. OpenAPI Gene...
Fairlie asked 20/6, 2022 at 20:1
2
everyone.
I use strategy "Design first". I describe specification.
One of the methods accepts HttpServletResponse as paramether.
But i don't know ho to describe it correctly in my .yaml-f...
Doley asked 4/4, 2022 at 13:52
1
Solved
I've described a param within an OpenAPI 3 spec as
review_requests:
get:
tags:
- dashboard
operationId: reviewRequests
parameters:
- name: page
in: query
default: 0
description: Page numbe...
Champerty asked 30/5, 2022 at 11:33
0
I want to build a Maven module using the openapi-generator-maven-plugin to generate both server code and client code from two openapi 3 specs. I want the server code to use Spring boot, so I have t...
Fiertz asked 30/5, 2022 at 3:5
1
I am using openapi generator (5.4.0) with gradle(7.3.3) and SpringBoot (2.6.6).
my OpenApi configuration:
ext.openApiConfigOptions = [
library : "spring-boot",
dateLibrary : "java...
Negress asked 24/5, 2022 at 11:46
© 2022 - 2024 — McMap. All rights reserved.