Skip to content

Commit f613832

Browse files
committed
Merge branch 'release/0.1.3'
2 parents e90d15e + a42a2ba commit f613832

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/tama_ex/broadcast/concept.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule TamaEx.Broadcast.Concept do
66
embedded_schema do
77
field :id, :binary_id
88
field :relation, :string
9-
field :content, :string
9+
field :content, :map
1010
end
1111

1212
def changeset(concept, attrs) do

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule TamaEx.MixProject do
44
def project do
55
[
66
app: :tama_ex,
7-
version: "0.1.2",
7+
version: "0.1.3",
88
elixir: "~> 1.18",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps(),

test/tama_ex/broadcast_test.exs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ defmodule TamaEx.BroadcastTest do
2323
%{
2424
id: "550e8400-e29b-41d4-a716-446655440002",
2525
relation: "input",
26-
content: "some content"
26+
content: %{"content" => "some content"}
2727
},
2828
%{
2929
id: "550e8400-e29b-41d4-a716-446655440003",
3030
relation: "output",
31-
content: "result content"
31+
content: %{"content" => "result content"}
3232
}
3333
],
3434
thought: %{
@@ -78,7 +78,7 @@ defmodule TamaEx.BroadcastTest do
7878
assert length(broadcast.step.concepts) == 2
7979
assert Enum.at(broadcast.step.concepts, 0).id == "550e8400-e29b-41d4-a716-446655440002"
8080
assert Enum.at(broadcast.step.concepts, 0).relation == "input"
81-
assert Enum.at(broadcast.step.concepts, 0).content == "some content"
81+
assert Enum.at(broadcast.step.concepts, 0).content == %{"content" => "some content"}
8282

8383
# Test thought and chain
8484
assert broadcast.step.thought.relation == "primary"
@@ -232,22 +232,22 @@ defmodule TamaEx.BroadcastTest do
232232
%{
233233
id: "550e8400-e29b-41d4-a716-446655440031",
234234
relation: "input",
235-
content: "first input"
235+
content: %{"content" => "first input"}
236236
},
237237
%{
238238
id: "550e8400-e29b-41d4-a716-446655440032",
239239
relation: "processing",
240-
content: "intermediate result"
240+
content: %{"content" => "intermediate result"}
241241
},
242242
%{
243243
id: "550e8400-e29b-41d4-a716-446655440033",
244244
relation: "output",
245-
content: "final output"
245+
content: %{"content" => "final output"}
246246
},
247247
%{
248248
id: "550e8400-e29b-41d4-a716-446655440034",
249249
relation: "metadata",
250-
content: "process metadata"
250+
content: %{"content" => "process metadata"}
251251
}
252252
],
253253
thought: %{
@@ -311,7 +311,7 @@ defmodule TamaEx.BroadcastTest do
311311
%{
312312
id: "550e8400-e29b-41d4-a716-446655440041",
313313
relation: "input",
314-
content: "some content"
314+
content: %{"content" => "some content"}
315315
}
316316
],
317317
thought: %{

0 commit comments

Comments
 (0)