Skip to main content

unique-case-insensitive-schema-property-name

Overview

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

A duplicate schema property name has been detected, indicating that there are multiple schema properties with the same name. Since schema property names are compared in a case-insensitive manner, it is important that each property in an schema object has a unique name.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate schema property name found, ignoring case sensitivity.
CodeOPENAPI3CODEGEN_L622
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Schemas
Products ImpactedCode Generation, Developer Experience Portal
Tagscode generation sdks openapi3 openapi semantic linting apimatic properties schema key conflict

Suggested Fixes

  • Remove duplicate property names.
  • Assign a unique name to the conflicting schema property.
  • Schema property names are compared in a case-insensitive manner to prevent issues in Code Generation.

For More Information