From 227f77a72df19e024762e7bbb4de70e510b1a16e Mon Sep 17 00:00:00 2001 From: Sviatoslav Nekhaienko <snekhaienko@slb.com> Date: Fri, 29 Jan 2021 16:34:16 +0200 Subject: [PATCH] update docs --- .../osdu/indexer/schema/converter/readme.md | 63 ++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/schema/converter/readme.md b/indexer-core/src/main/java/org/opengroup/osdu/indexer/schema/converter/readme.md index 845325962..72a28506c 100644 --- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/schema/converter/readme.md +++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/schema/converter/readme.md @@ -299,4 +299,65 @@ Ignored for now (array of references) ``` -\"kind\": \"long\" \ No newline at end of file +\"kind\": \"long\" + +Processing specifics +---------------------------------------------------------------------------- + +allOf, anyOf and oneOf tags are processed at the same way. All internal data(properties) are included into converted schema. + +For instance +```json +{ + "definitions": { + "wellboreData1": { + "properties": { + "prop1": { + "type": "string" + } + } + }, + "wellboreData2": { + "properties": { + "prop2": { + "type": "string" + } + } + } + }, + "properties": { + "data": { + "allOf": [ + { + "anyOf": [ + { + "$ref": "#/definitions/wellboreData1" + } ], + "oneOf": [ + { + "$ref": "#/definitions/wellboreData2" + } + ] + } + ] + } + } +} + +``` + +```json +{ + "kind": "KIND_VAL", + "schema": [ + { + "kind": "string", + "path": "prop1" + }, + { + "kind": "string", + "path": "prop2" + } + ] +} +``` -- GitLab