Skip to content

Commit

Permalink
Merge pull request #6231 from DASPRiD/bugfix/request-model-api-gatewa…
Browse files Browse the repository at this point in the history
…y-reference

Reference custom ApiGateway for models and request validators if conf…
  • Loading branch information
pmuens committed Jun 17, 2019
2 parents aedfbf2 + c5f4f1a commit ca830fd
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -84,19 +84,15 @@ module.exports = {
[modelLogicalId]: {
Type: 'AWS::ApiGateway::Model',
Properties: {
RestApiId: {
Ref: this.provider.naming.getRestApiLogicalId(),
},
RestApiId: this.provider.getApiGatewayRestApiId(),
ContentType: contentType,
Schema: schema,
},
},
[validatorLogicalId]: {
Type: 'AWS::ApiGateway::RequestValidator',
Properties: {
RestApiId: {
Ref: this.provider.naming.getRestApiLogicalId(),
},
RestApiId: this.provider.getApiGatewayRestApiId(),
ValidateRequestBody: true,
ValidateRequestParameters: true,
},
Expand Down

0 comments on commit ca830fd

Please sign in to comment.