mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 10:36:45 +01:00
RPM Epoch should be optional in the json schema (#880)
This commit is contained in:
parent
003d28ad48
commit
2946813a74
@ -6,5 +6,5 @@ const (
|
|||||||
|
|
||||||
// JSONSchemaVersion is the current schema version output by the JSON encoder
|
// JSONSchemaVersion is the current schema version output by the JSON encoder
|
||||||
// This is roughly following the "SchemaVer" guidelines for versioning the JSON schema. Please see schema/json/README.md for details on how to increment.
|
// This is roughly following the "SchemaVer" guidelines for versioning the JSON schema. Please see schema/json/README.md for details on how to increment.
|
||||||
JSONSchemaVersion = "3.0.1"
|
JSONSchemaVersion = "3.1.0"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -88,7 +88,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"version": "3.0.1",
|
"version": "3.1.0",
|
||||||
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-3.0.1.json"
|
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-3.1.0.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -184,7 +184,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"version": "3.0.1",
|
"version": "3.1.0",
|
||||||
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-3.0.1.json"
|
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-3.1.0.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -111,7 +111,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"version": "3.0.1",
|
"version": "3.1.0",
|
||||||
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-3.0.1.json"
|
"url": "https://raw.githubusercontent.com/anchore/syft/main/schema/json/schema-3.1.0.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1229
schema/json/schema-3.1.0.json
Normal file
1229
schema/json/schema-3.1.0.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -5,12 +5,10 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/anchore/syft/syft/file"
|
|
||||||
|
|
||||||
"github.com/scylladb/go-set/strset"
|
|
||||||
|
|
||||||
"github.com/anchore/packageurl-go"
|
"github.com/anchore/packageurl-go"
|
||||||
|
"github.com/anchore/syft/syft/file"
|
||||||
"github.com/anchore/syft/syft/linux"
|
"github.com/anchore/syft/syft/linux"
|
||||||
|
"github.com/scylladb/go-set/strset"
|
||||||
)
|
)
|
||||||
|
|
||||||
const RpmDBGlob = "**/var/lib/rpm/Packages"
|
const RpmDBGlob = "**/var/lib/rpm/Packages"
|
||||||
@ -24,7 +22,7 @@ var (
|
|||||||
type RpmdbMetadata struct {
|
type RpmdbMetadata struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
Epoch *int `json:"epoch" cyclonedx:"epoch"`
|
Epoch *int `json:"epoch" cyclonedx:"epoch" jsonschema:"nullable"`
|
||||||
Arch string `json:"architecture"`
|
Arch string `json:"architecture"`
|
||||||
Release string `json:"release" cyclonedx:"release"`
|
Release string `json:"release" cyclonedx:"release"`
|
||||||
SourceRpm string `json:"sourceRpm" cyclonedx:"sourceRpm"`
|
SourceRpm string `json:"sourceRpm" cyclonedx:"sourceRpm"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user