CarnegieLearningWeb / UpGrade

Framework for adding A/B testing to education applications
https://www.upgradeplatform.org/
BSD 3-Clause "New" or "Revised" License
25 stars 11 forks source link

Alias validation allows strings #1465

Open bcb37 opened 1 month ago

bcb37 commented 1 month ago

The validator for the aliases property of the body sent to the /useraliases endpoint doesn't enforce the array type. If a string is supplied, it splits the string into characters and creates an alias from each.

It should throw an error if the value is not an array.