diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py b/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py index 834f7bbcdb947eec22918e44ec9f910f4957da65..75b834097b410f744a568b33c67b800ebc82a369 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py @@ -195,7 +195,7 @@ class Template(NamedVersionedCommon): logger.error("Could not override schema $id with auto-generated url: %s", e) # this template's schema has a schema of its own (usually the draft-06 meta schema). Validate it. - validate_json_against_its_schema(self.schema) + validate_json_against_its_schema(self.schema, cache=TemplateSchemaMixin._schema_cache, max_cache_age=TemplateSchemaMixin._MAX_SCHEMA_CACHE_AGE) def validate_document(self, json_doc: typing.Union[str, dict]) -> bool: '''validate the given json_doc against the template's schema