Skip to content

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

@frengooo

Description

@frengooo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions