We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 507feb2 + f35dfba commit 17c1351Copy full SHA for 17c1351
src/editors/object.js
@@ -661,7 +661,10 @@ JSONEditor.defaults.editors.object = JSONEditor.AbstractEditor.extend({
661
this._super(editor);
662
},
663
canHaveAdditionalProperties: function() {
664
- return (this.schema.additionalProperties === true) || !this.jsoneditor.options.no_additional_properties;
+ if (typeof this.schema.additionalProperties === "boolean") {
665
+ return this.schema.additionalProperties;
666
+ }
667
+ return !this.jsoneditor.options.no_additional_properties;
668
669
destroy: function() {
670
$each(this.cached_editors, function(i,el) {
0 commit comments