Add joi validation of pack options

Closes #1721