Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
783a9e4f
Commit
783a9e4f
authored
Jul 22, 2020
by
Markus Scheidgen
Browse files
Minor optimade fixes.
parent
1ba4ba8a
Pipeline
#79155
passed with stages
in 20 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/app/optimade/models.py
View file @
783a9e4f
...
...
@@ -123,7 +123,7 @@ class Meta():
self
.
more_data_available
=
available
>
returned
if
available
is
not
None
else
False
self
.
provider
=
dict
(
name
=
config
.
meta
.
name
,
description
=
config
.
meta
.
name
,
description
=
config
.
meta
.
description
,
prefix
=
'nomad'
,
homepage
=
config
.
meta
.
homepage
,
index_base_url
=
url
(
version
=
None
,
prefix
=
'index'
)
...
...
@@ -200,10 +200,10 @@ json_api_data_object_model = api.model('DataObject', {
description
=
'The id of the object.'
),
'attributes'
:
fields
.
Raw
(
description
=
'A dictionary, containing key-value pairs representing the entries properties'
)
description
=
'A dictionary, containing key-value pairs representing the entries properties'
)
,
# TODO
# further optional fields: links, meta, relationships
'relationships'
:
fields
.
Raw
(
description
=
'In accordance with section Relationships, all entry types MAY use relationships to describe relations to other entries.'
)
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment