Extracted from https://github.com/parruda/swarm/issues/174 When parsing the YAML, we should raise an exception if invalid keys are used.