diff --git a/wax-questions-service/src/NumericalAnswerService/schema/NumericalAnswerContainerNode.js b/wax-questions-service/src/NumericalAnswerService/schema/NumericalAnswerContainerNode.js index 2446730851878e53142653ccaa534d8099ad3c07..0ba378786575e6a9cb566504b8f02db237cafd8a 100644 --- a/wax-questions-service/src/NumericalAnswerService/schema/NumericalAnswerContainerNode.js +++ b/wax-questions-service/src/NumericalAnswerService/schema/NumericalAnswerContainerNode.js @@ -5,8 +5,11 @@ const NumericalAnswerContainerNode = { feedback: { default: '' }, answerType: { default: '' }, answersExact: { default: [] }, + answerExact: { default: '' }, answersRange: { default: [] }, + answerRange: { default: '' }, answersPrecise: { default: [] }, + answerPrecise: { default: '' }, }, group: 'block questions', isolating: true, @@ -17,8 +20,11 @@ const NumericalAnswerContainerNode = { getAttrs(dom) { return { answersExact: JSON.parse(dom.getAttribute('answersExact')), + answerExact: dom.getAttribute('answerExact'), answersRange: JSON.parse(dom.getAttribute('answersRange')), + answerRange: dom.getAttribute('answerRange'), answersPrecise: JSON.parse(dom.getAttribute('answersPrecise')), + answerPrecise: dom.getAttribute('answerPrecise'), id: dom.getAttribute('id'), class: dom.getAttribute('class'), feedback: dom.getAttribute('feedback'), @@ -33,8 +39,11 @@ const NumericalAnswerContainerNode = { { answerType: node.attrs.answerType, answersExact: JSON.stringify(node.attrs.answersExact), + answerExact: node.attrs.answerExact, answersRange: JSON.stringify(node.attrs.answersRange), + answerRange: node.attrs.answerRange, answersPrecise: JSON.stringify(node.attrs.answersPrecise), + answerPrecise: node.attrs.answerPrecise, id: node.attrs.id, class: node.attrs.class, feedback: node.attrs.feedback,