summaryrefslogtreecommitdiff
path: root/schemas
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2021-04-18 17:14:14 +0400
committerAndrew Guschin <saintruler@gmail.com>2021-04-18 17:14:14 +0400
commit96faf9ab96fbd35cd173ff76c02932fc22b74d9b (patch)
treefacea20b2339589f4b74f355635bf0dd74f87f7e /schemas
parent0ad35b9b50dfaa1083f3f5acc633ec769bc10e37 (diff)
Added test for validating schemas
Diffstat (limited to 'schemas')
-rw-r--r--schemas/post.json3
1 files changed, 2 insertions, 1 deletions
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
}