Skip to content

[Swift4] OpenAPI V3.0 - Server Tags convert into injectable objects? #6802

@inforeqd512

Description

@inforeqd512
Description

This may be an enhancement request for when you have a capability to codegen v3.0 of the Swagger specs.

In V3.0 there is a servers tag where we can specify multiple servers eg production, staging, development. If these can be converted into injectable objects, then we can use it to instantiate requests to appropriate base paths depending on the destination.

Currently, the Open API specs just gives a URL and a description tags for each of the server. Neither can be used to create a name for the object. So may need to work with OpenAPi to add a 'name' tag? Or if you can come up with another way?

Swagger-codegen version

NA

Swagger declaration file content or url

NA

Command line used for generation

NA

Steps to reproduce

NA

Related issues/PRs

NA

Suggest a fix/enhancement

NA

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions