Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

When to use the 'options' property for AtlasBaseTypeDefs

avatar
Rising Star

Could someone help me understand when I would use the 'options' property? It's part of the AtlasBaseTypeDefs and has a type of 'map of string'. In the below example I can create an entity type, but I don't know how to use the 'options' property and under what circumstances I would want to.

{
   "enumDefs":[],
   "structDefs":[],
   "classificationDefs":[],
   "entityDefs":[
      {
         "superTypes":[
           "DataSet"
         ],
	"name":"test_entity_3",
	"description":"test_entity_3",
	"createdBy": "admin",
	"updatedBy": "admin",
	"options" : 
	     {
                "property1" : "when_to_use_1",
                "property2" : "when_to_use_2"
             },
         "attributeDefs":[
            {
               "name":"test_3",
               "isOptional":true,
               "isUnique":false,
               "isIndexable":false,
               "typeName":"string",
               "valuesMaxCount":1,
               "cardinality":"SINGLE",
               "valuesMinCount":0
            }
         ]
         
      }
   ]
}
1 ACCEPTED SOLUTION

avatar
Expert Contributor

@Laura Ngo, "options" was added to AtlasBaseTypeDef to allow additional metadata properties to be included with the type definition. These properties allow users to specify any key/value property or constraint on the type definition e.g.

cluster = test_cluster

contains_all_primitive_attributes=true

The options map is not being used currently but added for future use cases.

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

As per my knowledge these are only being used for UI rendering. It acts like additional metadata about the entity.

avatar
Expert Contributor

@Laura Ngo, "options" was added to AtlasBaseTypeDef to allow additional metadata properties to be included with the type definition. These properties allow users to specify any key/value property or constraint on the type definition e.g.

cluster = test_cluster

contains_all_primitive_attributes=true

The options map is not being used currently but added for future use cases.