validate the lenght of a ocf resource definition