sync: Synced local 'docs/' with remote 'docs/cli/'

This commit is contained in:
redocly-bot
2023-10-09 16:35:49 +00:00
parent eb82725463
commit 9199b2bab7
93 changed files with 905 additions and 660 deletions

View File

@@ -1,17 +1,19 @@
---
redirectFrom:
- /docs/cli/rules/no-empty-enum-servers/
redirects:
'/docs/cli/rules/no-empty-enum-servers/':
to: '/docs/cli/rules/no-server-variables-empty-enum/'
slug: /docs/cli/rules/no-server-variables-empty-enum
---
# no-server-variables-empty-enum
Disallow server variables without enum list defined.
|OAS|Compatibility|
|---|---|
|2.0|❌|
|3.0|✅|
|3.1|✅|
| OAS | Compatibility |
| --- | ------------- |
| 2.0 | ❌ |
| 3.0 | ✅ |
| 3.1 | ✅ |
```mermaid
flowchart TD
@@ -24,6 +26,7 @@ style ServerVariables fill:#codaf9,stroke:#0044d4,stroke-width:5px
## API design principles
If you use server variables, there are generally two kinds:
- tenant-driven
- environment-driven
@@ -31,9 +34,9 @@ In the case of environment-driven variables, you may want to predefine all of th
## Configuration
|Option|Type|Description|
|---|---|---|
|severity|string|Possible values: `off`, `warn`, `error`. Default `error` (in `recommended` configuration). |
| Option | Type | Description |
| -------- | ------ | ------------------------------------------------------------------------------------------ |
| severity | string | Possible values: `off`, `warn`, `error`. Default `error` (in `recommended` configuration). |
An example configuration: