diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py b/SAS/TMSS/backend/src/tmss/tmssapp/models/common.py index 718a614c734b989f476b81739aaf2ed818c11f9a..69a57bf61b9ecae80e17305cc49050ff6f186f8e 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,