Skip to main content

array-schema-boundaries-defined

Overview

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

In OpenAPI specifications, array boundaries should be defined for schemas that include array data types.

PropertyValue
EnabledNo
Maximum SeverityWarning
MessageArray boundaries are not defined.
CodeOPENAPI3APIMATIC_L689
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Schemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting array boundaries minItems maxItems schema

Suggested Fixes

  • Check if the OpenAPI schema with an array data type has undefined boundaries.
  • If any schema with an array data type has undefined boundaries, define the boundaries for the schema. The boundaries include the minimum and maximum number of items that can be included in the array (i.e. minItems, maxItems).

For More Information