Skip to main content

pagination-result-points-to-array

Overview

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

The result field in the pagination object must be a valid JSON pointer that references an array field in the API response. Pointers targeting non-array fields are not supported and will result in an invalid pagination configuration.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe pagination result pointer must reference an array field in the response.
CodeOPENAPI3APIMATIC_L1002
TypeLinting
Rule SystemSemantic
Broad CategoryPagination
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting pagination result array response endpoint

Suggested Fixes

  • Ensure the result pointer references a field of type array in the response schema.
  • Verify the JSON pointer path resolves to the correct array field.

For More Information