From 3209921c98a189c6bb9bd37d30e1280b07d55cb3 Mon Sep 17 00:00:00 2001 From: Kriti Jain Date: Mon, 16 Dec 2024 21:47:07 +0530 Subject: [PATCH] MODFQMMGR-548:Refactor array handling to treat arrays as JSONB --- pom.xml | 4 ++-- src/main/resources/swagger.api/queryTool.yaml | 2 ++ .../resources/swagger.api/schemas/entityDataType.json | 11 +++++++++++ src/main/resources/swagger.api/schemas/field.json | 5 ----- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index ff0976f..237c41c 100644 --- a/pom.xml +++ b/pom.xml @@ -201,8 +201,8 @@ ,errors,error,parameters,parameter,resultsetPage, ,entityType,field,entityTypeColumn,entityTypeRelation,entityTypeDefaultSort,sourceColumn,entityTypeSource,entityTypeSourceJoin, - ,entityDataType,arrayType,dateType,objectType,enumType,booleanType,integerType,openUUIDType,stringType,numberType,rangedUUIDType,stringUUIDType, - ,nestedObjectProperty,valueWithLabel,valueSourceApi,columnValues,columnValueGetter, + ,entityDataType,arrayType,jsonbArrayType,dateType,objectType,enumType,booleanType,integerType,openUUIDType,stringType,numberType,rangedUUIDType,stringUUIDType, + ,nestedObjectProperty,valueWithLabel,valueSourceApi,columnValues,columnValueGetter ,queryDetails,queryIdentifier, ,submitQuery,contentsRequest,fqmMigrateRequest,fqmMigrateResponse,fqmMigrateWarning diff --git a/src/main/resources/swagger.api/queryTool.yaml b/src/main/resources/swagger.api/queryTool.yaml index d54f703..f93fe4a 100644 --- a/src/main/resources/swagger.api/queryTool.yaml +++ b/src/main/resources/swagger.api/queryTool.yaml @@ -356,6 +356,8 @@ components: $ref: schemas/entityDataType.json#/NestedObjectProperty arrayType: $ref: schemas/entityDataType.json#/ArrayType + jsonbArrayType: + $ref: schemas/entityDataType.json#/JsonbArrayType entityTypeDefaultSort: $ref: schemas/entityTypeDefaultSort.json errors: diff --git a/src/main/resources/swagger.api/schemas/entityDataType.json b/src/main/resources/swagger.api/schemas/entityDataType.json index c97c28b..99877aa 100644 --- a/src/main/resources/swagger.api/schemas/entityDataType.json +++ b/src/main/resources/swagger.api/schemas/entityDataType.json @@ -152,5 +152,16 @@ "$ref": "#/ArrayTypeContainer" } ] + }, + "JsonbArrayType": { + "description": "Entity field type defined in https://issues.folio.org/browse/UIPQB-6", + "allOf": [ + { + "$ref": "entityDataType.json#/EntityDataType" + }, + { + "$ref": "#/ArrayTypeContainer" + } + ] } } diff --git a/src/main/resources/swagger.api/schemas/field.json b/src/main/resources/swagger.api/schemas/field.json index 9019d12..65398ee 100644 --- a/src/main/resources/swagger.api/schemas/field.json +++ b/src/main/resources/swagger.api/schemas/field.json @@ -58,11 +58,6 @@ "ecsOnly": { "description": "Indicates if the field is available only in ECS environments", "type": "boolean" - }, - "isJsonbArray": { - "description": "Indicates whether to treat the array field as a JSONB array or a Postgres array for query generation and processing. Defaults to false", - "type": "boolean", - "default": false } }, "required": ["name", "dataType"]