Skip to main content

link-pagination-next-must-be-string

Overview

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

In link-based pagination, the next field must be a string containing the URL to the next page of results. Any other type is considered invalid.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe next field in link-based pagination must be of type string.
CodeOPENAPI3APIMATIC_L1009
TypeLinting
Rule SystemSemantic
Broad CategoryPagination
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting pagination next link response endpoint

Suggested Fixes

  • Ensure the next field references a property of type string.
  • The field must contain a URL string pointing to the next page of results.

For More Information