You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2022/06/14 13:31:26 UTC

[unomi] branch urlParametersViewEventSchema created (now 15ec0da00)

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

jkevan pushed a change to branch urlParametersViewEventSchema
in repository https://gitbox.apache.org/repos/asf/unomi.git


      at 15ec0da00 UNOMI-594: allow for URLParameters in view event using new flattenedProperties

This branch includes the following new commits:

     new 15ec0da00 UNOMI-594: allow for URLParameters in view event using new flattenedProperties

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[unomi] 01/01: UNOMI-594: allow for URLParameters in view event using new flattenedProperties

Posted by jk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 15ec0da005a820d3139520e287de7f489aa9649d
Author: Kevan <ke...@jahia.com>
AuthorDate: Tue Jun 14 15:31:08 2022 +0200

    UNOMI-594: allow for URLParameters in view event using new flattenedProperties
---
 .../schemas/events/view/view.flattenProperties.json   |  3 +++
 .../schemas/items/URLParameters/URLParameters.json    | 19 +++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/view/view.flattenProperties.json b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/view/view.flattenProperties.json
index c380b0d99..957761d71 100644
--- a/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/view/view.flattenProperties.json
+++ b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/view/view.flattenProperties.json
@@ -12,6 +12,9 @@
   "properties" : {
     "interests": {
       "$ref" : "https://unomi.apache.org/schemas/json/interests/1-0-0"
+    },
+    "URLParameters": {
+      "$ref": "https://unomi.apache.org/schemas/json/URLParameters/1-0-0"
     }
   },
   "unevaluatedProperties" : false
diff --git a/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/URLParameters/URLParameters.json b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/URLParameters/URLParameters.json
new file mode 100644
index 000000000..57c49fe6c
--- /dev/null
+++ b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/URLParameters/URLParameters.json
@@ -0,0 +1,19 @@
+{
+  "$id": "https://unomi.apache.org/schemas/json/URLParameters/1-0-0",
+  "$schema": "https://json-schema.org/draft/2019-09/schema",
+  "self":{
+    "vendor":"org.apache.unomi",
+    "name": "URLParameters",
+    "format":"jsonschema",
+    "version":"1-0-0"
+  },
+  "title": "URLParameters",
+  "type": "object",
+  "patternProperties": {
+    "^.*$": {
+      "type": "string"
+    }
+  },
+  "unevaluatedProperties": false,
+  "$comment" : "TODO: UNOMI-595, allow for both types: [\"array\", \"string\"] when json-schema-validator is fixed on multiple types handling"
+}
\ No newline at end of file