Validate that x-security has all required values described according to the used scheme.
| Arazzo | Compatibility |
|---|---|
| 1.x | ✅ |
This is a Respect specific rule. Different OpenAPI securitySchemes have some required values, like token or username.
| Option | Type | Description |
|---|---|---|
| severity | string | Possible values: off, warn, error. Default: off. |
An example configuration:
arazzoRules:
x-security-schema-required-values: errorGiven the following configuration:
arazzoRules:
x-security-schema-required-values: errorExample of an entry:
- stepId: step-without-openapi-operation-and-security-scheme-name
x-operation:
method: GET
url: 'https://api.example.com/v1/users'
x-security:
- scheme:
type: http
scheme: basic
values:
username: test@example.com
password: 123456