Skip to content

Commit

Permalink
MODFQMMGR-378 Add ECS entity type config property
Browse files Browse the repository at this point in the history
  • Loading branch information
mweaver-ebsco committed Aug 7, 2024
1 parent a313abb commit adaa524
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
<generateApiTests>true</generateApiTests>
<generateApiDocumentation>true</generateApiDocumentation>
<generateModels>true</generateModels>
<modelsToGenerate>entityDataType,arrayType,dateType,entityTypeRelation,objectType,nestedObjectProperty,entityTypeColumn,enumType,booleanType,entityType,integerType,openUUIDType,stringType,numberType,rangedUUIDType,valueWithLabel,entityTypeDefaultSort,errors,error,parameters,parameter,resultsetPage,queryDetails,queryIdentifier,sourceColumn,valueSourceApi,columnValues,columnValueGetter,submitQuery,contentsRequest,field,entityTypeSource,entityTypeSourceJoin,stringUUIDType</modelsToGenerate>
<modelsToGenerate>entityDataType,arrayType,dateType,entityTypeRelation,objectType,nestedObjectProperty,entityTypeColumn,enumType,booleanType,entityType,integerType,openUUIDType,stringType,numberType,rangedUUIDType,valueWithLabel,entityTypeDefaultSort,errors,error,parameters,parameter,resultsetPage,queryDetails,queryIdentifier,sourceColumn,valueSourceApi,columnValues,columnValueGetter,submitQuery,contentsRequest,field,entityTypeSource,entityTypeSourceJoin,stringUUIDType,entityTypeCrossTenantQueryConfig</modelsToGenerate>
<generateModelTests>false</generateModelTests>
<generateModelDocumentation>true</generateModelDocumentation>
<generateSupportingFiles>true</generateSupportingFiles>
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/swagger.api/schemas/entityType.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
},
"default": []
},
"crossTenantQueryConfig": {
"description": "Cross-tenant query config for this entity type. Cross-tenant queries are not supported for entity types without this property.",
"$ref": "entityTypeCrossTenantQueryConfig.json"
},
"defaultSort": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Entity Data Cross-Tenant Query Configuration",
"description": "Configuration for cross-tenant entity data queries",
"properties": {
"tenantIdColumn": {
"description": "The name of the column containing the tenant ID.",
"type": "string"
},
"sourceTenantIdColumn": {
"description": "The name of the source tenant ID of the entity.",
"type": "string"
}
},
"required": [
"tenantIdColumn",
"sourceTenantIdColumn"
]
}

0 comments on commit adaa524

Please sign in to comment.