From 0663fa9ac928be9561d2113a8b2086bf4ef04273 Mon Sep 17 00:00:00 2001 From: joshvera Date: Mon, 14 May 2018 18:35:36 -0400 Subject: [PATCH] Remove Summaries intermediate object and product Error in semantic.proto --- src/Rendering/TOC.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rendering/TOC.hs b/src/Rendering/TOC.hs index 051a5a51b..aff082f93 100644 --- a/src/Rendering/TOC.hs +++ b/src/Rendering/TOC.hs @@ -59,12 +59,12 @@ data TOCSummary , summarySpan :: Span , summaryChangeType :: T.Text } - | ErrorSummary { error :: T.Text, errorSpan :: Span, errorLanguage :: Maybe Language } + | ErrorSummary { errorText :: T.Text, errorSpan :: Span, errorLanguage :: Maybe Language } deriving (Generic, Eq, Show) instance ToJSON TOCSummary where toJSON TOCSummary{..} = object [ "changeType" .= summaryChangeType, "category" .= summaryCategoryName, "term" .= summaryTermName, "span" .= summarySpan ] - toJSON ErrorSummary{..} = object [ "error" .= error, "span" .= errorSpan, "language" .= errorLanguage ] + toJSON ErrorSummary{..} = object [ "error" .= errorText, "span" .= errorSpan, "language" .= errorLanguage ] isValidSummary :: TOCSummary -> Bool isValidSummary ErrorSummary{} = False