Skip to content

Commit 2793049

Browse files
authored
fix: --properties-required-by-default flag (#1764)
* fix: --properties-required-by-default flag * chore: add changeset * test: --properties-required-by-default flag * style: lint cli.style.ts
1 parent 285b097 commit 2793049

File tree

4 files changed

+116197
-1
lines changed

4 files changed

+116197
-1
lines changed

.changeset/eight-pants-attack.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openapi-typescript": patch
3+
---
4+
5+
Fix --properties-required-by-default flag not working

packages/openapi-typescript/bin/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async function generateSchema(schema, { redocly, silent = false }) {
120120
alphabetize: flags.alphabetize,
121121
arrayLength: flags.arrayLength,
122122
contentNever: flags.contentNever,
123-
propertiesRequired: flags.propertiesRequired,
123+
propertiesRequiredByDefault: flags.propertiesRequiredByDefault,
124124
defaultNonNullable: flags.defaultNonNullable,
125125
emptyObjectsUnknown: flags.emptyObjectsUnknown,
126126
enum: flags.enum,

0 commit comments

Comments
 (0)