You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by dg...@apache.org on 2022/08/30 13:51:46 UTC

[unomi] branch master updated: UNOMI-654 : allow empty properties as item field (#485)

This is an automated email from the ASF dual-hosted git repository.

dgriffon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/master by this push:
     new b27cafe2c UNOMI-654 : allow empty properties as item field (#485)
b27cafe2c is described below

commit b27cafe2c07a525cb4a72d752a9c9f4ba383c666
Author: David Griffon <dg...@jahia.com>
AuthorDate: Tue Aug 30 15:51:41 2022 +0200

    UNOMI-654 : allow empty properties as item field (#485)
---
 .../services/src/main/resources/META-INF/cxs/schemas/items/item.json   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/item.json b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/item.json
index d4a9f7772..b5035f831 100644
--- a/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/item.json
+++ b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/item.json
@@ -28,6 +28,9 @@
       "type" : ["null","integer"],
       "minimum" : 0,
       "description" : "The item's version number"
+    },
+    "properties": {
+      "type": ["null", "object"]
     }
   }
 }