fix: sensor schema drift

This commit is contained in:
2026-05-13 20:28:21 +02:00
parent b1c7ded7ab
commit ecc0870cae
4 changed files with 26 additions and 7 deletions
@@ -178,8 +178,7 @@ defmodule Localiser.Web.Controllers.SensorController do
sensor_id: sensor.sensor_id,
room_id: sensor.room_id,
floor_x: sensor.floor_x,
floor_y: sensor.floor_y,
rssi_ref: sensor.rssi_ref
floor_y: sensor.floor_y
}
end
+3 -3
View File
@@ -250,10 +250,10 @@ defmodule Localiser.Web.Schemas do
title: "SensorPlaceParams", type: :object,
properties: %{
room_id: %Schema{type: :integer},
offset_x: %Schema{type: :number, format: :float},
offset_y: %Schema{type: :number, format: :float}
x: %Schema{type: :number, format: :float},
y: %Schema{type: :number, format: :float}
},
required: [:room_id, :offset_x, :offset_y]
required: [:room_id, :x, :y]
})
end