syft/schema/json/schema-12.0.0.json

2201 lines
43 KiB
JSON
Raw Normal View History

Remove MetadataType from core package object and normalize JSON metadataType values (#1983) * [wip] Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * distinct the package metadata functions Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove metadata type from package core model Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * incorporate review feedback for names Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add RPM archive metadata and split parser helpers Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * clarify the python package metadata type Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * rename the KB metadata type Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * break hackage and composer types by use case Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * linting fix Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix encoding and decoding for syft-json and cyclonedx Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * bump json schema to 11 Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update cyclonedx-json snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update cyclonedx-xml snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update spdx-json snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update spdx-tv snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update syft-json snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * correct metadata type in stack yaml parser test Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix bom-ref redactor for cyclonedx-xml Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tests for legacy package metadata names Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * regenerate json schema v11 Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix legacy HackageMetadataType reflect type value check Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix linting Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * packagemetadata discovery should account for type shadowing Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix linting Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix cli tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * bump json schema version to v12 Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update json schema to incorporate changes from main Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add syft-json legacy config option Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tests around v11-v12 json decoding Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add docs for SYFT_JSON_LEGACY Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * rename structs to be compliant with new naming scheme Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2023-10-30 16:12:04 +00:00
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "anchore.io/schema/syft/json/12.0.0/document",
"$ref": "#/$defs/Document",
"$defs": {
"AlpmDbEntry": {
"properties": {
"basepackage": {
"type": "string"
},
"package": {
"type": "string"
},
"version": {
"type": "string"
},
"description": {
"type": "string"
},
"architecture": {
"type": "string"
},
"size": {
"type": "integer"
},
"packager": {
"type": "string"
},
"url": {
"type": "string"
},
"validation": {
"type": "string"
},
"reason": {
"type": "integer"
},
"files": {
"items": {
"$ref": "#/$defs/AlpmFileRecord"
},
"type": "array"
},
"backup": {
"items": {
"$ref": "#/$defs/AlpmFileRecord"
},
"type": "array"
}
},
"type": "object",
"required": [
"basepackage",
"package",
"version",
"description",
"architecture",
"size",
"packager",
"url",
"validation",
"reason",
"files",
"backup"
]
},
"AlpmFileRecord": {
"properties": {
"path": {
"type": "string"
},
"type": {
"type": "string"
},
"uid": {
"type": "string"
},
"gid": {
"type": "string"
},
"time": {
"type": "string",
"format": "date-time"
},
"size": {
"type": "string"
},
"link": {
"type": "string"
},
"digest": {
"items": {
"$ref": "#/$defs/Digest"
},
"type": "array"
}
},
"type": "object"
},
"ApkDbEntry": {
"properties": {
"package": {
"type": "string"
},
"originPackage": {
"type": "string"
},
"maintainer": {
"type": "string"
},
"version": {
"type": "string"
},
"architecture": {
"type": "string"
},
"url": {
"type": "string"
},
"description": {
"type": "string"
},
"size": {
"type": "integer"
},
"installedSize": {
"type": "integer"
},
"pullDependencies": {
"items": {
"type": "string"
},
"type": "array"
},
"provides": {
"items": {
"type": "string"
},
"type": "array"
},
"pullChecksum": {
"type": "string"
},
"gitCommitOfApkPort": {
"type": "string"
},
"files": {
"items": {
"$ref": "#/$defs/ApkFileRecord"
},
"type": "array"
}
},
"type": "object",
"required": [
"package",
"originPackage",
"maintainer",
"version",
"architecture",
"url",
"description",
"size",
"installedSize",
"pullDependencies",
"provides",
"pullChecksum",
"gitCommitOfApkPort",
"files"
]
},
"ApkFileRecord": {
"properties": {
"path": {
"type": "string"
},
"ownerUid": {
"type": "string"
},
"ownerGid": {
"type": "string"
},
"permissions": {
"type": "string"
},
"digest": {
"$ref": "#/$defs/Digest"
}
},
"type": "object",
"required": [
"path"
]
},
"BinarySignature": {
"properties": {
"matches": {
"items": {
"$ref": "#/$defs/ClassifierMatch"
},
"type": "array"
}
},
"type": "object",
"required": [
"matches"
]
},
"CConanFileEntry": {
"properties": {
"ref": {
"type": "string"
}
},
"type": "object",
"required": [
"ref"
]
},
"CConanInfoEntry": {
"properties": {
"ref": {
"type": "string"
},
"package_id": {
"type": "string"
}
},
"type": "object",
"required": [
"ref"
]
},
"CConanLockEntry": {
"properties": {
"ref": {
"type": "string"
},
"package_id": {
"type": "string"
},
"prev": {
"type": "string"
},
"requires": {
"items": {
"type": "string"
},
"type": "array"
},
"build_requires": {
"items": {
"type": "string"
},
"type": "array"
},
"py_requires": {
"items": {
"type": "string"
},
"type": "array"
},
"options": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"path": {
"type": "string"
},
"context": {
"type": "string"
}
},
"type": "object",
"required": [
"ref"
]
},
"ClassifierMatch": {
"properties": {
"classifier": {
"type": "string"
},
"location": {
"$ref": "#/$defs/Location"
}
},
"type": "object",
"required": [
"classifier",
"location"
]
},
"CocoaPodfileLockEntry": {
"properties": {
"checksum": {
"type": "string"
}
},
"type": "object",
"required": [
"checksum"
]
},
"Coordinates": {
"properties": {
"path": {
"type": "string"
},
"layerID": {
"type": "string"
}
},
"type": "object",
"required": [
"path"
]
},
"DartPubspecLockEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"hosted_url": {
"type": "string"
},
"vcs_url": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"version"
]
},
"Descriptor": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"configuration": true
},
"type": "object",
"required": [
"name",
"version"
]
},
"Digest": {
"properties": {
"algorithm": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object",
"required": [
"algorithm",
"value"
]
},
"Document": {
"properties": {
"artifacts": {
"items": {
"$ref": "#/$defs/Package"
},
"type": "array"
},
"artifactRelationships": {
"items": {
"$ref": "#/$defs/Relationship"
},
"type": "array"
},
"files": {
"items": {
"$ref": "#/$defs/File"
},
"type": "array"
},
"secrets": {
"items": {
"$ref": "#/$defs/Secrets"
},
"type": "array"
},
"source": {
"$ref": "#/$defs/Source"
},
"distro": {
"$ref": "#/$defs/LinuxRelease"
},
"descriptor": {
"$ref": "#/$defs/Descriptor"
},
"schema": {
"$ref": "#/$defs/Schema"
}
},
"type": "object",
"required": [
"artifacts",
"artifactRelationships",
"source",
"distro",
"descriptor",
"schema"
]
},
"DotnetDepsEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"path": {
"type": "string"
},
"sha512": {
"type": "string"
},
"hashPath": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"version",
"path",
"sha512",
"hashPath"
]
},
"DotnetPortableExecutableEntry": {
"properties": {
"assemblyVersion": {
"type": "string"
},
"legalCopyright": {
"type": "string"
},
"comments": {
"type": "string"
},
"internalName": {
"type": "string"
},
"companyName": {
"type": "string"
},
"productName": {
"type": "string"
},
"productVersion": {
"type": "string"
}
},
"type": "object",
"required": [
"assemblyVersion",
"legalCopyright",
"companyName",
"productName",
"productVersion"
]
},
"DpkgDbEntry": {
"properties": {
"package": {
"type": "string"
},
"source": {
"type": "string"
},
"version": {
"type": "string"
},
"sourceVersion": {
"type": "string"
},
"architecture": {
"type": "string"
},
"maintainer": {
"type": "string"
},
"installedSize": {
"type": "integer"
},
"provides": {
"items": {
"type": "string"
},
"type": "array"
},
"depends": {
"items": {
"type": "string"
},
"type": "array"
},
"preDepends": {
"items": {
"type": "string"
},
"type": "array"
},
"files": {
"items": {
"$ref": "#/$defs/DpkgFileRecord"
},
"type": "array"
}
},
"type": "object",
"required": [
"package",
"source",
"version",
"sourceVersion",
"architecture",
"maintainer",
"installedSize",
"files"
]
},
"DpkgFileRecord": {
"properties": {
"path": {
"type": "string"
},
"digest": {
"$ref": "#/$defs/Digest"
},
"isConfigFile": {
"type": "boolean"
}
},
"type": "object",
"required": [
"path",
"isConfigFile"
]
},
"ElixirMixLockEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"pkgHash": {
"type": "string"
},
"pkgHashExt": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"version",
"pkgHash",
"pkgHashExt"
]
},
"ErlangRebarLockEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"pkgHash": {
"type": "string"
},
"pkgHashExt": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"version",
"pkgHash",
"pkgHashExt"
]
},
"File": {
"properties": {
"id": {
"type": "string"
},
"location": {
"$ref": "#/$defs/Coordinates"
},
"metadata": {
"$ref": "#/$defs/FileMetadataEntry"
},
"contents": {
"type": "string"
},
"digests": {
"items": {
"$ref": "#/$defs/Digest"
},
"type": "array"
},
"licenses": {
"items": {
"$ref": "#/$defs/FileLicense"
},
"type": "array"
}
},
"type": "object",
"required": [
"id",
"location"
]
},
"FileLicense": {
"properties": {
"value": {
"type": "string"
},
"spdxExpression": {
"type": "string"
},
"type": {
"type": "string"
},
"evidence": {
"$ref": "#/$defs/FileLicenseEvidence"
}
},
"type": "object",
"required": [
"value",
"spdxExpression",
"type"
]
},
"FileLicenseEvidence": {
"properties": {
"confidence": {
"type": "integer"
},
"offset": {
"type": "integer"
},
"extent": {
"type": "integer"
}
},
"type": "object",
"required": [
"confidence",
"offset",
"extent"
]
},
"FileMetadataEntry": {
"properties": {
"mode": {
"type": "integer"
},
"type": {
"type": "string"
},
"linkDestination": {
"type": "string"
},
"userID": {
"type": "integer"
},
"groupID": {
"type": "integer"
},
"mimeType": {
"type": "string"
},
"size": {
"type": "integer"
}
},
"type": "object",
"required": [
"mode",
"type",
"userID",
"groupID",
"mimeType",
"size"
]
},
"GoModuleBuildinfoEntry": {
"properties": {
"goBuildSettings": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"goCompiledVersion": {
"type": "string"
},
"architecture": {
"type": "string"
},
"h1Digest": {
"type": "string"
},
"mainModule": {
"type": "string"
},
"goCryptoSettings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"required": [
"goCompiledVersion",
"architecture"
]
},
"GoModuleEntry": {
"properties": {
"h1Digest": {
"type": "string"
}
},
"type": "object"
},
"HaskellHackageStackEntry": {
"properties": {
"pkgHash": {
"type": "string"
}
},
"type": "object"
},
"HaskellHackageStackLockEntry": {
"properties": {
"pkgHash": {
"type": "string"
},
"snapshotURL": {
"type": "string"
}
},
"type": "object"
},
"IDLikes": {
"items": {
"type": "string"
},
"type": "array"
},
"JavaArchive": {
"properties": {
"virtualPath": {
"type": "string"
},
"manifest": {
"$ref": "#/$defs/JavaManifest"
},
"pomProperties": {
"$ref": "#/$defs/JavaPomProperties"
},
"pomProject": {
"$ref": "#/$defs/JavaPomProject"
},
"digest": {
"items": {
"$ref": "#/$defs/Digest"
},
"type": "array"
}
},
"type": "object",
"required": [
"virtualPath"
]
},
"JavaManifest": {
"properties": {
"main": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"namedSections": {
"patternProperties": {
".*": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"JavaPomParent": {
"properties": {
"groupId": {
"type": "string"
},
"artifactId": {
"type": "string"
},
"version": {
"type": "string"
}
},
"type": "object",
"required": [
"groupId",
"artifactId",
"version"
]
},
"JavaPomProject": {
"properties": {
"path": {
"type": "string"
},
"parent": {
"$ref": "#/$defs/JavaPomParent"
},
"groupId": {
"type": "string"
},
"artifactId": {
"type": "string"
},
"version": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object",
"required": [
"path",
"groupId",
"artifactId",
"version",
"name"
]
},
"JavaPomProperties": {
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
},
"groupId": {
"type": "string"
},
"artifactId": {
"type": "string"
},
"version": {
"type": "string"
},
"scope": {
"type": "string"
},
"extraFields": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"required": [
"path",
"name",
"groupId",
"artifactId",
"version"
]
},
"JavascriptNpmPackage": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"author": {
"type": "string"
},
"homepage": {
"type": "string"
},
"description": {
"type": "string"
},
"url": {
"type": "string"
},
"private": {
"type": "boolean"
}
},
"type": "object",
"required": [
"name",
"version",
"author",
"homepage",
"description",
"url",
"private"
]
},
"JavascriptNpmPackageLockEntry": {
"properties": {
"resolved": {
"type": "string"
},
"integrity": {
"type": "string"
}
},
"type": "object",
"required": [
"resolved",
"integrity"
]
},
"License": {
"properties": {
"value": {
"type": "string"
},
"spdxExpression": {
"type": "string"
},
"type": {
"type": "string"
},
"urls": {
"items": {
"type": "string"
},
"type": "array"
},
"locations": {
"items": {
"$ref": "#/$defs/Location"
},
"type": "array"
}
},
"type": "object",
"required": [
"value",
"spdxExpression",
"type",
"urls",
"locations"
]
},
"LinuxKernelArchive": {
"properties": {
"name": {
"type": "string"
},
"architecture": {
"type": "string"
},
"version": {
"type": "string"
},
"extendedVersion": {
"type": "string"
},
"buildTime": {
"type": "string"
},
"author": {
"type": "string"
},
"format": {
"type": "string"
},
"rwRootFS": {
"type": "boolean"
},
"swapDevice": {
"type": "integer"
},
"rootDevice": {
"type": "integer"
},
"videoMode": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"architecture",
"version"
]
},
"LinuxKernelModule": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"sourceVersion": {
"type": "string"
},
"path": {
"type": "string"
},
"description": {
"type": "string"
},
"author": {
"type": "string"
},
"license": {
"type": "string"
},
"kernelVersion": {
"type": "string"
},
"versionMagic": {
"type": "string"
},
"parameters": {
"patternProperties": {
".*": {
"$ref": "#/$defs/LinuxKernelModuleParameter"
}
},
"type": "object"
}
},
"type": "object"
},
"LinuxKernelModuleParameter": {
"properties": {
"type": {
"type": "string"
},
"description": {
"type": "string"
}
},
"type": "object"
},
"LinuxRelease": {
"properties": {
"prettyName": {
"type": "string"
},
"name": {
"type": "string"
},
"id": {
"type": "string"
},
"idLike": {
"$ref": "#/$defs/IDLikes"
},
"version": {
"type": "string"
},
"versionID": {
"type": "string"
},
"versionCodename": {
"type": "string"
},
"buildID": {
"type": "string"
},
"imageID": {
"type": "string"
},
"imageVersion": {
"type": "string"
},
"variant": {
"type": "string"
},
"variantID": {
"type": "string"
},
"homeURL": {
"type": "string"
},
"supportURL": {
"type": "string"
},
"bugReportURL": {
"type": "string"
},
"privacyPolicyURL": {
"type": "string"
},
"cpeName": {
"type": "string"
},
"supportEnd": {
"type": "string"
}
},
"type": "object"
},
"Location": {
"properties": {
"path": {
"type": "string"
},
"layerID": {
"type": "string"
},
"annotations": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object",
"required": [
"path"
]
},
"MicrosoftKbPatch": {
"properties": {
"product_id": {
"type": "string"
},
"kb": {
"type": "string"
}
},
"type": "object",
"required": [
"product_id",
"kb"
]
},
"NixStoreEntry": {
"properties": {
"outputHash": {
"type": "string"
},
"output": {
"type": "string"
},
"files": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"required": [
"outputHash",
"files"
]
},
"Package": {
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"type": {
"type": "string"
},
"foundBy": {
"type": "string"
},
"locations": {
"items": {
"$ref": "#/$defs/Location"
},
"type": "array"
},
"licenses": {
"$ref": "#/$defs/licenses"
},
"language": {
"type": "string"
},
"cpes": {
"items": {
"type": "string"
},
"type": "array"
},
"purl": {
"type": "string"
},
"metadataType": {
"type": "string"
},
"metadata": {
"anyOf": [
{
"type": "null"
},
{
"$ref": "#/$defs/AlpmDbEntry"
},
{
"$ref": "#/$defs/ApkDbEntry"
},
{
"$ref": "#/$defs/BinarySignature"
},
{
"$ref": "#/$defs/CConanFileEntry"
},
{
"$ref": "#/$defs/CConanInfoEntry"
},
{
"$ref": "#/$defs/CConanLockEntry"
},
{
"$ref": "#/$defs/CocoaPodfileLockEntry"
},
{
"$ref": "#/$defs/DartPubspecLockEntry"
},
{
"$ref": "#/$defs/DotnetDepsEntry"
},
{
"$ref": "#/$defs/DotnetPortableExecutableEntry"
},
{
"$ref": "#/$defs/DpkgDbEntry"
},
{
"$ref": "#/$defs/ElixirMixLockEntry"
},
{
"$ref": "#/$defs/ErlangRebarLockEntry"
},
{
"$ref": "#/$defs/GoModuleBuildinfoEntry"
},
{
"$ref": "#/$defs/GoModuleEntry"
},
{
"$ref": "#/$defs/HaskellHackageStackEntry"
},
{
"$ref": "#/$defs/HaskellHackageStackLockEntry"
},
{
"$ref": "#/$defs/JavaArchive"
},
{
"$ref": "#/$defs/JavascriptNpmPackage"
},
{
"$ref": "#/$defs/JavascriptNpmPackageLockEntry"
},
{
"$ref": "#/$defs/LinuxKernelArchive"
},
{
"$ref": "#/$defs/LinuxKernelModule"
},
{
"$ref": "#/$defs/MicrosoftKbPatch"
},
{
"$ref": "#/$defs/NixStoreEntry"
},
{
"$ref": "#/$defs/PhpComposerInstalledEntry"
},
{
"$ref": "#/$defs/PhpComposerLockEntry"
},
{
"$ref": "#/$defs/PortageDbEntry"
},
{
"$ref": "#/$defs/PythonPackage"
},
{
"$ref": "#/$defs/PythonPipRequirementsEntry"
},
{
"$ref": "#/$defs/PythonPipfileLockEntry"
},
{
"$ref": "#/$defs/RDescription"
},
{
"$ref": "#/$defs/RpmArchive"
},
{
"$ref": "#/$defs/RpmDbEntry"
},
{
"$ref": "#/$defs/RubyGemspec"
},
{
"$ref": "#/$defs/RustCargoAuditEntry"
},
{
"$ref": "#/$defs/RustCargoLockEntry"
},
{
"$ref": "#/$defs/SwiftPackageManagerLockEntry"
}
]
}
},
"type": "object",
"required": [
"id",
"name",
"version",
"type",
"foundBy",
"locations",
"licenses",
"language",
"cpes",
"purl"
]
},
"PhpComposerAuthors": {
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"homepage": {
"type": "string"
}
},
"type": "object",
"required": [
"name"
]
},
"PhpComposerExternalReference": {
"properties": {
"type": {
"type": "string"
},
"url": {
"type": "string"
},
"reference": {
"type": "string"
},
"shasum": {
"type": "string"
}
},
"type": "object",
"required": [
"type",
"url",
"reference"
]
},
"PhpComposerInstalledEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"source": {
"$ref": "#/$defs/PhpComposerExternalReference"
},
"dist": {
"$ref": "#/$defs/PhpComposerExternalReference"
},
"require": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"provide": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"require-dev": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"suggest": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"license": {
"items": {
"type": "string"
},
"type": "array"
},
"type": {
"type": "string"
},
"notification-url": {
"type": "string"
},
"bin": {
"items": {
"type": "string"
},
"type": "array"
},
"authors": {
"items": {
"$ref": "#/$defs/PhpComposerAuthors"
},
"type": "array"
},
"description": {
"type": "string"
},
"homepage": {
"type": "string"
},
"keywords": {
"items": {
"type": "string"
},
"type": "array"
},
"time": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"version",
"source",
"dist"
]
},
"PhpComposerLockEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"source": {
"$ref": "#/$defs/PhpComposerExternalReference"
},
"dist": {
"$ref": "#/$defs/PhpComposerExternalReference"
},
"require": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"provide": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"require-dev": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"suggest": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"license": {
"items": {
"type": "string"
},
"type": "array"
},
"type": {
"type": "string"
},
"notification-url": {
"type": "string"
},
"bin": {
"items": {
"type": "string"
},
"type": "array"
},
"authors": {
"items": {
"$ref": "#/$defs/PhpComposerAuthors"
},
"type": "array"
},
"description": {
"type": "string"
},
"homepage": {
"type": "string"
},
"keywords": {
"items": {
"type": "string"
},
"type": "array"
},
"time": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"version",
"source",
"dist"
]
},
"PortageDbEntry": {
"properties": {
"installedSize": {
"type": "integer"
},
"files": {
"items": {
"$ref": "#/$defs/PortageFileRecord"
},
"type": "array"
}
},
"type": "object",
"required": [
"installedSize",
"files"
]
},
"PortageFileRecord": {
"properties": {
"path": {
"type": "string"
},
"digest": {
"$ref": "#/$defs/Digest"
}
},
"type": "object",
"required": [
"path"
]
},
"PythonDirectURLOriginInfo": {
"properties": {
"url": {
"type": "string"
},
"commitId": {
"type": "string"
},
"vcs": {
"type": "string"
}
},
"type": "object",
"required": [
"url"
]
},
"PythonFileDigest": {
"properties": {
"algorithm": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object",
"required": [
"algorithm",
"value"
]
},
"PythonFileRecord": {
"properties": {
"path": {
"type": "string"
},
"digest": {
"$ref": "#/$defs/PythonFileDigest"
},
"size": {
"type": "string"
}
},
"type": "object",
"required": [
"path"
]
},
"PythonPackage": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"author": {
"type": "string"
},
"authorEmail": {
"type": "string"
},
"platform": {
"type": "string"
},
"files": {
"items": {
"$ref": "#/$defs/PythonFileRecord"
},
"type": "array"
},
"sitePackagesRootPath": {
"type": "string"
},
"topLevelPackages": {
"items": {
"type": "string"
},
"type": "array"
},
"directUrlOrigin": {
"$ref": "#/$defs/PythonDirectURLOriginInfo"
}
},
"type": "object",
"required": [
"name",
"version",
"author",
"authorEmail",
"platform",
"sitePackagesRootPath"
]
},
"PythonPipRequirementsEntry": {
"properties": {
"name": {
"type": "string"
},
"extras": {
"items": {
"type": "string"
},
"type": "array"
},
"versionConstraint": {
"type": "string"
},
"url": {
"type": "string"
},
"markers": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"versionConstraint"
]
},
"PythonPipfileLockEntry": {
"properties": {
"hashes": {
"items": {
"type": "string"
},
"type": "array"
},
"index": {
"type": "string"
}
},
"type": "object",
"required": [
"hashes",
"index"
]
},
"RDescription": {
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"author": {
"type": "string"
},
"maintainer": {
"type": "string"
},
"url": {
"items": {
"type": "string"
},
"type": "array"
},
"repository": {
"type": "string"
},
"built": {
"type": "string"
},
"needsCompilation": {
"type": "boolean"
},
"imports": {
"items": {
"type": "string"
},
"type": "array"
},
"depends": {
"items": {
"type": "string"
},
"type": "array"
},
"suggests": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"Relationship": {
"properties": {
"parent": {
"type": "string"
},
"child": {
"type": "string"
},
"type": {
"type": "string"
},
"metadata": true
},
"type": "object",
"required": [
"parent",
"child",
"type"
]
},
"RpmArchive": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"epoch": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"architecture": {
"type": "string"
},
"release": {
"type": "string"
},
"sourceRpm": {
"type": "string"
},
"size": {
"type": "integer"
},
"vendor": {
"type": "string"
},
"modularityLabel": {
"type": "string"
},
"files": {
"items": {
"$ref": "#/$defs/RpmFileRecord"
},
"type": "array"
}
},
"type": "object",
"required": [
"name",
"version",
"epoch",
"architecture",
"release",
"sourceRpm",
"size",
"vendor",
"modularityLabel",
"files"
]
},
"RpmDbEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"epoch": {
"oneOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"architecture": {
"type": "string"
},
"release": {
"type": "string"
},
"sourceRpm": {
"type": "string"
},
"size": {
"type": "integer"
},
"vendor": {
"type": "string"
},
"modularityLabel": {
"type": "string"
},
"files": {
"items": {
"$ref": "#/$defs/RpmFileRecord"
},
"type": "array"
}
},
"type": "object",
"required": [
"name",
"version",
"epoch",
"architecture",
"release",
"sourceRpm",
"size",
"vendor",
"modularityLabel",
"files"
]
},
"RpmFileRecord": {
"properties": {
"path": {
"type": "string"
},
"mode": {
"type": "integer"
},
"size": {
"type": "integer"
},
"digest": {
"$ref": "#/$defs/Digest"
},
"userName": {
"type": "string"
},
"groupName": {
"type": "string"
},
"flags": {
"type": "string"
}
},
"type": "object",
"required": [
"path",
"mode",
"size",
"digest",
"userName",
"groupName",
"flags"
]
},
"RubyGemspec": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"files": {
"items": {
"type": "string"
},
"type": "array"
},
"authors": {
"items": {
"type": "string"
},
"type": "array"
},
"homepage": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"version"
]
},
"RustCargoAuditEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"source": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"version",
"source"
]
},
"RustCargoLockEntry": {
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"source": {
"type": "string"
},
"checksum": {
"type": "string"
},
"dependencies": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"required": [
"name",
"version",
"source",
"checksum",
"dependencies"
]
},
"Schema": {
"properties": {
"version": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object",
"required": [
"version",
"url"
]
},
"SearchResult": {
"properties": {
"classification": {
"type": "string"
},
"lineNumber": {
"type": "integer"
},
"lineOffset": {
"type": "integer"
},
"seekPosition": {
"type": "integer"
},
"length": {
"type": "integer"
},
"value": {
"type": "string"
}
},
"type": "object",
"required": [
"classification",
"lineNumber",
"lineOffset",
"seekPosition",
"length"
]
},
"Secrets": {
"properties": {
"location": {
"$ref": "#/$defs/Coordinates"
},
"secrets": {
"items": {
"$ref": "#/$defs/SearchResult"
},
"type": "array"
}
},
"type": "object",
"required": [
"location",
"secrets"
]
},
"Source": {
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"type": {
"type": "string"
},
"metadata": true
},
"type": "object",
"required": [
"id",
"name",
"version",
"type",
"metadata"
]
},
"SwiftPackageManagerLockEntry": {
"properties": {
"revision": {
"type": "string"
}
},
"type": "object",
"required": [
"revision"
]
},
"licenses": {
"items": {
"$ref": "#/$defs/License"
},
"type": "array"
}
}
}