[ 
https://issues.apache.org/jira/browse/ATLAS-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15175014#comment-15175014
 ] 

Shwetha G S commented on ATLAS-479:
-----------------------------------

Added a small test with description as null, serialisation works fine. 
Deserialisation fails. You need to debug:
{code}
    @Test
    public void testCls() throws Exception {
        HierarchicalTypeDefinition<ClassType> clsType = TypesUtil
                .createClassTypeDef("Random", ImmutableList.<String>of(),
                        TypesUtil.createRequiredAttrDef("name", 
DataTypes.STRING_TYPE));
        TypesDef typesDef = getTypesDef(clsType);
        String json = TypesSerialization.toJson(typesDef);
        System.out.println(json);
        TypesSerialization.fromJson(json);
    }
{code}

> Add description for different types during create time
> ------------------------------------------------------
>
>                 Key: ATLAS-479
>                 URL: https://issues.apache.org/jira/browse/ATLAS-479
>             Project: Atlas
>          Issue Type: Sub-task
>    Affects Versions: 0.6-incubating
>            Reporter: Neeru Gupta
>            Assignee: Neeru Gupta
>             Fix For: 0.7-incubating
>
>         Attachments: graycol.gif, rb43531(6).patch
>
>
> Ability to specify description while creating different types like Struct, 
> Enum, Class and Trait type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to