schema validation: runner schema is always a full schema now
@@ -35,7 +35,8 @@ _JSON_TYPES = _JSON_BASIC_TYPES | _JSON_COMPLEX_TYPES
def _validate_runner(runner_schema, result):
LOG.debug("Validating runner output: %s", runner_schema)
- # runner's output is always an object.
+ if "type" not in runner_schema or runner_schema["type"] not in _JSON_TYPES:
+ # we have a partial object schema with jsonschemas for the properties
runner_schema = {
"type": "object",
"properties": runner_schema,
