Skip to content

Commit f13e9b8

Browse files
committed
Fixes custom metadata created via SDK to appear in UI
Signed-off-by: Christopher Grote <cmgrote@users.noreply.github.com>
1 parent 13d4a1e commit f13e9b8

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

pyatlan/model/typedef.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Options(AtlanObject):
117117
description="Whether the attribute is deprecated ('true') or not (None or 'false').\n",
118118
)
119119
is_enum: Optional[bool] = Field(
120-
None,
120+
False,
121121
description="Whether the attribute is an enumeration (true) or not (None or false).\n",
122122
)
123123
enum_type: Optional[str] = Field(
@@ -128,9 +128,10 @@ class Options(AtlanObject):
128128
None,
129129
description="Used for Atlan-specific types like `users`, `groups`, `url`, and `SQL`.\n",
130130
)
131-
is_archived: bool = Field(
132-
False,
131+
is_archived: Optional[bool] = Field(
132+
None,
133133
description="Whether the attribute has been deleted (true) or is still active (false).\n",
134+
example=True
134135
)
135136
archived_at: Optional[int] = Field(
136137
None, description="When the attribute was deleted.\n"
@@ -144,6 +145,11 @@ class Options(AtlanObject):
144145
None, description="The type of the option"
145146
)
146147

148+
is_new: Optional[bool] = Field(
149+
True,
150+
description="Whether the attribute is being newly created (true) or not (false).",
151+
example=True
152+
)
147153
cardinality: Optional[Cardinality] = Field(
148154
"SINGLE",
149155
description="Whether the attribute allows a single or multiple values. In the case of multiple values, "
@@ -154,8 +160,8 @@ class Options(AtlanObject):
154160
constraints: Optional[List[Dict[str, Any]]] = Field(
155161
None, description="Internal use only."
156162
)
157-
description: Optional[str] = Field(
158-
None,
163+
description: str = Field(
164+
"",
159165
description="Description of the attribute definition.\n",
160166
example="Our first custom metadata field.",
161167
)
@@ -173,7 +179,7 @@ class Options(AtlanObject):
173179
example="Custom Field 1",
174180
)
175181
name: str = Field(
176-
None,
182+
"",
177183
description="Unique name of this attribute definition. When provided during creation, this should be the "
178184
"human-readable name for the attribute. When returned (or provided for an update) this will be "
179185
"the static-hashed name that Atlan uses internally. (This is to allow the name to be changed "

0 commit comments

Comments
 (0)