Skip to main content

unique-schema-component-key

Overview

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

Each schema component must have a unique name, duplicate names are not allowed as they can lead to confusion and potential conflicts.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate schema component keys found.
CodeOPENAPI3APIMATIC_L152
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Components
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting component schema key

Suggested Fixes

  • Ensure that all schema component keys are unique.
  • If there are duplicate schema definitions in the components object, remove them.

For More Information