Skip to content

Commit

Permalink
refactor query parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssadai committed Oct 24, 2024
1 parent 1d20f2a commit 5913336
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def convert_valid_is_control_values_to_bool(cls, v):
status_code=422,
detail="'is_control' must be either set to 'true' or omitted from the query",
)
else:
return True
return True
return None

@root_validator()
Expand Down

0 comments on commit 5913336

Please sign in to comment.