This is an automated email from the ASF dual-hosted git repository. jsinovassinnaik pushed a commit to branch UNOMI-822 in repository https://gitbox.apache.org/repos/asf/unomi.git
commit c75a4da25f5e74638cc80861820b801dfafe4960 Author: jsinovassin <jsinovassinn...@jahia.com> AuthorDate: Wed Apr 17 17:52:34 2024 +0200 UNOMI-822: add search json schema --- .../META-INF/cxs/schemas/events/search/search.json | 33 ++++++++++++++++++++++ .../schemas/events/search/search.properties.json | 28 ++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/search/search.json b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/search/search.json new file mode 100644 index 000000000..ab8ee1233 --- /dev/null +++ b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/search/search.json @@ -0,0 +1,33 @@ +{ + "$id": "https://unomi.apache.org/schemas/json/events/search/1-0-0", + "$schema": "https://json-schema.org/draft/2019-09/schema", + "self": { + "vendor": "org.apache.unomi", + "target": "events", + "name": "search", + "format": "jsonschema", + "version": "1-0-0" + }, + "title": "SearchEvent", + "type": "object", + "allOf": [ + { + "$ref": "https://unomi.apache.org/schemas/json/event/1-0-0" + } + ], + "properties": { + "properties": { + "$ref": "https://unomi.apache.org/schemas/json/events/search/properties/1-0-0" + }, + "source": { + "$ref": "https://unomi.apache.org/schemas/json/items/page/1-0-0" + }, + "target": { + "$ref": "https://unomi.apache.org/schemas/json/item/1-0-0" + }, + "flattenedProperties": { + "$ref": "https://unomi.apache.org/schemas/json/events/form/flattenedProperties/1-0-0" + } + }, + "unevaluatedProperties": false +} diff --git a/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/search/search.properties.json b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/search/search.properties.json new file mode 100644 index 000000000..58c9d3677 --- /dev/null +++ b/extensions/json-schema/services/src/main/resources/META-INF/cxs/schemas/events/search/search.properties.json @@ -0,0 +1,28 @@ +{ + "$id": "https://unomi.apache.org/schemas/json/events/search/properties/1-0-0", + "$schema": "https://json-schema.org/draft/2019-09/schema", + "self": { + "vendor": "org.apache.unomi", + "name": "searchProperties", + "format": "jsonschema", + "version": "1-0-0" + }, + "title": "searchProperties", + "type": "object", + "properties": { + "originForm": { + "type": "string" + }, + "language": { + "type": "string", + "maxLength": 5 + }, + "keyword": { + "type": "string" + }, + "origin": { + "type": "string" + } + }, + "unevaluatedProperties": false +}