From f8eff3f72c3e586b6da13c9213b70db44045d4c8 Mon Sep 17 00:00:00 2001 From: Qin Zhao Date: Wed, 14 Aug 2019 18:20:10 +0800 Subject: [PATCH] Refuse invalid properties in API request --- app/waf/src/controllers/schema.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/waf/src/controllers/schema.ts b/app/waf/src/controllers/schema.ts index 3395b8d67..50b0cf780 100644 --- a/app/waf/src/controllers/schema.ts +++ b/app/waf/src/controllers/schema.ts @@ -121,6 +121,7 @@ function buildRequestSchema( type: 'object', required: requiredProperties, properties: properties, + additionalProperties: false, example: example, }, },