Skip to main content

valid-pagination-json-pointer

Overview

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

The JSON pointer must reference a valid location within the request or response. Examples of valid pointers include: $response.body, $response.body#/data/prop, and $request.query#/offset.

PropertyValue
EnabledYes
Maximum SeverityError
MessageInvalid JSON pointer provided.
CodeOPENAPI3APIMATIC_L1003
TypeLinting
Rule SystemSemantic
Broad CategoryPagination
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting pagination pointer response endpoint

Suggested Fixes

  • Ensure the JSON pointer follows a valid format such as $response.body#/path/to/field or $request.query#/paramName.
  • Verify that the pointer references a valid location within the request or response.

For More Information