Skip to content

Commit e18439c

Browse files
author
Diana Ionita
committed
Merge branch 'release/1.7.5'
2 parents c3135b8 + 5ecdd53 commit e18439c

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-api-gateway-caching",
3-
"version": "1.7.4",
3+
"version": "1.7.5",
44
"description": "A plugin for the serverless framework which helps with configuring caching for API Gateway endpoints.",
55
"main": "src/apiGatewayCachingPlugin.js",
66
"scripts": {

src/apiGatewayCachingPlugin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ class ApiGatewayCachingPlugin {
7373
type: 'object',
7474
properties: {
7575
caching: {
76+
type: 'object',
7677
properties: {
7778
enabled: { type: 'boolean' },
7879
ttlInSeconds: { type: 'number' },
7980
dataEncrypted: { type: 'boolean' },
8081
perKeyInvalidation: {
82+
type: 'object',
8183
properties: {
8284
requireAuthorization: { type: 'boolean' },
8385
handleUnauthorizedRequests: {
@@ -89,6 +91,7 @@ class ApiGatewayCachingPlugin {
8991
cacheKeyParameters: {
9092
type: 'array',
9193
items: {
94+
type: 'object',
9295
properties: {
9396
name: { type: 'string' },
9497
value: { type: 'string' }
@@ -106,6 +109,7 @@ class ApiGatewayCachingPlugin {
106109
type: 'object',
107110
properties: {
108111
apiGatewayCaching: {
112+
type: 'object',
109113
properties: {
110114
enabled: { type: 'boolean' },
111115
apiGatewayIsShared: { type: 'boolean' },
@@ -115,6 +119,7 @@ class ApiGatewayCachingPlugin {
115119
ttlInSeconds: { type: 'number' },
116120
dataEncrypted: { type: 'boolean' },
117121
perKeyInvalidation: {
122+
type: 'object',
118123
properties: {
119124
requireAuthorization: { type: 'boolean' },
120125
handleUnauthorizedRequests: {
@@ -126,10 +131,12 @@ class ApiGatewayCachingPlugin {
126131
additionalEndpoints: {
127132
type: 'array',
128133
items: {
134+
type: 'object',
129135
properties: {
130136
method: { type: 'string' },
131137
path: { type: 'string' },
132138
caching: {
139+
type: 'object',
133140
properties: {
134141
enabled: { type: 'boolean' },
135142
ttlInSeconds: { type: 'number' },

0 commit comments

Comments
 (0)