Skip to content

Commit

Permalink
docs: fix type docgen required field flag (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Nov 13, 2024
1 parent 0dcd9cf commit 49cca10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/scripts/generate-docs.mts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ function getPropertiesFromType(type: any) {
type: cleanType,
};

if (!required) {
param.required = false;
if (required) {
param.required = true;
}

if (description) {
Expand Down

0 comments on commit 49cca10

Please sign in to comment.