sergehuber commented on code in PR #428:
URL: https://github.com/apache/unomi/pull/428#discussion_r894469285
##########
extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/page/page.properties.pageInfo.json:
##########
@@ -0,0 +1,63 @@
+{
+ "$id":
"https://unomi.apache.org/schemas/json/items/page/properties/pageInfo/1-0-0",
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "self": {
+ "vendor": "org.apache.unomi",
+ "name": "pageInfo",
+ "format": "jsonschema",
+ "version": "1-0-0"
+ },
+ "title": "PageInfo",
+ "type": "object",
+ "properties": {
+ "templateName": {
+ "type": ["null", "string"]
+ },
+ "language": {
+ "type": ["null", "string"],
+ "maxLength": 5
+ },
+ "destinationURL": {
+ "type": ["null", "string"],
+ "format": "uri"
+ },
+ "destinationSearch": {
+ "type": ["null", "string"]
+ },
+ "categories": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "pageID": {
+ "type": ["null", "string"]
+ },
+ "nodeType": {
+ "type": ["null", "string"]
+ },
+ "pagePath": {
+ "type": ["null", "string"]
+ },
+ "pageName": {
+ "type": ["null", "string"]
+ },
+ "referringURL": {
+ "type": ["null", "string"],
+ "format": "uri"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "isContentTemplate": {
Review Comment:
I was thinking we could use extensions for non-Unomi properties such as
these, what do you think ?
##########
extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/items/interests/interests.json:
##########
@@ -0,0 +1,18 @@
+{
+ "$id": "https://unomi.apache.org/schemas/json/interests/1-0-0",
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "self":{
+ "vendor":"org.apache.unomi",
+ "name": "interests",
+ "format":"jsonschema",
+ "version":"1-0-0"
+ },
+ "title": "Interests",
+ "type": "object",
+ "patternProperties": {
+ "^.*$": {
Review Comment:
This might cause problems in other languages such as Chinese, Cyrillic,
etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]