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 845325962f475bd6c02e3999d02a32b43b7fafba..72a28506ce43d1705d929876d76280d24130045a 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" + } + ] +} +```