Skip to content

Commit

Permalink
better name for root validator method for DataSourceEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
thilak reddy committed Jul 10, 2023
1 parent 8049de9 commit f2899a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/opal-common/opal_common/schemas/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DataSourceEntry(BaseModel):
"""

@validator("data")
def name_must_contain_space(cls, value, values):
def validate_save_method(cls, value, values):
if values["save_method"] not in ["PUT", "PATCH"]:
raise ValueError("'save_method' must be either PUT or PATCH")
if values["save_method"] == "PATCH" and (
Expand Down

0 comments on commit f2899a1

Please sign in to comment.