From 96faf9ab96fbd35cd173ff76c02932fc22b74d9b Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Sun, 18 Apr 2021 17:14:14 +0400 Subject: Added test for validating schemas --- schemas/post.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'schemas/post.json') diff --git a/schemas/post.json b/schemas/post.json index f427dd7..a7a3a36 100644 --- a/schemas/post.json +++ b/schemas/post.json @@ -6,5 +6,6 @@ "body": { "type": "string" }, "published": { "type": "boolean" } }, - "required": ["id", "title", "body", "published"] + "required": ["id", "title", "body", "published"], + "additionalProperties": false } -- cgit v1.2.3