"spec_version" property
magsen opened this issue · 0 comments
magsen commented
When getting a specific object or a list of object ( GET {api-root}/collections/{id}/objects/{object-id}/ ), the property field "spec_version"
is equals to the "type"
, it should be "2.1"
(or others version spec).
OBSERVED:
{
"more": false,
"objects": [
{
"id": "marking-definition--613f2e26-407d-48c7-9eca-b8e91df99dc9",
"type": "marking-definition",
"spec_version": "marking-definition",
"name": "TLP:WHITE",
"created": "2017-01-20T00:00:00.000Z",
"modified": "2022-07-29T13:42:44.472979Z",
"definition": {
"tlp": "white"
},
"definition_type": "tlp"
}
]
}
EXPECTED:
{
"more": false,
"objects": [
{
"id": "marking-definition--613f2e26-407d-48c7-9eca-b8e91df99dc9",
"type": "marking-definition",
"spec_version": "2.1",
"name": "TLP:WHITE",
"created": "2017-01-20T00:00:00.000Z",
"modified": "2022-07-29T13:42:44.472979Z",
"definition": {
"tlp": "white"
},
"definition_type": "tlp"
}
]
}
You may investigate theses lines:
Line 658 in 7f58505
Line 741 in 7f58505