From b3d71a73c79657ce1844df8c6c7995099d0873e5 Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Mon, 14 Aug 2023 15:18:11 +0200 Subject: [PATCH] TMSS-2541: just use the plain schema --- SAS/TMSS/backend/src/tmss/tmssapp/models/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py b/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py index 718a614c734..69a57bf61b9 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py @@ -223,14 +223,14 @@ class AbstractSchemaTemplate(AbstractTemplate): def get_default_json_document_for_schema(self) -> dict: '''get a json document object (dict) which complies with this template's schema and with all the defaults filled in.''' - default_json_doc = get_default_json_object_for_schema(self.ref_resolved_schema) + default_json_doc = get_default_json_object_for_schema(self.schema) # make sure we point to the ref_resolved version of the schema default_json_doc['$schema'] = ref_resolved_url(default_json_doc['$schema']) return default_json_doc def add_defaults_to_json_object_for_schema(self, json_object: dict) -> dict: '''add any missing default propery to the given json document object (dict).''' - return add_defaults_to_json_object_for_schema(json_object, self.ref_resolved_schema) + return add_defaults_to_json_object_for_schema(json_object, self.schema) def annotate_and_validate_json_schema(self): '''annotate this schema with the template's name, description and version, -- GitLab