Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:10
    kkliebersbach commented #9822
  • 01:02
    kkliebersbach edited #9822
  • Jun 22 23:39
    cyrusv edited #9792
  • Jun 22 23:38
    cyrusv edited #9792
  • Jun 22 23:36
    cyrusv edited #9820
  • Jun 22 23:02
    cyrusv converted_to_draft #9820
  • Jun 22 22:53
    mgajda commented #9830
  • Jun 22 22:49
    mgajda edited #9829
  • Jun 22 22:48
    mgajda edited #9829
  • Jun 22 22:48
    mgajda edited #9829
  • Jun 22 22:48
    mgajda edited #9829
  • Jun 22 22:23
    johnboyes edited #9831
  • Jun 22 22:15
    johnboyes labeled #9831
  • Jun 22 22:15
    johnboyes opened #9831
  • Jun 22 22:02
    cyrusv edited #9820
  • Jun 22 22:02
    cyrusv synchronize #9820
  • Jun 22 22:00
    cyrusv edited #9820
  • Jun 22 22:00
    cyrusv edited #9820
  • Jun 22 22:00
    cyrusv edited #9820
  • Jun 22 21:58
    cyrusv edited #9820
Nate Bross
@fuzzzerd
I'm struggling to find documentation on how to use my own template for openapi generator. I want to make some local modifications to the typescript-fetch client that wouldn't be appropriate for everyone so don't belong as a PR to the main repo. I'd like to keep my own locally. Is that possible?
Jérémie Bresson
@jmini
Yes
If you are only modifying the templates working with -tto specify a directory where templates files are (or its equivalent in maven/gradle plugin) can be sufficent
Jérémie Bresson
@jmini
If this is something you would like to distribute, you can embed your modified templates into a jar that you add to OpenAPI-Generator when using it.
Nate Bross
@fuzzzerd
@jmini thank you. I found the .jar thing and was confused as to why I had to do all those steps. I'll review the -t option.
William Cheng
@wing328
@fuzzzerd Please ask the questions in the Slack workspace instead: https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM as this chatroom is scheduled to be removed later this year.
Paul DeMarco
@pauldemarco
yikes, so do i use swagger-codegen or openapi codegen?
I'm looking to add a Dart generator using auto_data
William Cheng
@wing328
@pauldemarco please join the discussion in OpenAPITools/openapi-generator#3785
@/all Hi all, we've collected some feedback from the community and would like to announce we're switching the chatroom from Gitter.im to Slack. Please join our Slack channel via https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM and we'll only answer questions in the Slack channels moving forward. We'll keep this Gitter chatroom for a few months and remove it when there's no activity. Thank you.
André Dietrich
@an_dietrich_twitter
hi folks, i just started to work with the openapi-generator ... how can i generate code with securitySchemes, I mean, how can I add the key from the commandline?
William Cheng
@wing328
Varg Industries
@vargind_twitter
Is there any way to configure the generator with a maximum line length so that it doesn't generate really long lines?
William Cheng
@wing328
Dominik
@dominik0711
Hi. We still use python2 in our legacy environment. Is it possible to generate openAPI code through openapi-generator-cli for python version 2.7?
William Cheng
@wing328
Christoph, René Pardon
@renepardon
is there a way to generate an open api spec from a rest api just by calling all the endpoints through a script? ;D
problem is: its a huge api and documenting all endpoints manually would consume a lot of time
Stefan Dresselhaus
@Drezil
@renepardon Some APIs are self-documenting via https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS ;)
Guschtel
@Guschtel
@renepardon activate swagger in your services -> convert the ouput of the swagger definition to openapi
William Cheng
@wing328
nbenjamin
@nbenjamin

Hi All,

I have a question on OpenAPI generator for spring, currently i have base class and number of subclass
so would like generate the code something like this

public ResponseEntity<T extnds Base> methodName()

When i used oneOf its generates
public ResponseEntity<Object> methodName()

Is there anyway to generate public ResponseEntity<T extnds Base> methodName() in this format

Fjolnir-Dvorak
@Fjolnir-Dvorak

Please join our Slack channel via https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM and we'll only answer questions in the Slack channels moving forward.

@nbenjamin This gitter is no longer active and maintained. It's only here for the purpose of redirecting people to slack

nbenjamin
@nbenjamin
Thank you @Fjolnir-Dvorak
Geoff Brown
@gbrown-ce

So I'm running into some issues with an OpenAPI 3 spec and the CSharp generator. If I have query parameters that are optional, they always generate to non-optional on the api client:

ie.{ "name": "categoryId", "in": "query", "schema": { "type": "integer", "format": "int64" } }

comes out as long categoryId = default(long)

I tried messing with the template, but I can't figure out how to make it distinguish the difference. I'm starting to think that the actual code is incorrect and the dataType here should be long? instead of long, which would make things work properly. Anyone know where I would look for that? Is there something else in the template I could be doing?

Stefan Dresselhaus
@Drezil

Please join our Slack channel via https://join.slack.com/t/openapi-generator/shared_invite/enQtNzAyNDMyOTU0OTE1LTY5ZDBiNDI5NzI5ZjQ1Y2E5OWVjMjZkYzY1ZGM2MWQ4YWFjMzcyNDY5MGI4NjQxNDBiMTlmZTc5NjY2ZTQ5MGM and we'll only answer questions in the Slack channels moving forward.

@gbrown-ce This gitter is no longer active and maintained. It's only here for the purpose of redirecting people to slack

but to answer your question: try required: true/false to denote optional fields
(i don't use C#, but in Haskell you have to make everything required, otherwise it will always be optional)
Geoff Brown
@gbrown-ce
This is working the opposite way (everything is required). I think I might have found a way with the netcore generator. Thanks for the heads up about the slack!
Algorithman
@Algorithman
i have a kinda general question: the openapi-generator to c# is working, right? There are no breaking issues at the moment?
John Kida
@jkida
Im using openapi-generator for a java/spring project. Its currently generating the server stub with a query param of Map<String, Object> however i need it to generate as a MultiValueMap to support ?id=1&id=2.
What is the correct approach to make sure it generates the stub with the correct class to support this?
mplain
@mplain
hello there
i have an openapi specification split into multiple yaml and json files
swagger-parser-v3 can resolve all reference and combine it into a single model - in memory
now, can I somehow write that model into a new yaml file?
is there some tool that can be used to merge multiple openapi spec files into one?
1pinus
@1pinus
I just had a brief look into the code generator if it is feasible to integrate it into an API first development process. It does its job to generate a stub but I wonder if anybody integrated it into an automated build. My idea was to edit the yaml file and get the server generated, to a certain degree, e.g. controller level. Has anybody experience with such a setup. Currently it looks like a one shot generator.
Stefan Dresselhaus
@Drezil
@1pinus we use the haskell & python-generator for such things.
1pinus
@1pinus
@Drezil How do you merge the generated code with the already available? Copy files?
Stefan Dresselhaus
@Drezil
generated code is in a seperate git-submodule. Git pull then does the trick.
@1pinus
and you never need to merge as generated code never gets touched by hand
William Cheng
@wing328
monajit
@monajit
Is there a way to modify the generated Avro Schema ? Basically any data attribute defined with format: date-time should be tagged with a logical type
Philippe Soares
@psoares
Hi ! I'm trying to generate a java client from https://api.twitter.com/2/openapi.json, but the generator creates an interface with an invalid name "2Api.java". Is there a way to set a prefix to the interface name the same way we add prefixes to the model classes?
Jonas Jermann
@jjermann
hi, I have this issue: OpenAPITools/openapi-generator#2892
Is anyone familiar how I can force "separate" schema definitions for everything (which seems to be a temporary fix for the above bug)? I use swashbuckle for the opnapi.json generation.
Khairi Husseini
@khusseini
hey everyone. does anyone know how I implement the generated client for typescript-rxjs? I used the typescript generator first in my redux application, however since the models are declared as classes this didn't really work nicely together with the redux store. I never used rxjs and I cannot find any documentation on how to use the client.
ityulkanov
@ityulkanov
Hello everyone. I'm looking for tool that can generate api docs directly from source code, does anyone know if openapi-generator allows to do that?