swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.88k stars 6.03k forks source link

legal issues of editing the generated stub code and opensource that generated code #9115

Open ranjitkumar2k10 opened 5 years ago

ranjitkumar2k10 commented 5 years ago
Description

We are working for an organization and as an organization we are planning to opensource a project which is using openAPI2.0 and 3.0 specifications.

we are planning to generate the stub server and client code using swagger code-gen on top of generated code we may need edit the generated code like example model files, router file (or) main file (or) api_default files etc.. according to our business need/logic .

if we edit any of those files we need to change the file header to our organization property and will opensource those files also.

will there be any legal issue from swagger code-gen?

Swagger-codegen version

any latest version

Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
webron commented 5 years ago

Please look at the information provided at - https://github.com/swagger-api/swagger-codegen#license-information-on-generated-code. In short, you can use the generated code as you wish, change it as you wish, license it as you wish, you do not have to open source it. Hope this helps.