-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Support variable path components with a constant prefix/suffix.
For example, today we don't correctly bootstrap a server to handle GET /{version}.zip, because the RouterPathComponent (https://github.com/apple/swift-openapi-runtime/blob/cd8104a3e9ab07e0a0e077371ac4b785e41d2b5a/Sources/OpenAPIRuntime/Interface/CurrencyTypes.swift#L255) only has two cases: constant or parameter.
But to support a path like /{version}.zip or /foo-{bar} or /foo-{bar}-baz, we need a more flexible currency type for the path component.
This is blocking correctly generating a server for the Swift Package Registry API: https://github.com/apple/swift-package-manager/blob/main/Documentation/Registry.md#appendix-a---openapi-document