Skip to content

Commit

Permalink
šŸ› Update generateVariable extraction to use nullish instead of optionā€¦
Browse files Browse the repository at this point in the history
ā€¦al to not throw on null values
  • Loading branch information
baptisteArno committed Nov 6, 2024
1 parent 954151e commit 345bfac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const convertVariablesToExtractToSchema = ({
}
}
if (variableToExtract.isRequired === false)
shape[matchingVariable.name] = shape[matchingVariable.name]!.optional();
shape[matchingVariable.name] = shape[matchingVariable.name]!.nullish();

if (isNotEmpty(variableToExtract.description))
shape[matchingVariable.name] = shape[matchingVariable.name]!.describe(
Expand Down

0 comments on commit 345bfac

Please sign in to comment.