unique-path
Overview
This rule belongs to the openapi-v3-standards-validation
ruleset and states that:
Path keys are patterned fields that must have unique values within the Paths Object.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate path entry found. |
Code | OPENAPI3STANDARDS_V035 |
Type | Validation |
Rule System | Semantic |
Broad Category | Paths |
Products Impacted | API Transformer |
Tags | openapi3 openapi standards semantic validation paths path |
Suggested Fixes
- Remove duplicate path entries from the Paths Object.
- Path value is compared in a case-sensitive manner.
For More Information
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#paths-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#patterned-fields
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#format
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#paths-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#patterned-fields
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#format
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/