atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nixon Rodrigues (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ATLAS-1863) Set default value for primitive types attributes in entity based on attributeDef in Typedef
Date Wed, 07 Jun 2017 13:28:18 GMT
Nixon Rodrigues created ATLAS-1863:
--------------------------------------

             Summary: Set default value for primitive types attributes in entity based on
attributeDef in Typedef
                 Key: ATLAS-1863
                 URL: https://issues.apache.org/jira/browse/ATLAS-1863
             Project: Atlas
          Issue Type: Improvement
          Components: atlas-intg
            Reporter: Nixon Rodrigues
            Assignee: Ruchi Solani
            Priority: Critical
             Fix For: 0.9-incubating


While creating entity if attribute value are not set explicitly for primitive type which are
optional, then default value should be set from attributedef.

eg of typedef attributeDef

{code}
"attributeDefs": [	{
					"name": "sourceCode",
					"typeName": "string",
					"isOptional": true,
					"cardinality": "SINGLE",
					"valuesMinCount": 0,
					"valuesMaxCount": 1,
					"isUnique": false,
					"isIndexable": true,
					"defaultValue": "xyz"
				}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message