@classmethod
    def from_spec(cls, spec, validator_map, resource_roots):
        jsonschema.validate(spec, cls.SPEC_SCHEMA)
        specs = spec['validators']
        validator = SaharaAllValidator.from_spec(
            specs, validator_map, resource_roots)
        return cls(validator)
Constructs and returns a validator from a specification object.
dataset/ETHPy150Open openstack/sahara/sahara/plugins/images.py/SaharaImageValidator.from_spec