Skip to content

Instantly share code, notes, and snippets.

@thomsbg
Created January 31, 2017 19:53
Show Gist options
  • Save thomsbg/9cfc6c9c3f2848026004e33a8a541d2b to your computer and use it in GitHub Desktop.
Save thomsbg/9cfc6c9c3f2848026004e33a8a541d2b to your computer and use it in GitHub Desktop.
diff --git a/config/schema/rich-text.json b/config/schema/rich-text.json
index 945b771d2..385e33e8a 100644
--- a/config/schema/rich-text.json
+++ b/config/schema/rich-text.json
@@ -88,7 +88,19 @@
"type": "integer"
},
"attributes": {
- "$ref": "#/attributes"
+ "oneOf": [
+ {
+ "$ref": "#/attributes"
+ },
+ {
+ "type": "object",
+ "minProperties": 1,
+ "properties": {},
+ "additionalProperties": {
+ "type": "null"
+ }
+ }
+ ]
}
},
"required": [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment