oas-kit icon indicating copy to clipboard operation
oas-kit copied to clipboard

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

Open silversoul93 opened this issue 1 year ago • 2 comments

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 avatar May 25 '23 16:05 silversoul93

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.

silversoul93 avatar Jun 07 '23 09:06 silversoul93

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

MikeRalphson avatar Oct 02 '23 05:10 MikeRalphson