Mollywhite has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/72658


Change subject: Disallow properties that aren't in the JSON schema.
......................................................................

Disallow properties that aren't in the JSON schema.

Prevent save and return an error if the block contains
properties that aren't in the schema

Change-Id: I76596ff98fffb006eaae31096784ee5eff61c1f1
---
M schemas/bookschema.json
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BookManagerv2 
refs/changes/58/72658/1

diff --git a/schemas/bookschema.json b/schemas/bookschema.json
index e8d95ed..b062610 100644
--- a/schemas/bookschema.json
+++ b/schemas/bookschema.json
@@ -201,5 +201,6 @@
                 }
             ]
         }
-    }
+    },
+    "additionalProperties": false
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/72658
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I76596ff98fffb006eaae31096784ee5eff61c1f1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BookManagerv2
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to