From 3682c3cc5a794851d04f80207771f0b3157acd02 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Fri, 6 Dec 2024 16:05:16 -0500 Subject: [PATCH] Remove periods from query parameter names. --- robot-server/robot_server/labware_offsets/router.py | 6 +++--- .../integration/http_api/test_labware_offsets.tavern.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/robot-server/robot_server/labware_offsets/router.py b/robot-server/robot_server/labware_offsets/router.py index 24abb7641c3..fb017fc1457 100644 --- a/robot-server/robot_server/labware_offsets/router.py +++ b/robot-server/robot_server/labware_offsets/router.py @@ -90,21 +90,21 @@ async def get_labware_offsets( # noqa: D103 location_slot_name: Annotated[ DeckSlotName | None, fastapi.Query( - alias="location.slotName", + alias="locationSlotName", description="Filter for exact matches on the `location.slotName` field.", ), ] = None, location_module_model: Annotated[ ModuleModel | None, fastapi.Query( - alias="location.moduleModel", + alias="locationModuleModel", description="Filter for exact matches on the `location.moduleModel` field.", ), ] = None, location_definition_uri: Annotated[ str | None, fastapi.Query( - alias="location.definitionUri", + alias="locationDefinitionUri", description=( "Filter for exact matches on the `location.definitionUri` field." " (Not to be confused with just `definitionUri`.)" diff --git a/robot-server/tests/integration/http_api/test_labware_offsets.tavern.yaml b/robot-server/tests/integration/http_api/test_labware_offsets.tavern.yaml index e766e7e89d7..d9ff35d7136 100644 --- a/robot-server/tests/integration/http_api/test_labware_offsets.tavern.yaml +++ b/robot-server/tests/integration/http_api/test_labware_offsets.tavern.yaml @@ -83,7 +83,7 @@ stages: # Just a basic test here. More complicated tests for the filters belong in the unit tests. - name: Test getting labware offsets with a filter request: - url: '{ot3_server_base_url}/labwareOffsets?location.slotName=A2' + url: '{ot3_server_base_url}/labwareOffsets?locationSlotName=A2' method: GET response: json: