Skip to main content

no-base-schema-property-re-declaration

Overview

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

When using the allOf keyword to combine multiple schemas, each schema should define unique properties. It appears that there is a duplicate property that already exists in one of the schemas defined within the allOf array.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageProperty already exists in one of the schemas defined in allOf.
CodeOPENAPI3APIMATIC_L701
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Schemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting base schema property redeclaration discriminator

Suggested Fixes

  • Ensure that each schema within the allOf array has unique property names.
  • Remove or rename the duplicate property within the affected schema(s).

For More Information