Skip to content

Commit

Permalink
Do not re-validate model after modifying it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Knucklessg1 committed Jun 26, 2024
1 parent ff053b3 commit 317e5ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions servicenow_api/servicenow_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,6 @@ class TableModel(BaseModel):
Note:
The class includes field_validator functions for specific attribute validations.
"""

model_config = ConfigDict(validate_assignment=True)
table: Optional[str] = None
table_record_sys_id: Optional[str] = None
name_value_pairs: Optional[Dict] = None
Expand All @@ -751,7 +749,7 @@ class TableModel(BaseModel):
sysparm_suppress_pagination_header: Optional[bool] = None
sysparm_view: Optional[str] = None
api_parameters: Optional[str] = ""
data: Optional[Dict] = None
data: Optional[Dict] = Field(default=None, description="Table dictionary value to insert")

@field_validator("table", "table_record_sys_id")
def validate_string_parameters(cls, v):
Expand Down

0 comments on commit 317e5ba

Please sign in to comment.