Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[swagger2openapi][components] Add a prefix to generated components #646

Open
silversoul93 opened this issue May 25, 2023 · 2 comments
Open

Comments

@silversoul93
Copy link

Detailed Description

During the conversion of a swagger file to oas using swagger2openapi with Node.JS, the algorithm creates the components object.
Is there the possibility to add a prefix to components?

Now the result is:

{
  "components": {
    "requestBodies": {
      "Body": ...
      "Body2": ...
    }
  }
}

Is there the possibility to add a prefix to Body, Body2 and other components?

Thanks.

@silversoul93
Copy link
Author

Hi, do you have some news about this request?
@MikeRalphson I can open a PR too to support this functionality if it's not supported and if you agree.

@MikeRalphson
Copy link
Contributor

If you're still interested, can you tell me why you need this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants