openapi-generator Questions
2
Basically all my DTOs are generated with nullable fields like: id?: number;. How can I create non-nullable types for types which are not flagged as nullable.
My DTO schema looks like this:
"U...
Disk asked 8/10, 2020 at 12:22
1
I am using openapi generator (5.4.0) with gradle.
It is configured with spring generator name, and added lombok configOptions.
additionalModelTypeAnnotations : "@lombok.Builder; @lombok.NoArgs...
Valais asked 20/5, 2022 at 15:12
2
Can I generate immutable models with open api generator without changing the mustache templates? My first thought was that the generator could be configured to generate Java records but I can't fin...
Proteose asked 14/6, 2023 at 9:50
1
I have a FlatDTO that needs to be mapped to a nested Response containing InfoData and MetaData
The code for the response is generated by OpenAPI. So the below definitions can't be changed.
package ...
Bloxberg asked 21/11, 2022 at 5:36
5
Solved
I have am using openapi-generator-gradle-plugin:4.3.0 to generate the api and models from a openApi-generate.yaml file. I have set skipDefaultInterface: "true" in configOptions, the defau...
Newness asked 9/12, 2021 at 14:0
3
We have a Swagger.json output by using AddOpenApiDocument (see below).
A snippet from the swagger as below shows it returns a 200 response type of application/json. The schema part (which I am not ...
Resistant asked 25/4, 2021 at 14:48
1
Is it possible to describe a HATEOAS REST API with OpenAPI?
When I describe the API in HAL Format I would need to define three schemas for it (one for Request Payloads, one for Collection Resource ...
Pozzy asked 26/11, 2020 at 18:56
4
I've managed to generate the interfaces from a .yaml open-api descriptor file, but, as in the question title, I'd love to change the response type of those interfaces from ResponseEntity to my own ...
Relational asked 28/4, 2020 at 8:59
2
Solved
I use OpenAPI spec to generate Java POJOs. What do I need to specify in Open API yaml to generate the equivalent of below POJO ?
...
@JsonIgnore
public String ignoredProperty;
...
I have the yaml ...
Kelsy asked 18/11, 2020 at 17:44
1
Let's assume I have this definition in my openapi.yml (this is just a madeup example to depict the issue I have):
components:
schemas:
Address:
type: object
properties:
name:
type: string
zi...
Bharal asked 4/10, 2021 at 19:41
5
I'm converting a swagger file into an open API v3 one using the openapi-yaml generator with Maven.
What I would like to do is to put the new file directly into some directory.
However some addi...
Bald asked 12/8, 2019 at 16:7
4
Solved
I spend some time going over this error but had no success.
File "C:\Users\ebara.conda\envs\asci\lib\site-packages\fastapi\openapi\utils.py", line 388, in get_openapi
flat_models=flat_mo...
Christinchristina asked 7/12, 2021 at 8:46
2
Solved
I've got an ASP.NET Core 5 Web API that uses Swagger to generate an OpenAPI3 json file. Using Visual Studo 2019 (16.8.2) on my Blazor WASM client, I've added a Service Reference to that json file.
...
Verily asked 25/11, 2020 at 17:13
2
I have a request body for an API specification in Swagger V2.0, which looks like follows.
"/uri/path":
...
parameters:
- in: body
...
schema:
$ref: '#/definitions/StatusObject'
def...
Viglione asked 26/7, 2021 at 18:30
2
I have a Spring Boot Application and I use openapi-generator-maven-plugin for generating rest client. I want to have a option to change url during runtime.
The url of the rest server is now hardcod...
Quadruplex asked 25/11, 2020 at 13:51
1
Solved
I have the similar problem as this post, however whenever I try to add my type mappings to my openApiGenerate task I'm met with the following error:
build.gradle': 49: Unexpected input: '{' @ line ...
Yellowhammer asked 19/7, 2023 at 11:25
2
Im using OpenApi Generator to create services and models for my angular project.
This is an example of my Json:
"uploadDate" : {
"type" : "string",
"description...
Johm asked 21/10, 2020 at 8:32
3
Solved
I'm digging here around trying to find a solution, how to merge several OpenApi v3 component definitions in one file.
Let's imagine a situation:
You decided to split your OpenApi into multiple f...
Declination asked 17/4, 2020 at 1:9
4
Currently I am developing an application using quarkus. I have an openapi yaml file that describes everything. I wanted to know if there are quarkus extensions or tool with which I can generate the...
Pisgah asked 21/5, 2021 at 7:21
3
I've found https://github.com/metadevpro/openapi3-ts/blob/master/src/model/OpenApi.ts which is a version of Typescript definitions for OpenAPI 3.x, but I'm failing to find an official (aka Definite...
Acclivity asked 11/9, 2018 at 19:14
3
Solved
I've recently upgraded my project to use spring-boot 3.0.0. So I don't have javax.* modules in the project anymore. But the Open API generator keeps trying to import javax modules. Especially, it u...
Remind asked 27/11, 2022 at 20:17
3
Solved
Is there a generator to convert OpenAPI 3.0 to Swagger 2.0?
Mashery, an API gateway, requires Swagger 2.0 format on input to open endpoint.
Inanna asked 17/6, 2019 at 18:55
2
Solved
When i generate code for Spring from my swagger yaml , usually controller layer is generated using delegate pattern , such that for a single model three files are generated . For example , if i def...
Raman asked 20/2, 2021 at 17:41
9
Solved
I am implementing the petstore API with openAPI in a (gradle) spring boot project. I generate a server with the openapi generator plugin and implement a simple request:
@Service
@RestController
pub...
Reckon asked 10/9, 2020 at 15:28
1
I want to generate our models based on an Openapi spec 3.0 yml definition. In my spec I have a definition using allOf to include the fields of the other components. When generating the models with ...
Delete asked 26/9, 2022 at 11:40
1 Next >
© 2022 - 2024 — McMap. All rights reserved.