Bugzilla – Bug 4286
Schema allows for an empty job
Last modified: 2013-01-16 15:27:25 UTC
Per the XSD provided in the spec, an empty job (no listeners, flows/steps/etc) is valid. We probably should require that a job either contain the elements required to run or be extended from.
Well, I dunno ... if people want to pass their time running empty jobs, who are we to say no?
One might similarly argue the Java spec should disallow classes that have no members, or perhaps methods that have no code, or ... well you see where I'm going.
I don't think this is worth worrying about. If others feel strongly about it, we can consider adding validation to kick out the job with an exception if there's nothing in it. But I'm reluctant to do that because it adds more surface area to the spec and I'm unconvinced the addition has substantive value.