You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! My understanding is that, if a service has the @paginated trait and none of its operations do, it's as if all the operations got the same @paginated trait:
Attaching the paginated trait to a service provides default pagination configuration settings to all operations bound within the closure of the service.
However, the PaginatedTraitValidator class doesn't seem to look at services at all, unless the operation is already annotated with @paginated.
Is there some transformation I'm missing (which would copy the trait to all of the service's operations)? Am I misunderstanding the spec? Or is the implementation incorrect?
I thought it would fail because of the missing test members in the operation's input and output, but it doesn't. It does break if you move the trait to the operation though.
The text was updated successfully, but these errors were encountered:
Default pagination configuration from a service is only passed down to operations that are also marked with the @paginated trait. If the behavior applied without the operation-level trait, it would be impossible to have default pagination configuration on a service and bind non-paginated operations to it.
We should probably update that line of text to include that the operation must be @paginated as well for configuration to apply.
Hi! My understanding is that, if a service has the
@paginated
trait and none of its operations do, it's as if all the operations got the same@paginated
trait:However, the PaginatedTraitValidator class doesn't seem to look at services at all, unless the operation is already annotated with
@paginated
.Is there some transformation I'm missing (which would copy the trait to all of the service's operations)? Am I misunderstanding the spec? Or is the implementation incorrect?
Example (using scala-cli):
I thought it would fail because of the missing
test
members in the operation's input and output, but it doesn't. It does break if you move the trait to the operation though.The text was updated successfully, but these errors were encountered: