Skip to content

Commit

Permalink
Fixed order and allow changes to be extrad
Browse files Browse the repository at this point in the history
  • Loading branch information
Knucklessg1 committed May 19, 2024
1 parent d9b87dc commit 427ca12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions servicenow_api/servicenow_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ class State(BaseModel):


class ChangeRequest(BaseModel):
model_config = ConfigDict(extra="forbid")
model_config = ConfigDict(extra="allow")
__hash__ = object.__hash__
base_type: str = Field(default="ChangeRequest")
action_status: Optional[Union[FieldValue, int]] = Field(
Expand Down Expand Up @@ -2040,8 +2040,6 @@ class Response(BaseModel):
Dict,
List,
BatchInstallResult,
List[ChangeRequest],
ChangeRequest,
CICD,
CMDB,
List[ConfigurationItem],
Expand All @@ -2053,6 +2051,8 @@ class Response(BaseModel):
State,
List[Task],
Task,
List[ChangeRequest],
ChangeRequest,
Table,
]
] = Field(default=None, description="Result containing available responses.")
Expand Down Expand Up @@ -2119,8 +2119,6 @@ def determine_cmdb_type(cls, v):
def determine_result_type(cls, v):
models = [
BatchInstallResult,
List[ChangeRequest],
ChangeRequest,
CICD,
CMDB,
List[ConfigurationItem],
Expand All @@ -2132,6 +2130,8 @@ def determine_result_type(cls, v):
State,
List[Task],
Task,
List[ChangeRequest],
ChangeRequest,
Table,
]
if v:
Expand Down

0 comments on commit 427ca12

Please sign in to comment.