Requires all path template variables are defined as path parameters.
| OAS | Compatibility |
|---|---|
| 2.0 | ✅ |
| 3.0 | ✅ |
| 3.1 | ✅ |
| 3.2 | ✅ |
You declared them? Now define them. This rule verifies the path parameters are defined.
| Option | Type | Description |
|---|---|---|
| severity | string | Possible values: off, warn, error. Default error (in recommended configuration). |
An example configuration:
rules:
path-parameters-defined: errorGiven this configuration:
rules:
path-parameters-defined: errorExample of an incorrect path:
paths:
/customers/{id}:
post:
parameters:
- name: filter
in: queryExample of a correct path:
paths:
/customers/{id}:
post:
parameters:
- name: id
in: path
required: true
description: The customer's ID.