feat: accept calibration readings only from a chosen tag

This commit is contained in:
2026-05-21 21:46:45 +02:00
parent eb22fbc789
commit b0d9a7dbf8
6 changed files with 164 additions and 61 deletions
+11
View File
@@ -330,6 +330,17 @@ defmodule Localiser.Web.Schemas do
})
end
defmodule CalibrationTagParams do
require OpenApiSpex
OpenApiSpex.schema(%{
title: "CalibrationTagParams", type: :object,
properties: %{
tag_id: %Schema{type: :string, description: "Tag ID to lock in for calibration stages"}
},
required: [:tag_id]
})
end
defmodule CalibrationStageParams do
require OpenApiSpex
OpenApiSpex.schema(%{