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 3209921
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@
<!-- the commas at the start and end of each line are load-bearing, as otherwise openapi-generator will include the newline/indentation as part of the model name -->
,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
</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 3209921

Please sign in to comment.