Skip to content

Commit

Permalink
fix: param has value if its from type boolee
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofeliponi committed Jul 12, 2024
1 parent 69e6f2a commit db5ea47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lambda/lambdaGetParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const extractParams = (docfy: Docfy, parameter: string, evt: APIGatewayEvent) =>
const param = get(evt, `${parameter}.${key}`) ?? value.default

const hasParamValue = params[identity]
const hasValue = param && param !== 'undefined'
const hasValue = (param && param !== 'undefined') || typeof param === 'boolean'
const isRequired = value.required ?? parameter === 'pathParameters'

if (isRequired && !hasValue && !hasParamValue) {
Expand Down

0 comments on commit db5ea47

Please sign in to comment.