Skip to main content

non-empty-pagination-next

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

The next field in a link-based pagination object must be a valid, non-empty JSON pointer string. It should reference a field in the API response that provides the URL to the next page of results.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe next pointer in the link pagination object is missing or empty.
CodeOPENAPI3APIMATIC_L1008
TypeLinting
Rule SystemSemantic
Broad CategoryPagination
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting pagination next link response endpoint

Suggested Fixes

  • Provide a valid, non-empty JSON pointer in the next field.
  • The pointer should reference a response field that contains the URL to the next page.

For More Information