Skip to content

Commit 05760c5

Browse files
fix: map 204 to 200
1 parent f5c9ce3 commit 05760c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/package/s3/compileMethodsToS3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = {
158158
},
159159
{
160160
StatusCode: 200,
161-
SelectionPattern: '200',
161+
SelectionPattern: '2\\d{2}',
162162
ResponseParameters: responseParams,
163163
ResponseTemplates: {}
164164
}

lib/package/s3/compileMethodsToS3.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const template = {
3838
},
3939
{
4040
StatusCode: 200,
41-
SelectionPattern: '200',
41+
SelectionPattern: '2\\d{2}',
4242
ResponseParameters: {},
4343
ResponseTemplates: {}
4444
}
@@ -121,7 +121,7 @@ describe('#compileMethodsToS3()', () => {
121121
},
122122
{
123123
StatusCode: 200,
124-
SelectionPattern: '200',
124+
SelectionPattern: '2\\d{2}',
125125
ResponseParameters: intResponseParams,
126126
ResponseTemplates: {}
127127
}
@@ -427,7 +427,7 @@ describe('#compileMethodsToS3()', () => {
427427
},
428428
{
429429
StatusCode: 200,
430-
SelectionPattern: '200',
430+
SelectionPattern: '2\\d{2}',
431431
ResponseParameters: {
432432
'method.response.header.Content-Type': 'integration.response.header.Content-Type',
433433
'method.response.header.Content-Length':

0 commit comments

Comments
 (0)