Skip to content

Commit

Permalink
fix: --properties-required-by-default flag (#1764)
Browse files Browse the repository at this point in the history
* fix: --properties-required-by-default flag

* chore: add changeset

* test: --properties-required-by-default flag

* style: lint cli.style.ts
  • Loading branch information
michalfedyna authored Jul 17, 2024
1 parent 285b097 commit 2793049
Show file tree
Hide file tree
Showing 4 changed files with 116,197 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eight-pants-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"openapi-typescript": patch
---

Fix --properties-required-by-default flag not working
2 changes: 1 addition & 1 deletion packages/openapi-typescript/bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function generateSchema(schema, { redocly, silent = false }) {
alphabetize: flags.alphabetize,
arrayLength: flags.arrayLength,
contentNever: flags.contentNever,
propertiesRequired: flags.propertiesRequired,
propertiesRequiredByDefault: flags.propertiesRequiredByDefault,
defaultNonNullable: flags.defaultNonNullable,
emptyObjectsUnknown: flags.emptyObjectsUnknown,
enum: flags.enum,
Expand Down
Loading

0 comments on commit 2793049

Please sign in to comment.