servers in the open api spec file is not evaluated as per https://swagger.io/docs/specification/api-host-and-base-path/. The handlebars template for the api configuration shows the default configuration rootUrl should be populated by the template context variable rootUrl but it isn't.
My use case is that the OpenApi servers spec contains a single member that has a relative basepath set as url. This should be reflected in the generated code as no manual basepath configuration should be necessary.
If you're accepting PRs on this let me know and I'm happy to contribute!
servers
in the open api spec file is not evaluated as per https://swagger.io/docs/specification/api-host-and-base-path/. The handlebars template for the api configuration shows the default configurationrootUrl
should be populated by the template context variablerootUrl
but it isn't.My use case is that the OpenApi
servers
spec contains a single member that has a relative basepath set as url. This should be reflected in the generated code as no manual basepath configuration should be necessary.If you're accepting PRs on this let me know and I'm happy to contribute!