Skip to main content

valid-boolean-parameter-name

Overview

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

Name fields of parameters with type boolean should have a is, has or can prefix. You can specify different prefixes.

PropertyValue
EnabledNo
Maximum SeverityWarning
MessageNo prefix found for boolean parameter name.
CodeOPENAPI3APIMATICSYNTAX_L332
TypeLinting
Rule SystemSyntax
Broad CategoryOpenAPI Parameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi syntax linting apimatic boolean parameter name prefix can has is

Suggested Fixes

  • Ensure that boolean parameter name have prefix is, has or can.

For More Information