Skip to main content

object-schema-boundaries-defined

Overview

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

Schemas of type object must define the boundaries of the schema i.e. the maximum number of properties and the minimum number of properties.

PropertyValue
EnabledNo
Maximum SeverityWarning
MessageSchema boundaries are missing.
CodeOPENAPI3APIMATIC_L682
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Schemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting minimum properties maximum properties schema

Suggested Fixes

  • Check the schema definition to confirm if the minimum and maximum number of properties are defined for the schema.
  • If either the minimum or maximum number of properties is missing, add the missing property to the schema definition.
  • Make sure that the minimum and maximum number of properties are specified with appropriate data types (integer) and have non-negative values.

For More Information