Mollywhite has submitted this change and it was merged.

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(-)

Approvals:
  Mollywhite: Verified; Looks good to me, approved



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: merged
Gerrit-Change-Id: I76596ff98fffb006eaae31096784ee5eff61c1f1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BookManagerv2
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>
Gerrit-Reviewer: Mollywhite <[email protected]>

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

Reply via email to