Skip to content
Snippets Groups Projects
Commit b3d71a73 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-2541: just use the plain schema

parent 199fe214
No related branches found
No related tags found
1 merge request!1134Draft: TMSS-2541: implemented method is_used_in_unfinised_tasks and added tests to...
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment