Added model kind attribute

Necessary to pick up latest changes to the API where all models have a kind now.

Milestone: minor
This commit is contained in:
Brooke Kuhlmann
2025-09-09 13:08:27 -06:00
parent 8a52b829d0
commit 410fa1d6bf
5 changed files with 8 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ module TRMNL
required(:name).filled :string
required(:label).filled :string
required(:description).filled :string
required(:kind).filled :string
required(:colors).filled :integer
required(:bit_depth).filled :integer
required(:scale_factor) { filled? > int? | float? }
+1
View File
@@ -8,6 +8,7 @@ module TRMNL
:name,
:label,
:description,
:kind,
:colors,
:bit_depth,
:scale_factor,
@@ -10,6 +10,7 @@ RSpec.describe TRMNL::API::Contracts::Model do
name: "test",
label: "Test",
description: "A test.",
kind: "trmnl",
colors: 2,
bit_depth: 1,
scale_factor: 1,
@@ -24,6 +24,7 @@ RSpec.describe TRMNL::API::Endpoints::Model do
"name": "test",
"label": "Test",
"description": "A test.",
"kind": "trmnl",
"colors": 2,
"bit_depth": 1,
"scale_factor": 1,
@@ -50,6 +51,7 @@ RSpec.describe TRMNL::API::Endpoints::Model do
name: "test",
label: "Test",
description: "A test.",
kind: "trmnl",
colors: 2,
bit_depth: 1,
scale_factor: 1,
+3
View File
@@ -11,6 +11,7 @@ RSpec.describe TRMNL::API::Models::Model do
name: "test",
label: "Test",
description: "A test.",
kind: "trmnl",
colors: 2,
bit_depth: 1,
scale_factor: 1,
@@ -35,6 +36,7 @@ RSpec.describe TRMNL::API::Models::Model do
name: nil,
label: nil,
description: nil,
kind: nil,
colors: 0,
bit_depth: 0,
scale_factor: 0,
@@ -61,6 +63,7 @@ RSpec.describe TRMNL::API::Models::Model do
name: nil,
label: nil,
description: nil,
kind: nil,
colors: 0,
bit_depth: 0,
scale_factor: 0,