Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
b3d71a73
Commit
b3d71a73
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-2541
: just use the plain schema
parent
199fe214
No related branches found
No related tags found
1 merge request
!1134
Draft: TMSS-2541: implemented method is_used_in_unfinised_tasks and added tests to...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/tmssapp/models/common.py
+2
-2
2 additions, 2 deletions
SAS/TMSS/backend/src/tmss/tmssapp/models/common.py
with
2 additions
and
2 deletions
SAS/TMSS/backend/src/tmss/tmssapp/models/common.py
+
2
−
2
View file @
b3d71a73
...
...
@@ -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,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment