TinCanJS icon indicating copy to clipboard operation
TinCanJS copied to clipboard

Validate that score properties are numbers.

Open garemoko opened this issue 10 years ago • 1 comments

It'd be nice if TinCanJS ensured that all the score properties were numbers, not strings.

See https://github.com/LearningLocker/learninglocker/issues/113

garemoko avatar Mar 10 '14 13:03 garemoko

This would be a fairly significant change, again because of the lack of "setter" model. To date we haven't validated types of any of the values being set, except for where they are versioned and then only through run time exceptions.

Though we can certainly leave it open as a to do, and 1 more nail in the need for proper accessors.

brianjmiller avatar Mar 11 '14 03:03 brianjmiller