OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.44k stars 6.48k forks source link

[Ruby] Add Flag to Allow Ignoring Operation Servers #18934

Closed ckoegel closed 3 months ago

ckoegel commented 3 months ago

This change adds a flag to the configuration object to allow for ignoring operation servers. Currently, if operation level server objects are defined, there is no way to ignore these or use a different base path at the SDK level, which many other languages support. The new ignore_operation_servers flag allows the user to ignore any operation servers defined and instead use the currently defined scheme, host, and base_path. This will default to the top level base path defined in the OpenAPI file, but can be configured to be any url using the aforementioned config attributes.

PR checklist

@cliffano (2017/07) @zlx (2017/09) @autopp (2019/02)

wing328 commented 3 months ago

lgtm. let's give it a try

thanks for the PR