From df7c381640499bf3e35b0968fac5c3850934b43c Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 30 Jul 2021 14:21:08 -0600 Subject: [PATCH] New Debug.Notes field for #169 --- pkg/transpile/puzzle.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pkg/transpile/puzzle.go b/pkg/transpile/puzzle.go index 84c90f5..44d0ab5 100644 --- a/pkg/transpile/puzzle.go +++ b/pkg/transpile/puzzle.go @@ -27,14 +27,19 @@ type AnswerResponse struct { Correct bool } +// PuzzleDebug is the full suite of debug fields in a puzzle + +type PuzzleDebug struct { + Log []string + Errors []string + Hints []string + Notes string + Summary string +} + // Puzzle contains everything about a puzzle that a client would see. type Puzzle struct { - Debug struct { - Log []string - Errors []string - Hints []string - Summary string - } + Debug PuzzleDebug Authors []string Attachments []string Scripts []string @@ -75,13 +80,8 @@ type StaticPuzzle struct { Acceptable string Mastery string } - KSAs []string - Debug struct { - Log []string - Errors []string - Hints []string - Summary string - } + KSAs []string + Debug PuzzleDebug Answers []string }