pr: resolve schema drift

Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
Christopher Phillips 2026-01-30 17:02:09 -05:00
parent 65e58ba33d
commit 2dffebd34a
No known key found for this signature in database
4 changed files with 4274 additions and 12 deletions

View File

@ -3,7 +3,7 @@ package internal
const ( 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 = "16.1.1" JSONSchemaVersion = "16.1.3"
// Changelog // Changelog
// 16.1.0 - reformulated the python pdm fields (added "URL" and removed the unused "path" field). // 16.1.0 - reformulated the python pdm fields (added "URL" and removed the unused "path" field).

View File

@ -1169,7 +1169,11 @@
}, },
"osCPE": { "osCPE": {
"type": "string", "type": "string",
"description": "OSCPE is a CPE name for the OS, typically corresponding to CPE_NAME in os-release (e.g. cpe:/o:fedoraproject:fedora:33)" "description": "OSCPE is a CPE name for the OS, typically corresponding to CPE_NAME in os-release (e.g. cpe:/o:fedoraproject:fedora:33)\n\nDeprecated: in Syft 2.0 the struct tag will be corrected to `osCpe` to match the systemd spec casing."
},
"appCpe": {
"type": "string",
"description": "AppCpe is a CPE name for the upstream Application, as found in NVD CPE search (e.g. cpe:2.3:a:gnu:coreutils:5.0)"
}, },
"os": { "os": {
"type": "string", "type": "string",
@ -1648,19 +1652,11 @@
}, },
"type": "array", "type": "array",
"description": "ArchiveDigests is cryptographic hashes of the archive file" "description": "ArchiveDigests is cryptographic hashes of the archive file"
},
"containedPackages": {
"items": {
"type": "string"
},
"type": "array",
"description": "ContainedPackages is a list of all package names contained in the jar"
} }
}, },
"type": "object", "type": "object",
"required": [ "required": [
"virtualPath", "virtualPath"
"containedPackages"
], ],
"description": "JavaArchive encapsulates all Java ecosystem metadata for a package as well as an (optional) parent relationship." "description": "JavaArchive encapsulates all Java ecosystem metadata for a package as well as an (optional) parent relationship."
}, },

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "anchore.io/schema/syft/json/16.1.1/document", "$id": "anchore.io/schema/syft/json/16.1.3/document",
"$ref": "#/$defs/Document", "$ref": "#/$defs/Document",
"$defs": { "$defs": {
"AlpmDbEntry": { "AlpmDbEntry": {