All translations
Jump to navigation
Jump to search
Enter a message name below to show all available translations.
Found one translation.
Name | Current message text |
---|---|
h English (en) | We use the validator middleware to: # validate input is the correct type etc.. # define defaults for optional properties # strip out unexpected properties using <syntaxhighlight lang="JavaScript" inline>ajvOptions: { removeAdditional: true }</syntaxhighlight> option and <syntaxhighlight lang="JavaScript" inline>"additionalProperties: false"</syntaxhighlight> in the schema # juggle the location of properties in the request, eg for API requests the current userId will be placed in the requestContext.authorizer.principalId property, we move it to the event.userId location. After moving the userId property we also remove the requestContext property as we have no other use for it in our code. |