Skip to content

Commit 1b1374d

Browse files
committed
Fix error in JSON_QUERY_CONVERTER,
add missing setter in CJ_QUERY Add simple use cases, examples to build CJ from the API.
1 parent 7bcdb4f commit 1b1374d

File tree

3 files changed

+479
-2
lines changed

3 files changed

+479
-2
lines changed

library/cj_query.e

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ feature -- Element Change
6262
name_set: name ~ a_name
6363
end
6464

65+
66+
set_prompt (a_prompt: STRING)
67+
do
68+
prompt := a_prompt
69+
ensure
70+
prompt_set: prompt ~ a_prompt
71+
end
72+
73+
6574
add_data (a_data: CJ_DATA)
6675
local
6776
l_data: like data

library/converter/json_query_converter.e

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ feature -- Conversion
4242
Result.set_name (l_ucs)
4343
end
4444
if attached {STRING_32} json.object (j.item (prompt_key), Void) as l_ucs then
45-
Result.set_rel (l_ucs)
45+
Result.set_prompt (l_ucs)
4646
end
4747
if attached {JSON_ARRAY} j.item (data_key) as ja then
4848
from

0 commit comments

Comments
 (0)