Revert "Duration is optional"

This reverts commit 2f56ba0fb812eb30b0a7189d23028594d1d60f13.
Add required validation to the duration field