Skip to content

Commit

Permalink
Removed checking for hardcoded fields from DutConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
rquidute committed Jan 12, 2024
1 parent 3cdc620 commit 4795e6c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/api/api_v1/endpoints/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
from app.pics_applicable_test_cases import applicable_test_cases_list
from app.schemas.pics import PICSError
from app.schemas.project import Project as Proj

# from app.schemas.project import ProjectPICSUpdate
from app.schemas.test_environment_config import DutConfig

router = APIRouter()

Expand Down Expand Up @@ -88,13 +87,7 @@ def default_config() -> schemas.TestEnvironmentConfig:


def __validate_dut_config(request: Request) -> None:
valid_properties = [
"discriminator",
"setup_code",
"pairing_mode",
"chip_timeout",
"chip_use_paa_certs",
]
valid_properties = list(DutConfig.__annotations__.keys())

if "config" in request._json and "dut_config" in request._json["config"]:
dut_config = request._json["config"]["dut_config"]
Expand Down

0 comments on commit 4795e6c

Please sign in to comment.