Skip to content

Commit 9b1949d

Browse files
committed
Add enum flag to 7.x docs
1 parent 49bbd72 commit 9b1949d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/cli.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,16 @@ Refer to the [Redocly docs](https://redocly.com/docs/cli/configuration/#resolve-
8989
| `--version` | | | Display this library’s version and exit |
9090
| `--output [location]` | `-o` | (stdout) | Where should the output file be saved? |
9191
| `--redoc [location]` | | | Path to a `redocly.yaml` file (see [Multiple schemas](#multiple-schemas)) |
92-
| `--immutable` | | `false` | Generates immutable types (readonly properties and readonly array) |
9392
| `--additional-properties` | | `false` | Allow arbitrary properties for all schema objects without `additionalProperties: false` |
94-
| `--empty-objects-unknown` | | `false` | Allow arbitrary properties for schema objects with no specified properties, and no specified `additionalProperties` |
93+
| `--alphabetize` | | `false` | Sort types alphabetically |
94+
| `--array-length` | | `false` | Generate tuples using array `minItems` / `maxItems` |
9595
| `--default-non-nullable` | | `false` | Treat schema objects with default values as non-nullable |
96+
| `--empty-objects-unknown` | | `false` | Allow arbitrary properties for schema objects with no specified properties, and no specified `additionalProperties` |
97+
| `--enum` | | `false` | Generate true [TS enums](https://www.typescriptlang.org/docs/handbook/enums.html) rather than string unions. |
98+
| `--exclude-deprecated` | | `false` | Exclude deprecated fields from types |
9699
| `--export-type` | `-t` | `false` | Export `type` instead of `interface` |
100+
| `--immutable` | | `false` | Generates immutable types (readonly properties and readonly array) |
97101
| `--path-params-as-types` | | `false` | Allow dynamic string lookups on the `paths` object |
98-
| `--array-length` | | `false` | Generate tuples using array `minItems` / `maxItems` |
99-
| `--alphabetize` | | `false` | Sort types alphabetically |
100-
| `--exclude-deprecated` | | `false` | Exclude deprecated fields from types |
101102

102103
### pathParamsAsTypes
103104

0 commit comments

Comments
 (0)