Pagination
Configured pagination schemes and the methods that bind to them.
| Rule | Default | Summary |
|---|---|---|
Pagination/AmbiguousMarker |
warn |
A document pagination marker matches more than one configured scheme. |
Pagination/UnknownScheme |
error |
A method references a pagination scheme that does not exist. |
Pagination/UnusedScheme |
warn |
A configured pagination scheme is never bound to any method. |
Pagination/AmbiguousMarker
A document pagination marker matches more than one configured scheme.
| Default severity | Fix lives in |
|---|---|
warn |
Your SDK configuration (config) |
When it fires
The document's pagination markers on an operation match more than one configured scheme of the same type. The compiler refuses to guess, so the method stays unpaginated. Set paginated explicitly to resolve it.
Changing or silencing it
Each finding's suppression key is the endpoint.
Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:
{
"diagnostics": {
"rules": {
"Pagination/AmbiguousMarker": "info"
},
"ignored": {
"Pagination/AmbiguousMarker": "<suppression key>"
}
}
}
Pagination/UnknownScheme
A method references a pagination scheme that does not exist.
| Default severity | Fix lives in |
|---|---|
error |
Your SDK configuration (config) |
When it fires
A method's paginated names a scheme that is not defined in pagination. That method degrades to unpaginated.
Changing or silencing it
Each finding's suppression key is the endpoint.
Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:
{
"diagnostics": {
"rules": {
"Pagination/UnknownScheme": "warn"
},
"ignored": {
"Pagination/UnknownScheme": "<suppression key>"
}
}
}
Pagination/UnusedScheme
A configured pagination scheme is never bound to any method.
| Default severity | Fix lives in |
|---|---|
warn |
Your SDK configuration (config) |
When it fires
A configured pagination scheme is bound to no method. Dead configuration, and usually the remains of a renamed or removed paginated reference.
Changing or silencing it
Each finding's suppression key is the scheme name.
Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:
{
"diagnostics": {
"rules": {
"Pagination/UnusedScheme": "info"
},
"ignored": {
"Pagination/UnusedScheme": "<suppression key>"
}
}
}
See also
- Diagnostics: how findings are graded, located and suppressed
- Severity and failing the build
- Suppressing a finding
What did you think of this content?