smithy-lang / smithy-kotlin

Smithy code generator for Kotlin (in development)
Apache License 2.0
79 stars 26 forks source link

fix(codegen): resource operations not generating paginators or waiters #1055

Closed aajtodd closed 6 months ago

aajtodd commented 6 months ago

Issue \

Description of changes

Operations with the paginated trait or waiter trait that come from resources are not considered as part of the integration enable checks. In general we should almost never be iterating model.operationShapes directly. Especially since a "model" can technically contain multiple services and we always want to be working with some defined service shape closure.

$version: "2"
namespace example.weather

service Weather {
    version: "2006-03-01"
    resources: [City]
    operations: [GetCurrentTime]
}

resource City {
    identifiers: { cityId: CityId }
    read: GetCity
    list: ListCities
}

@paginated(...)
operation ListCities { ... }

...

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.