Skip to content

Commit

Permalink
refactor: change response model in plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
whdalsrnt committed Nov 6, 2023
1 parent 123311d commit a65fd4a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List
from typing import List, Union
from enum import Enum
from pydantic import BaseModel

Expand All @@ -16,10 +16,10 @@ class MatchProject(BaseModel):


class Actions(BaseModel):
match_service_account: MatchServiceAccount
match_project: MatchProject
change_project: str
add_additional_info: dict
match_service_account: Union[MatchServiceAccount, None] = None
match_project: Union[MatchProject, None] = None
change_project: Union[str, None] = None
add_additional_info: Union[dict, None] = None


class Condition(BaseModel):
Expand All @@ -29,7 +29,7 @@ class Condition(BaseModel):


class Options(BaseModel):
stop_processing: bool
stop_processing: bool = False


class State(str, Enum):
Expand Down

0 comments on commit a65fd4a

Please sign in to comment.