Skip to content

Commit

Permalink
Update programming question schema changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
RichDom2185 committed Sep 3, 2023
1 parent 4fae4cd commit e2b3fdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cadet/assessments/question_types/programming_question.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ defmodule Cadet.Assessments.QuestionTypes.ProgrammingQuestion do
field(:template, :string)
field(:postpend, :string, default: "")
field(:solution, :string)
field(:llm_grading_prompt, :string, default: "")
embeds_many(:public, Testcase)
embeds_many(:opaque, Testcase)
embeds_many(:secret, Testcase)
end

@required_fields ~w(content template)a
@optional_fields ~w(solution prepend postpend)a
@optional_fields ~w(solution prepend postpend llm_grading_prompt)a

def changeset(question, params \\ %{}) do
question
Expand Down

0 comments on commit e2b3fdc

Please sign in to comment.