Skip to main content

non-identical-templated-paths

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

When matching URLs, concrete (non-templated) paths are matched before their templated counterparts. Templated paths with the same hierarchy but different templated names must not exist as they are considered identical.

PropertyValue
EnabledYes
Maximum SeverityError
MessageAn identical templated path already exists.
CodeOPENAPI3STANDARDS_V037
TypeValidation
Rule SystemSemantic
Broad CategoryPaths
Products ImpactedAPI Transformer
Tagsopenapi3 openapi standards semantic validation template paths path

Suggested Fixes

  • Paths like '/pets/{petId}' and '/pets/{name}' are considered identical i.e. the difference in variable name alone does not make the path unique.
  • Remove entries of identical paths to avoid this issue.

For More Information