Skip to content

Commit

Permalink
Add comment to clarify request validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dscpinheiro authored Oct 16, 2020
1 parent bc65b1c commit 34ee408
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ export class ApiGatewayToSageMakerEndpoint extends Construct {
// Setup request validation
const requestValidator = this.apiGateway.addRequestValidator('request-validator', {
requestValidatorName: 'request-param-validator',

// Setting this property to true makes sure the following are validated:
// - Required request parameters in the URI
// - Query string
// - Headers
validateRequestParameters: true
});

Expand Down

0 comments on commit 34ee408

Please sign in to comment.