Skip to content

Commit

Permalink
Add deprecated field to RegistryActionUpdate kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Jan 15, 2025
1 parent 716f5b4 commit 4900663
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tracecat/registry/actions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,12 @@ class RegistryActionUpdate(BaseModel):
min_length=1,
max_length=100,
)
deprecated: str | None = Field(
default=None,
description="Update the deprecation message of the action",
min_length=1,
max_length=1000,
)
options: RegistryActionOptions | None = Field(
default=None,
description="Update the options of the action",
Expand All @@ -426,6 +432,7 @@ def from_bound(action: BoundRegistryAction) -> RegistryActionUpdate:
display_group=action.display_group,
doc_url=action.doc_url,
author=action.author,
deprecated=action.deprecated,
options=RegistryActionOptions(include_in_schema=action.include_in_schema),
)

Expand Down

0 comments on commit 4900663

Please sign in to comment.