Added firmware response contract

Necessary to validate the firmware API response.
This commit is contained in:
Brooke Kuhlmann
2025-04-22 14:24:33 -06:00
parent a184e93f99
commit 7ae342ad98
+15
View File
@@ -0,0 +1,15 @@
# frozen_string_literal: true
require "dry/schema"
module TRMNL
module API
module Contracts
# Validates API response.
Firmware = Dry::Schema.JSON do
required(:url).filled :string
required(:version).filled :string
end
end
end
end