This rule checks whether URLs of path items are well-formed.
Well-formed URLs enhance the readability and maintainability of the API’s structure.
The paths-well-formed
rule is designed to ensure that all URLs of path items
are well-formed. This includes:
//
)/{}/
parts)None.
Good.
paths:
/users/{userId}:
get:
summary: Get a user by ID
Bad.
paths:
//users/{}/:
get:
summary: Get a user by ID
We recommend to always enable this rule.
This rule is compatible with all OpenAPI 3.x versions.