Module: TRMNL::API::Schemas::Firmware
- Defined in:
- lib/trmnl/api/schemas/firmware/flash.rb,
lib/trmnl/api/schemas/firmware/latest.rb
Constant Summary collapse
- Flash =
Validates API response.
Dry::Schema.JSON do required(:data).filled(:hash) do required(:models).filled(:array).each(:hash) do required(:keyname).filled :string required(:label).filled :string required(:chipFamily).filled :string required(:versions).filled(:array).each(:hash) do required(:version).filled :string required(:url).filled :string end end end end
- Latest =
Validates API response.
Dry::Schema.JSON do required(:url).filled :string required(:version).filled :string end