You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Mayur Maheshwari (JIRA)" <ji...@apache.org> on 2018/11/09 06:41:00 UTC
[jira] [Created] (ATLAS-2960) Custom attribute inside an Attibute
Definition
Mayur Maheshwari created ATLAS-2960:
---------------------------------------
Summary: Custom attribute inside an Attibute Definition
Key: ATLAS-2960
URL: https://issues.apache.org/jira/browse/ATLAS-2960
Project: Atlas
Issue Type: Wish
Components: atlas-core
Reporter: Mayur Maheshwari
How we can add custom attributes while creating a Type using Rest API:
{
"enumTypes": [],
"structTypes": [],
"traitTypes": [],
"classTypes": [{
"superTypes": ["Process"],
"hierarchicalMetaTypeName": "org.apache.atlas.typesystem.types.ClassType",
"typeName": "ResearchPaperAccessDataset_Process",
"typeDescription": null,
"attributeDefinitions": [{
"name": "resourceSetID",
"dataTypeName": "int",
"multiplicity": "required",
"isComposite": false,
"isUnique": false,
"isIndexable": true,
"reverseAttributeName": null,
*"sources":[{*
*"name":"hdfs",*
*"originalName":"ID"*
*}*
*]*
},
{
"name": "researchPaperGroupName",
"dataTypeName": "string",
"multiplicity": "required",
"isComposite": false,
"isUnique": false,
"isIndexable": true,
"reverseAttributeName": null
}]
}]
}
Wanted to add '*sources*' marked in bold while creating a type.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)