From 5385232b40869749fd3b5ba1e3a3c1a17dd220c7 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Tue, 9 Apr 2019 01:45:37 -0700 Subject: [PATCH] don't attempt cerberus normalization which encumbers the validation with additional requirements, specifically makes it difficult to validate a subclass of `dict` because it expects a constructor that works like dict.__init__() --- brozzler/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brozzler/model.py b/brozzler/model.py index 33e8546..77dae70 100644 --- a/brozzler/model.py +++ b/brozzler/model.py @@ -2,7 +2,7 @@ brozzler/models.py - model classes representing jobs, sites, and pages, with related logic -Copyright (C) 2014-2018 Internet Archive +Copyright (C) 2014-2019 Internet Archive Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -48,7 +48,7 @@ class InvalidJobConf(Exception): def validate_conf(job_conf, schema=load_schema()): v = JobValidator(schema) - if not v.validate(job_conf): + if not v.validate(job_conf, normalize=False): raise InvalidJobConf(v.errors) def merge(a, b):