-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Labels
area/generatorAffects: plugin, CLI, config file.Affects: plugin, CLI, config file.area/openapiAdding/updating a feature defined in OpenAPI.Adding/updating a feature defined in OpenAPI.kind/featureNew feature.New feature.size/MMedium task. (A couple of days of work.)Medium task. (A couple of days of work.)
Milestone
Description
We should support variable expansion in the Server Object: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#server-variable-object
The generated Servers
enum already uses static methods to prepare for this:
enum Servers {
static func server1() throws -> URL
}
Supporting variables would mean generating e.g.
enum Servers {
static func server2(environment: String, foo: Int, bar: Components.Schemas.Something) throws -> URL
}
gpado-chwy and daveanderson
Metadata
Metadata
Assignees
Labels
area/generatorAffects: plugin, CLI, config file.Affects: plugin, CLI, config file.area/openapiAdding/updating a feature defined in OpenAPI.Adding/updating a feature defined in OpenAPI.kind/featureNew feature.New feature.size/MMedium task. (A couple of days of work.)Medium task. (A couple of days of work.)