Skip to main content

cursor-input-cursor-output-types-should-match

Overview

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

The input and output fields in a cursor-based pagination object must have matching schema types. For example, if the input field is of type string, the output field must also be of type string.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe schema types for cursor input and output fields do not match.
CodeOPENAPI3APIMATIC_L1007
TypeLinting
Rule SystemSemantic
Broad CategoryPagination
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting pagination input output type response endpoint

Suggested Fixes

  • Ensure the schema types of cursor input and output fields match.
  • If the input cursor is of type string, the output cursor must also be of type string.

For More Information