From 93a57b216bdbb78cf791e3adced767e2788dc9a3 Mon Sep 17 00:00:00 2001 From: Trevor Fitzgerald Date: Sun, 26 May 2024 23:35:11 -0400 Subject: [PATCH] Update docs for new `default-non-nullable` default value in 7.x --- docs/cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index 61dda1b37..1bfd66075 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -108,11 +108,11 @@ The following flags are supported in the CLI: | `--additional-properties` | | `false` | Allow arbitrary properties for all schema objects without `additionalProperties: false` | | `--alphabetize` | | `false` | Sort types alphabetically | | `--array-length` | | `false` | Generate tuples using array `minItems` / `maxItems` | -| `--default-non-nullable` | | `false` | Treat schema objects with default values as non-nullable | +| `--default-non-nullable` | | `true` | Treat schema objects with default values as non-nullable (with the exception of parameters) | | `--properties-required-by-default` | | `false` | Treat schema objects without `required` as having all properties required. | | `--empty-objects-unknown` | | `false` | Allow arbitrary properties for schema objects with no specified properties, and no specified `additionalProperties` | | `--enum` | | `false` | Generate true [TS enums](https://www.typescriptlang.org/docs/handbook/enums.html) rather than string unions. | -| `--enum-values` | | `false` | Export enum values as arrays. | +| `--enum-values` | | `false` | Export enum values as arrays. | | `--exclude-deprecated` | | `false` | Exclude deprecated fields from types | | `--export-type` | `-t` | `false` | Export `type` instead of `interface` | | `--immutable` | | `false` | Generates immutable types (readonly properties and readonly array) |