mirror of
https://github.com/usetrmnl/trmnl-api.git
synced 2026-04-29 13:35:13 -07:00
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:
@@ -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? }
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user