Open
Description
When all types are inline, you get consistent names for all operations:
Operations.<operationID>.Input.Path
Operations.<operationID>.Input.Query
Operations.<operationID>.Input.Headers
Operations.<operationID>.Input.Cookies
Operations.<operationID>.Input.Body
And similar for Operations.<operationID>.Output
.
When using reusable types for requestBody
, parameter
, and response
, however, these can point directly to e.g. Components.RequestBodies.Foo
, etc, which breaks the symmetry.
Consider emitting a typealias here that would make all the names predictable, e.g.
enum Operations {
enum <operationId> {
struct Input {
typealias Body = Components.RequestBodies.Foo
}
}
}