Skip to main content

valid-apimatic-extension-property-type

Overview

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

Type of an APIMatic specific extension property must be in accordance with the type expected for that property.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageAPIMatic Extension property type does not conform to the expected property type.
CodeOPENAPI3CODEGENSYNTAX_L900
TypeLinting
Rule SystemSyntax
Broad CategoryMiscellaneous
Products ImpactedCode Generation, Developer Experience Portal
Tagscode generation sdks openapi3 openapi syntax linting apimatic type extension property

Suggested Fixes

  • If an array is expected, ensure that your value is surrounded by square brackets [ and ].
  • If an array is not expected, ensure that your value contains a single item only and is not surrounded by square brackets [ and ].
  • If a numeric value is expected, ensure that your value is a valid number and it is not surrounded by single or double quotes.
  • If a string value is expected, ensure that it is escaped properly and surrounded by quotes if necessary.
  • If an object is expected, ensure that your value is a key-value map.

For More Information