Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setAnswersPersistence should check for basic compatibility of the object #148

Open
DanielHabenicht opened this issue Mar 14, 2021 · 1 comment

Comments

@DanielHabenicht
Copy link
Collaborator

DanielHabenicht commented Mar 14, 2021

Calling the function with an invalid object results in a undefined state of the questionnaireEngine.

Also, it might be easier to have the version and time Of Execution as function arguments instead of inside or left out if they are not used anyway.

@DanielHabenicht
Copy link
Collaborator Author

If not use answer instead of rawAnswer

type GivenAnswer = {
  questionId: string;
  rawAnswer: Answer;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant