Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Create a classification that has mandatory attribute of type "array<string>" via REST api
Create classification with payload:
{ "enumDefs": [], "structDefs": [], "classificationDefs": [ { "category": "CLASSIFICATION", "guid": "8996315b-b5fe-48c6-b9d0-4668fhkfd21af", "createdBy": "hrt_qa", "updatedBy": "hrt_qa", "createTime": 1602057743077, "updateTime": 1602057743077, "version": 1, "name": "read_auth_test_tag1", "description": "read_auth_test_tag1", "typeVersion": "1.0", "attributeDefs": [ { "name": "type_long_min", "typeName": "long", "isOptional": true, "cardinality": "SINGLE", "valuesMinCount": 0, "valuesMaxCount": 1, "isUnique": false, "isIndexable": false }, { "name":"type_arr_list", "typeName":"array<string>", "isOptional":false, "cardinality":"LIST", "valuesMinCount":1, "valuesMaxCount":2147483647, "isUnique":false, "isIndexable":false }, { "name":"type_set", "typeName":"array<string>", "isOptional":false, "cardinality":"SET", "valuesMinCount":1, "valuesMaxCount":2147483647, "isUnique":false, "isIndexable":false } ], "superTypes": [], "entityTypes": [], "subTypes": [] } ], "entityDefs": [], "relationshipDefs": [], "businessMetadataDefs": [] }
Assign the same to an entity.
The assignment fails as the attributes of type "array<string>" are not visible on UI
error message
{"errorCode":"ATLAS-400-00-01A", "errorMessage":"invalid parameters: read_auth_test_tag1.type_arr_list: mandatory attribute value missing in type read_auth_test_tag1"}
The assignment fails via both UI and rest api.
In UI creation of attribute of such a type is not allowed but via rest api it is possible.