Add detailed location info to json artifact (#127)

* add detailed location info to json artifact

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* decompose json presenter

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2020-08-07 10:05:16 -04:00
committed by GitHub
parent dc8dfc8457
commit 817ce61036
9 changed files with 232 additions and 124 deletions
+34 -23
View File
@@ -4,6 +4,37 @@
"artifacts": {
"items": {
"properties": {
"found-by": {
"items": {
"type": "string"
},
"type": "array"
},
"locations": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"properties": {
"layer-index": {
"type": "integer"
},
"path": {
"type": "string"
}
},
"required": [
"layer-index",
"path"
],
"type": "object"
}
]
},
"type": "array"
},
"metadata": {
"properties": {
"architecture": {
@@ -425,27 +456,6 @@
"name": {
"type": "string"
},
"sources": {
"items": {
"properties": {
"found-by": {
"type": "string"
},
"locations": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"found-by",
"locations"
],
"type": "object"
},
"type": "array"
},
"type": {
"type": "string"
},
@@ -454,8 +464,9 @@
}
},
"required": [
"found-by",
"locations",
"name",
"sources",
"type",
"version"
],
@@ -520,4 +531,4 @@
"artifacts"
],
"type": "object"
}
}