Skip to content

Commit

Permalink
MODFQMMGR-548:Refactor array handling to treat arrays as JSONB
Browse files Browse the repository at this point in the history
  • Loading branch information
kjain110 committed Dec 16, 2024
1 parent 8db5399 commit dbfd7fd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
,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,
,nestedObjectProperty,valueWithLabel,valueSourceApi,columnValues,columnValueGetter,jsonbArrayType
,queryDetails,queryIdentifier,
,submitQuery,contentsRequest,fqmMigrateRequest,fqmMigrateResponse,fqmMigrateWarning
</modelsToGenerate>
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/swagger.api/queryTool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/swagger.api/schemas/entityDataType.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
}
5 changes: 0 additions & 5 deletions src/main/resources/swagger.api/schemas/field.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit dbfd7fd

Please sign in to comment.