Skip to content

Commit 85d9271

Browse files
Make name,destription,type optional in Entity
1 parent 5c530e7 commit 85d9271

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/entitysdk/models/entity.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ class Entity(Identifiable, HasAssets):
1515
"""Entity is a model with id and authorization."""
1616

1717
name: Annotated[
18-
str,
18+
str | None,
1919
Field(
2020
examples=["Entity 1"],
2121
description="The name of the entity.",
2222
),
23-
]
23+
] = None
2424
description: Annotated[
25-
str,
25+
str | None,
2626
Field(
2727
examples=["This is entity 1"],
2828
description="The description of the entity.",
2929
),
30-
]
30+
] = None
3131
type: Annotated[
32-
str,
32+
str | None,
3333
Field(
3434
examples=["license"],
3535
description="The type of this Entity.",
3636
),
37-
]
37+
] = None
3838
createdBy: Annotated[
3939
AgentUnion | None,
4040
Field(description="The agent that created this entity."),

0 commit comments

Comments
 (0)