Skip to content

Commit

Permalink
Merge pull request #111 from whdalsrnt/master
Browse files Browse the repository at this point in the history
refactor: change response model in plugin
  • Loading branch information
whdalsrnt authored Nov 6, 2023
2 parents 9215e16 + a65fd4a commit 44a2977
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 44a2977

Please sign in to comment.