Output Field Reference

July 11, 2026 · View on GitHub

⚠️ AUTO-GENERATED FILE - Do not edit manually. This file is generated from semantic metadata stored in src/output_schema/. To update, run: cargo run --manifest-path xtask/Cargo.toml --bin generate-output-field-reference

This reference documents the public ScanCode-compatible output records and fields emitted from src/output_schema/. src/output_schema/ remains the contract owner for the public output surface.

Output

Output location(s): top level

Top-level ScanCode-compatible output object.

JSON fieldValue shapeKey presenceMeaning
summaryobjectEmitted only when available.Codebase-level rollup derived during post-processing.
talliesobjectEmitted only when tally generation is enabled.Count-oriented rollup across the full scan result.
tallies_of_key_filesobjectEmitted only when key-file tallies are available.Tally rollup restricted to files treated as key files for summary scoring.
tallies_by_facetarray<object>Emitted only when facet tallies were requested.Facet-scoped tally output for user-defined facet groupings.
headersarray<object>Always emitted.Per-run metadata blocks describing tool/version/options and scan environment.
packagesarray<object>Always emitted.Assembled top-level package records visible on the public output contract.
dependenciesarray<object>Always emitted.Top-level dependency records emitted after assembly and hoisting.
license_detectionsarray<object>Always emitted.Top-level grouped license detections across the scanned codebase.
filesarray<object>Always emitted.File and directory records with the main per-resource findings surface.
license_referencesarray<object>Always emitted.Top-level unique license reference blocks for emitted detections.
license_rule_referencesarray<object>Always emitted.Top-level unique rule reference blocks for emitted detections.

OutputTopLevelDependency

Output location(s): dependencies[]

Hoisted top-level dependency record emitted after assembly.

JSON fieldValue shapeKey presenceMeaning
purlstring | nullAlways emitted.Package URL for the top-level dependency row.
extracted_requirementstring | nullAlways emitted.Raw requirement/version constraint text for the top-level dependency row.
scopestring | nullAlways emitted.Datasource-specific dependency scope such as runtime/dev/test/build.
is_runtimeboolean | nullAlways emitted.Normalized runtime intent signal when it can be derived honestly.
is_optionalboolean | nullAlways emitted.Normalized optional-dependency signal when it can be derived honestly.
is_pinnedboolean | nullAlways emitted.Normalized version-pinning signal when it can be derived honestly.
is_directboolean | nullAlways emitted.Normalized direct-vs-transitive signal when it can be derived honestly.
resolved_packageobject | nullAlways emitted.Resolved package payload nested under the top-level dependency row.
extra_dataobjectAlways emitted.Datasource-specific structured metadata preserved on the top-level dependency row.
dependency_uidstringAlways emitted.Stable identifier for the top-level dependency row on the public contract.
for_package_uidstring | nullAlways emitted.Package UID that owns this hoisted dependency row after assembly.
datafile_pathstringAlways emitted.Manifest or metadata file path that contributed this top-level dependency row.
datasource_idstringAlways emitted.Datasource identifier for the parser/input surface that contributed this row.
namespacestring | nullAlways emitted.Owning namespace lane preserved on the hoisted dependency row for output compatibility.

OutputResolvedPackage

Output location(s): dependencies[].resolved_package, files[].package_data[].dependencies[].resolved_package

Resolved package payload nested under dependency rows.

JSON fieldValue shapeKey presenceMeaning
typestringAlways emitted.Package ecosystem/type identifier on the resolved-package payload.
namespacestringAlways emitted.Resolved package namespace.
namestringAlways emitted.Resolved package name.
versionstringAlways emitted.Resolved package version.
qualifiersobjectAlways emitted.PURL-style qualifier key/value pairs on the resolved-package payload.
subpathstring | nullAlways emitted.Resolved package subpath, when available.
primary_languagestring | nullAlways emitted.Primary language associated with the resolved package.
descriptionstring | nullAlways emitted.Resolved package description.
release_datestring | nullAlways emitted.Resolved package release date.
partiesarray<object>Always emitted.Party records attached to the resolved package.
keywordsarray<string>Always emitted.Keywords attached to the resolved package.
homepage_urlstring | nullAlways emitted.Resolved package homepage URL.
download_urlstring | nullAlways emitted.Resolved package download URL.
sizeinteger | nullAlways emitted.Resolved package size when known.
sha1string | nullAlways emitted.Resolved package SHA-1 checksum when known.
md5string | nullAlways emitted.Resolved package MD5 checksum when known.
sha256string | nullAlways emitted.Resolved package SHA-256 checksum when known.
sha512string | nullAlways emitted.Resolved package SHA-512 checksum when known.
bug_tracking_urlstring | nullAlways emitted.Resolved package bug-tracker URL.
code_view_urlstring | nullAlways emitted.Resolved package code-browsing URL.
vcs_urlstring | nullAlways emitted.Resolved package VCS URL.
copyrightstring | nullAlways emitted.Resolved package copyright string.
holderstring | nullAlways emitted.Resolved package holder string.
declared_license_expressionstring | nullAlways emitted.Primary declared license expression on the resolved-package payload.
declared_license_expression_spdxstring | nullAlways emitted.SPDX-form primary declared license expression on the resolved-package payload.
license_detectionsarray<object>Always emitted.License detections attached to the resolved-package payload.
other_license_expressionstring | nullAlways emitted.Auxiliary non-primary license expression lane on the resolved-package payload.
other_license_expression_spdxstring | nullAlways emitted.SPDX-form auxiliary non-primary license expression lane on the resolved-package payload.
other_license_detectionsarray<object>Always emitted.Auxiliary license detections attached to the resolved-package payload.
extracted_license_statementstring | nullAlways emitted.Raw extracted license statement on the resolved-package payload.
notice_textstring | nullAlways emitted.Resolved package notice text.
source_packagesarray<string>Always emitted.Referenced source-package identifiers associated with the resolved package.
file_referencesarray<object>Always emitted.Referenced-file rows attached to the resolved package.
is_privatebooleanAlways emitted.Private/public signal on the resolved-package payload.
is_virtualbooleanAlways emitted.Virtual/synthetic signal on the resolved-package payload.
extra_dataobjectAlways emitted.Datasource-specific structured metadata preserved on the resolved-package payload.
dependenciesarray<object>Always emitted.Dependency rows nested under the resolved-package payload.
repository_homepage_urlstring | nullAlways emitted.Repository homepage URL for the resolved package.
repository_download_urlstring | nullAlways emitted.Repository download URL for the resolved package.
api_data_urlstring | nullAlways emitted.API data URL for the resolved package.
datasource_idstring | nullAlways emitted.Single datasource identifier associated with the resolved-package payload, when available.
purlstring | nullAlways emitted.Package URL for the resolved package.

OutputFileInfo

Output location(s): files[]

File or directory record on the main per-resource output surface.

JSON fieldValue shapeKey presenceMeaning
pathstringAlways emitted.Scan-root-relative path for the file or directory record.
typestringAlways emitted.File-vs-directory type discriminator on the public output surface.
namestringAlways emitted.Basename of the file or directory record.
base_namestringAlways emitted.Basename without extension.
extensionstringAlways emitted.Filename extension including the leading dot when one exists.
sizeintegerAlways emitted.File size in bytes for files, or zero for synthetic/default directory rows.
datestring | nullEmitted only on the file-info surface.File date metadata on the opt-in file-info surface.
sha1string | nullEmitted only on the file-info surface.SHA-1 checksum on the opt-in file-info surface.
md5string | nullEmitted only on the file-info surface.MD5 checksum on the opt-in file-info surface.
sha256string | nullEmitted only on the file-info surface.SHA-256 checksum on the opt-in file-info surface.
sha1_gitstring | nullEmitted only on the file-info surface.Git-style SHA-1 checksum on the opt-in file-info surface.
mime_typestring | nullEmitted only on the file-info surface.Detected MIME type on the opt-in file-info surface.
file_typestring | nullEmitted only on the file-info surface.Additional file-type label on the opt-in file-info surface.
programming_languagestring | nullEmitted only on the file-info surface.Language hint derived by file classification rather than package parsing.
is_binaryboolean | nullEmitted only on the file-info surface.Binary-file hint on the opt-in file-info surface.
is_textboolean | nullEmitted only on the file-info surface.Text-file hint on the opt-in file-info surface.
is_archiveboolean | nullEmitted only on the file-info surface.Archive-file hint on the opt-in file-info surface.
is_mediaboolean | nullEmitted only on the file-info surface.Media-file hint on the opt-in file-info surface.
is_sourceboolean | nullEmitted only on the file-info surface.Source-file hint on the opt-in file-info surface.
is_scriptboolean | nullEmitted only on the file-info surface.Script-file hint on the opt-in file-info surface.
files_countinteger | nullEmitted only on the file-info surface.Nested file count on directory/info records when available.
dirs_countinteger | nullEmitted only on the file-info surface.Nested directory count on directory/info records when available.
size_countinteger | nullEmitted only on the file-info surface.Aggregated nested size count on directory/info records when available.
package_dataarray<object>Always emitted.Raw parser-emitted package rows attached to this file record.
detected_license_expressionstring | nullAlways emitted.Primary file-level license expression in ScanCode license keys after grouping detections; the scancode-key counterpart of detected_license_expression_spdx.
detected_license_expression_spdxstring | nullAlways emitted.Primary SPDX-oriented file-level license expression after grouping detections and applying strict combination rules.
license_detectionsarray<object>Always emitted.Grouped license detections attached to this file record.
license_cluesarray<object>Emitted only when non-empty.Low-confidence or clue-only matches that are surfaced separately from concrete detections.
percentage_of_license_textnumber | nullEmitted only when a percentage was computed.Approximate proportion of the file that participated in license text matches.
copyrightsarray<object>Always emitted.File-level copyright evidence records.
holdersarray<object>Always emitted.File-level holder evidence records.
authorsarray<object>Always emitted.File-level author evidence records.
emailsarray<object>Emitted only when non-empty.File-level extracted email records.
urlsarray<object>Always emitted.File-level extracted URL records.
for_packagesarray<string>Always emitted.Package UIDs that this file record is attached to after assembly or file-reference resolution.
scan_errorsarray<string>Always emitted.Per-file problems that did not prevent the overall scan from completing.
license_policyarray<object> | nullEmitted only when policy output is available.Policy decoration entries attached to the file’s license findings when policy evaluation ran.
is_generatedboolean | nullEmitted only when generated-code classification ran.Generated-code signal on the info/classification surface.
source_countinteger | nullEmitted only when source counts are available.Count of nested source files on directory/info records when available.
is_legalbooleanEmitted only when true.Marks a file treated as legal-material evidence for key-file and summary logic.
is_manifestbooleanEmitted only when true.Marks a file treated as a manifest-like key file for package or summary logic.
is_readmebooleanEmitted only when true.Marks a file treated as README-style descriptive project metadata.
is_top_levelbooleanEmitted only when true.Marks a file treated as top-level for summary or package-root reasoning, even if filesystem depth differs.
is_key_filebooleanEmitted only when true.Marks a file that participates directly in summary and license clarity scoring.
is_referencedbooleanEmitted only when true.Marks a file whose content was followed as referenced evidence from another scanned file or package record.
is_communitybooleanEmitted only when true.Marks a file treated as community-material evidence on the classification surface.
facetsarray<string>Emitted only when non-empty.Facet labels attached by user-defined facet rules for tally grouping.
talliesobject | nullEmitted only when file-level tallies were requested.Per-file or per-directory tally block emitted by detailed tally workflows.

OutputAuthor

Output location(s): files[].authors[]

File-level author evidence record.

JSON fieldValue shapeKey presenceMeaning
authorstringAlways emitted.Extracted author string.
start_lineintegerAlways emitted.First line where the author evidence appeared.
end_lineintegerAlways emitted.Last line where the author evidence appeared.

OutputCopyright

Output location(s): files[].copyrights[]

File-level copyright evidence record.

JSON fieldValue shapeKey presenceMeaning
copyrightstringAlways emitted.Rendered copyright string, using native or ScanCode compatibility mode as selected.
start_lineintegerAlways emitted.First line where the copyright evidence appeared.
end_lineintegerAlways emitted.Last line where the copyright evidence appeared.

OutputEmail

Output location(s): files[].emails[]

File-level email evidence record.

JSON fieldValue shapeKey presenceMeaning
emailstringAlways emitted.Extracted email address.
start_lineintegerAlways emitted.First line where the email evidence appeared.
end_lineintegerAlways emitted.Last line where the email evidence appeared.

OutputHolder

Output location(s): files[].holders[]

File-level holder evidence record.

JSON fieldValue shapeKey presenceMeaning
holderstringAlways emitted.Extracted copyright holder string.
start_lineintegerAlways emitted.First line where the holder evidence appeared.
end_lineintegerAlways emitted.Last line where the holder evidence appeared.

OutputMatch

Output location(s): files[].license_clues[], files[].license_detections[].matches[], license_detections[].reference_matches[]

Match record used for clue output, grouped detections, and top-level representative references.

JSON fieldValue shapeKey presenceMeaning
license_expressionstringAlways emitted.License expression assigned to this individual match.
license_expression_spdxstringAlways emitted.SPDX-form expression assigned to this individual match.
from_filestring | nullAlways emitted.Repo-relative path of the file the match came from (same value as the resource path).
start_lineintegerAlways emitted.First line covered by the match.
end_lineintegerAlways emitted.Last line covered by the match.
matcherstring | nullEmitted only when available.Matcher kind that produced the match.
scorenumberAlways emitted.Match score on the public output scale.
matched_lengthinteger | nullEmitted only when available.Matched token/text length when tracked.
match_coveragenumber | nullEmitted only when available.Coverage ratio for the match when tracked.
rule_relevanceinteger | nullEmitted only when available.Rule relevance score when tracked.
rule_identifierstring | nullEmitted only when available.Identifier of the matched rule when available.
rule_urlstring | nullAlways emitted.Rule URL when available.
matched_textstring | nullEmitted only when available.Matched text payload when text output is enabled.
matched_text_diagnosticsstring | nullEmitted only when available.Diagnostic rendering of the matched text when enabled.
referenced_filenamesarray<string> | nullEmitted only when available.Referenced filenames captured on the matched rule when applicable.

OutputLicenseDetection

Output location(s): files[].license_detections[], files[].package_data[].license_detections[], packages[].license_detections[], dependencies[].resolved_package.license_detections[]

Grouped license detection record used on file, package_data, package, and resolved-package surfaces.

JSON fieldValue shapeKey presenceMeaning
license_expressionstringAlways emitted.Grouped license expression for the detection block.
license_expression_spdxstringAlways emitted.SPDX-form expression for the detection block.
matchesarray<object>Always emitted.Match records that contributed to this grouped file- or package-level detection.
detection_logarray<string>Emitted only when non-empty.Notes explaining post-processing or grouping decisions for this detection.
identifierstring | nullAlways emitted.Stable detection identifier when available.

OutputLicensePolicyEntry

Output location(s): files[].license_policy[]

Policy decoration entry attached to file-level license-policy output.

JSON fieldValue shapeKey presenceMeaning
license_keystringAlways emitted.License key this policy entry applies to.
labelstringAlways emitted.Human-facing policy label for the license.
color_codestringAlways emitted.Color code used by policy-aware outputs or UIs.
iconstringAlways emitted.Icon identifier used by policy-aware outputs or UIs.
compliance_alertstring ("error" | "warning")Emitted only when the policy entry sets a compliance severity.Provenant compliance severity driving the --fail-on gate and SARIF output.

OutputPackageData

Output location(s): files[].package_data[]

Raw parser-emitted package record attached to a specific file.

JSON fieldValue shapeKey presenceMeaning
typestring | nullAlways emitted.Package ecosystem/type identifier on a file-local package_data row.
namespacestring | nullAlways emitted.Package namespace on the file-local package_data row.
namestring | nullAlways emitted.Package name on the file-local package_data row.
versionstring | nullAlways emitted.Package version on the file-local package_data row.
qualifiersobjectAlways emitted.PURL-style qualifier key/value pairs on a file-local package_data row.
subpathstring | nullAlways emitted.Package subpath on the file-local package_data row.
primary_languagestring | nullAlways emitted.Primary language associated with the file-local package_data row.
descriptionstring | nullAlways emitted.Package description on the file-local package_data row.
release_datestring | nullAlways emitted.Release date on the file-local package_data row.
partiesarray<object>Always emitted.Party records attached to the file-local package_data row.
keywordsarray<string>Always emitted.Keywords attached to the file-local package_data row.
homepage_urlstring | nullAlways emitted.Homepage URL on the file-local package_data row.
download_urlstring | nullAlways emitted.Download URL on the file-local package_data row.
sizeinteger | nullAlways emitted.Package size on the file-local package_data row when known.
sha1string | nullAlways emitted.SHA-1 checksum on the file-local package_data row when known.
md5string | nullAlways emitted.MD5 checksum on the file-local package_data row when known.
sha256string | nullAlways emitted.SHA-256 checksum on the file-local package_data row when known.
sha512string | nullAlways emitted.SHA-512 checksum on the file-local package_data row when known.
bug_tracking_urlstring | nullAlways emitted.Bug-tracker URL on the file-local package_data row.
code_view_urlstring | nullAlways emitted.Code-view URL on the file-local package_data row.
vcs_urlstring | nullAlways emitted.VCS URL on the file-local package_data row.
copyrightstring | nullAlways emitted.Copyright string on the file-local package_data row.
holderstring | nullAlways emitted.Holder string on the file-local package_data row.
declared_license_expressionstring | nullAlways emitted.Primary declared license expression on the file-local package_data row.
declared_license_expression_spdxstring | nullAlways emitted.SPDX-form primary declared license expression on the file-local package_data row.
license_detectionsarray<object>Always emitted.Structured license detections attached to the raw parser-emitted package_data row.
other_license_expressionstring | nullAlways emitted.Auxiliary non-primary license expression lane for the package_data row.
other_license_expression_spdxstring | nullAlways emitted.SPDX-form auxiliary non-primary license expression lane for the package_data row.
other_license_detectionsarray<object>Always emitted.Detections associated with the auxiliary or non-primary license lane.
extracted_license_statementstring | nullAlways emitted.Raw extracted license statement on the package_data row.
notice_textstring | nullAlways emitted.Notice text on the package_data row.
source_packagesarray<string>Always emitted.Referenced source-package identifiers preserved on the raw package_data row.
file_referencesarray<object>Always emitted.File-reference hints emitted by parsers for later resolution or ownership assignment.
is_privatebooleanAlways emitted.Private/public package signal on the raw parser-emitted row.
is_virtualbooleanAlways emitted.Virtual/synthetic package signal on the raw parser-emitted row.
extra_dataobjectAlways emitted.Datasource-specific structured metadata preserved without promotion into core fields.
dependenciesarray<object>Always emitted.Raw dependency rows emitted directly by the parser before top-level assembly.
repository_homepage_urlstring | nullAlways emitted.Repository homepage URL on the file-local package_data row.
repository_download_urlstring | nullAlways emitted.Repository download URL on the file-local package_data row.
api_data_urlstring | nullAlways emitted.API data URL on the file-local package_data row.
datasource_idstring | nullAlways emitted.Single datasource identifier for the parser surface that produced this package_data row.
purlstring | nullAlways emitted.Package URL on the file-local package_data row.

OutputDependency

Output location(s): files[].package_data[].dependencies[]

Raw dependency row preserved on parser-emitted package data.

JSON fieldValue shapeKey presenceMeaning
purlstring | nullAlways emitted.Package URL for the dependency row.
extracted_requirementstring | nullAlways emitted.Raw requirement/version constraint text extracted from the manifest or lockfile.
scopestring | nullAlways emitted.Datasource-specific dependency scope such as runtime/dev/test/build.
is_runtimeboolean | nullAlways emitted.Normalized runtime intent signal when it can be derived honestly.
is_optionalboolean | nullAlways emitted.Normalized optional-dependency signal when it can be derived honestly.
is_pinnedboolean | nullAlways emitted.Normalized version-pinning signal when it can be derived honestly.
is_directboolean | nullAlways emitted.Normalized direct-vs-transitive signal when it can be derived honestly.
resolved_packageobject | nullAlways emitted.Resolved package identity/details nested directly under the dependency row.
extra_dataobjectAlways emitted.Datasource-specific dependency metadata preserved without promotion into core fields.

OutputFileReference

Output location(s): files[].package_data[].file_references[], dependencies[].resolved_package.file_references[]

Referenced-file record used on package-related surfaces.

JSON fieldValue shapeKey presenceMeaning
pathstringAlways emitted.Referenced file path preserved on the package/file-reference surface.
sizeinteger | nullEmitted only when available.Referenced file size when known.
sha1string | nullAlways emitted.Referenced file SHA-1 checksum when known.
md5string | nullAlways emitted.Referenced file MD5 checksum when known.
sha256string | nullAlways emitted.Referenced file SHA-256 checksum when known.
sha512string | nullAlways emitted.Referenced file SHA-512 checksum when known.
extra_dataobjectAlways emitted.Additional metadata preserved on the referenced-file row.

OutputFileType

Output location(s): files[].type

Serialized file-type enum used by file records.

This record has no nested fields on the public output surface.

OutputURL

Output location(s): files[].urls[]

File-level URL evidence record.

JSON fieldValue shapeKey presenceMeaning
urlstringAlways emitted.Extracted URL string.
start_lineintegerAlways emitted.First line where the URL evidence appeared.
end_lineintegerAlways emitted.Last line where the URL evidence appeared.

OutputHeader

Output location(s): headers[]

Per-run metadata block for one scan invocation.

JSON fieldValue shapeKey presenceMeaning
tool_namestringAlways emitted.Scanner tool name recorded for the run.
tool_versionstringAlways emitted.Scanner version recorded for the run.
optionsobjectAlways emitted.Serialized scan options so downstream readers can interpret how the run was performed.
noticestringAlways emitted.Run-level legal or attribution notice emitted by the scanner.
start_timestampstringAlways emitted.Run start timestamp.
end_timestampstringAlways emitted.Run end timestamp.
output_format_versionstringAlways emitted.Version of the public output format contract used by this run.
durationnumberAlways emitted.Wall-clock scan duration recorded for the run.
errorsarray<string>Always emitted.Run-level errors recorded in the header rather than on a specific file.
warningsarray<string>Always emitted.Run-level warnings recorded in the header rather than on a specific file.
extra_dataobjectAlways emitted.Scanner-owned counts and provenance metadata that augment the header contract.

OutputExtraData

Output location(s): headers[].extra_data

Scanner-owned counts and provenance metadata nested under a header block.

JSON fieldValue shapeKey presenceMeaning
spdx_license_list_versionstringAlways emitted.The SPDX license list version associated with the effective license data used for the run.
files_countintegerAlways emitted.Count of file records seen by the scan pipeline.
directories_countintegerAlways emitted.Count of directory records seen by the scan pipeline.
excluded_countintegerAlways emitted.Count of paths excluded before file processing completed.
license_index_provenanceobjectEmitted only when index provenance is available.Provenance metadata for the effective embedded or custom license index used during detection.

OutputLicenseIndexProvenance

Output location(s): headers[].extra_data.license_index_provenance

Provenance block for the effective license index used by the scan.

JSON fieldValue shapeKey presenceMeaning
sourcestringAlways emitted.Source lane for the effective license index, such as embedded or custom dataset.
dataset_fingerprintstringAlways emitted.Stable fingerprint for the effective license dataset contents.
ignored_rulesarray<string>Emitted only when non-empty.Rule identifiers excluded while building the effective index.
ignored_licensesarray<string>Emitted only when non-empty.License keys excluded while building the effective index.
ignored_rules_due_to_licensesarray<string>Emitted only when non-empty.Rules excluded indirectly because their owning licenses were excluded.
added_rulesarray<string>Emitted only when non-empty.Rule identifiers added by local overlays or custom dataset input.
replaced_rulesarray<string>Emitted only when non-empty.Rule identifiers replaced by local overlays or custom dataset input.
added_licensesarray<string>Emitted only when non-empty.License keys added by local overlays or custom dataset input.
replaced_licensesarray<string>Emitted only when non-empty.License keys replaced by local overlays or custom dataset input.

OutputSystemEnvironment

Output location(s): headers[].extra_data.system_environment

Recorded environment metadata for the scan runtime.

JSON fieldValue shapeKey presenceMeaning
operating_systemstringAlways emitted.Operating-system name recorded for the scan environment.
cpu_architecturestringAlways emitted.CPU architecture recorded for the scan environment.
platformstringAlways emitted.Platform family recorded for the scan environment.
platform_versionstringAlways emitted.Platform version recorded for the scan environment.
rust_versionstringAlways emitted.Rust toolchain version used by the scanner binary.

OutputTopLevelLicenseDetection

Output location(s): license_detections[]

Grouped top-level license detection block across the scanned codebase.

JSON fieldValue shapeKey presenceMeaning
identifierstringAlways emitted.Stable grouped-detection identifier for this top-level license detection block.
license_expressionstringAlways emitted.Grouped license expression for the top-level detection block.
license_expression_spdxstringAlways emitted.SPDX-form grouped license expression for the top-level detection block.
detection_countintegerAlways emitted.Number of file-level detections that contributed to this grouped top-level block.
detection_logarray<string>Emitted only when non-empty.Grouping-time notes that explain why this top-level detection looks the way it does.
reference_matchesarray<object>Always emitted.Representative match/reference records retained on the top-level grouped detection block.

OutputLicenseReference

Output location(s): license_references[]

Top-level license reference record describing one emitted license key and its reference metadata.

JSON fieldValue shapeKey presenceMeaning
keystring | nullEmitted only when available.Primary ScanCode-style license key when one is available for the reference block.
languagestring | nullEmitted only when available.Language tag for the referenced license text when the license reference is language-specific.
namestringAlways emitted.Canonical human-facing name of the referenced license.
short_namestringAlways emitted.Short display name of the referenced license.
ownerstring | nullEmitted only when available.Owning organization or steward of the referenced license, when captured.
homepage_urlstring | nullEmitted only when available.Homepage URL for the referenced license.
spdx_license_keystringAlways emitted.Primary SPDX license key associated with the referenced license.
other_spdx_license_keysarray<string>Emitted only when non-empty.Additional SPDX license keys associated with the same referenced license.
osi_license_keystring | nullEmitted only when available.OSI license key when the referenced license is recognized by OSI.
text_urlsarray<string>Emitted only when non-empty.URLs to known license text sources for this referenced license.
osi_urlstring | nullEmitted only when available.OSI detail page URL for the referenced license.
faq_urlstring | nullEmitted only when available.FAQ URL for the referenced license.
other_urlsarray<string>Emitted only when non-empty.Additional URLs associated with the referenced license.
categorystring | nullEmitted only when available.License category label, when the license data classifies it.
is_exceptionbooleanAlways emitted.Whether the referenced license is an exception rather than a standalone license.
is_unknownbooleanAlways emitted.Whether the referenced license is treated as an unknown or placeholder license.
is_genericbooleanAlways emitted.Whether the referenced license is generic rather than a specific named license.
notesstring | nullEmitted only when available.Additional notes carried by the referenced license record.
minimum_coverageinteger | nullEmitted only when available.Minimum coverage threshold associated with the referenced license, when specified.
standard_noticestring | nullEmitted only when available.Standard notice text associated with the referenced license.
ignorable_copyrightsarray<string>Emitted only when non-empty.Copyright strings considered ignorable for this referenced license.
ignorable_holdersarray<string>Emitted only when non-empty.Holder strings considered ignorable for this referenced license.
ignorable_authorsarray<string>Emitted only when non-empty.Author strings considered ignorable for this referenced license.
ignorable_urlsarray<string>Emitted only when non-empty.URL strings considered ignorable for this referenced license.
ignorable_emailsarray<string>Emitted only when non-empty.Email strings considered ignorable for this referenced license.
scancode_urlstring | nullEmitted only when available.ScanCode reference URL for this license, when available.
licensedb_urlstring | nullEmitted only when available.LicenseDB URL for this license, when available.
spdx_urlstring | nullEmitted only when available.SPDX reference URL for this license, when available.
textstringAlways emitted.Canonical license text payload preserved on the reference block.

OutputLicenseRuleReference

Output location(s): license_rule_references[]

Top-level license-rule reference record describing one emitted rule and its reference metadata.

JSON fieldValue shapeKey presenceMeaning
identifierstringAlways emitted.Stable identifier of the referenced license rule.
license_expressionstringAlways emitted.License expression associated with the referenced rule.
is_license_textbooleanAlways emitted.Whether the rule is classified as license-text evidence.
is_license_noticebooleanAlways emitted.Whether the rule is classified as license-notice evidence.
is_license_referencebooleanAlways emitted.Whether the rule is classified as license-reference evidence.
is_license_tagbooleanAlways emitted.Whether the rule is classified as license-tag evidence.
is_license_cluebooleanAlways emitted.Whether the rule is classified as clue-only evidence.
is_license_introbooleanAlways emitted.Whether the rule is classified as introductory license wording.
languagestring | nullEmitted only when available.Language tag for the referenced rule when the rule is language-specific.
rule_urlstring | nullEmitted only when available.Reference URL for the rule, when available.
is_required_phrasebooleanAlways emitted.Whether the rule is a required-phrase rule.
skip_for_required_phrase_generationbooleanAlways emitted.Whether this rule should be excluded when deriving required-phrase rules automatically.
replaced_byarray<string>Emitted only when non-empty.Rule identifiers that supersede this rule.
is_continuousbooleanAlways emitted.Whether the rule expects continuous text rather than discontinuous matches.
is_syntheticbooleanAlways emitted.Whether the rule was synthesized rather than sourced directly from curated reference text.
is_from_licensebooleanAlways emitted.Whether the rule was derived directly from a license text record.
lengthintegerAlways emitted.Rule length on the public rule-reference surface.
relevanceinteger | nullEmitted only when available.Rule relevance score, when present.
minimum_coverageinteger | nullEmitted only when available.Minimum coverage threshold associated with the rule, when specified.
referenced_filenamesarray<string>Emitted only when non-empty.Referenced filenames attached to the rule metadata.
notesstring | nullEmitted only when available.Additional notes carried by the rule reference.
ignorable_copyrightsarray<string>Emitted only when non-empty.Copyright strings considered ignorable for this rule.
ignorable_holdersarray<string>Emitted only when non-empty.Holder strings considered ignorable for this rule.
ignorable_authorsarray<string>Emitted only when non-empty.Author strings considered ignorable for this rule.
ignorable_urlsarray<string>Emitted only when non-empty.URL strings considered ignorable for this rule.
ignorable_emailsarray<string>Emitted only when non-empty.Email strings considered ignorable for this rule.
textstring | nullEmitted only when available.Canonical rule text payload when the reference includes it.

OutputPackage

Output location(s): packages[]

Assembled top-level package record on the public output contract.

JSON fieldValue shapeKey presenceMeaning
typestring | nullAlways emitted.Package ecosystem/type identifier on the public ScanCode-compatible surface.
namespacestring | nullAlways emitted.Package namespace on the public package surface.
namestring | nullAlways emitted.Package name on the public package surface.
versionstring | nullAlways emitted.Package version on the public package surface.
qualifiersobjectAlways emitted.PURL-style qualifier key/value pairs. Empty object when qualifiers are absent.
subpathstring | nullAlways emitted.Package subpath on the public package surface.
primary_languagestring | nullAlways emitted.Primary language associated with the package.
descriptionstring | nullAlways emitted.Package description.
release_datestring | nullAlways emitted.Package release date.
partiesarray<object>Always emitted.Party records attached to the package.
keywordsarray<string>Always emitted.Keywords attached to the package.
homepage_urlstring | nullAlways emitted.Package homepage URL.
download_urlstring | nullAlways emitted.Package download URL.
sizeinteger | nullAlways emitted.Package size when known.
sha1string | nullAlways emitted.Package SHA-1 checksum when known.
md5string | nullAlways emitted.Package MD5 checksum when known.
sha256string | nullAlways emitted.Package SHA-256 checksum when known.
sha512string | nullAlways emitted.Package SHA-512 checksum when known.
bug_tracking_urlstring | nullAlways emitted.Package bug-tracker URL.
code_view_urlstring | nullAlways emitted.Package code-view URL.
vcs_urlstring | nullAlways emitted.Package VCS URL.
copyrightstring | nullAlways emitted.Package copyright string.
holderstring | nullAlways emitted.Package holder string.
declared_license_expressionstring | nullAlways emitted.Primary declared license expression on the package record.
declared_license_expression_spdxstring | nullAlways emitted.SPDX-form primary declared license expression on the package record.
license_detectionsarray<object>Always emitted.Structured declared or extracted license detections attached to the package record.
other_license_expressionstring | nullAlways emitted.Non-primary declared license text normalized into an auxiliary expression lane.
other_license_expression_spdxstring | nullAlways emitted.SPDX-form auxiliary non-primary declared license expression on the package record.
other_license_detectionsarray<object>Always emitted.Detections associated with the auxiliary or non-primary license lane.
extracted_license_statementstring | nullAlways emitted.Raw extracted license statement on the package record.
notice_textstring | nullAlways emitted.Package notice text.
source_packagesarray<string>Always emitted.Referenced source-package package URLs or identifiers associated with this package.
is_privatebooleanAlways emitted.Package-level private/public signal when the parser or datasource can state it confidently.
is_virtualbooleanAlways emitted.Marks package records that represent virtual or synthetic package identities rather than concrete deliverables.
extra_dataobjectAlways emitted.Datasource-specific structured metadata preserved without promoting it into the core package contract. Empty object when extra data is absent.
repository_homepage_urlstring | nullAlways emitted.Repository homepage URL for the package.
repository_download_urlstring | nullAlways emitted.Repository download URL for the package.
api_data_urlstring | nullAlways emitted.API data URL for the package.
purlstring | nullAlways emitted.Package URL for the package record.
package_uidstringAlways emitted.Stable package identifier used internally and on output links such as for_packages.
datafile_pathsarray<string>Always emitted.Manifest or metadata file paths that contributed to this assembled package record.
datasource_idsarray<string>Always emitted.Datasource identifiers that explain which parser/input surfaces contributed to this package record.

OutputDatasourceId

Output location(s): packages[].datasource_ids[], dependencies[].datasource_id, files[].package_data[].datasource_id

Serialized datasource-id string newtype used by package and dependency records.

This record has no nested fields on the public output surface.

OutputParty

Output location(s): packages[].parties[], files[].package_data[].parties[], dependencies[].resolved_package.parties[]

Party record used on package and resolved-package surfaces.

JSON fieldValue shapeKey presenceMeaning
typestring | nullAlways emitted.Normalized party type such as person or organization.
rolestring | nullAlways emitted.Role of the party on the package or metadata record.
namestring | nullAlways emitted.Human-readable party name.
emailstring | nullAlways emitted.Party email address.
urlstring | nullAlways emitted.Party homepage or profile URL.
organizationstring | nullEmitted only when available.Owning organization for the party, when captured separately from the party name.
organization_urlstring | nullEmitted only when available.Owning organization URL for the party.
timezonestring | nullEmitted only when available.Timezone associated with the party metadata, when available.

OutputPackageType

Output location(s): packages[].type, files[].package_data[].type

Serialized package-type string newtype used by package-related records.

This record has no nested fields on the public output surface.

OutputSummary

Output location(s): summary

Optional codebase-level rollup emitted by summary/classification workflows.

JSON fieldValue shapeKey presenceMeaning
declared_license_expressionstringEmitted only when the summary can derive a declared expression.Best summary-level declared license rollup derived from key files and assembled package data.
license_clarity_scoreobjectEmitted only when clarity scoring is available.Structured clarity signal explaining how complete and trustworthy the summary-level licensing evidence looks.
other_license_expressionsarray<object>Emitted only when non-empty.Secondary license expressions that contributed to the summary but were not chosen as the primary declared expression.
other_holdersarray<object>Emitted only when non-empty.Secondary holders that contributed to the summary but were not chosen as the primary holder.
other_languagesarray<object>Emitted only when non-empty.Secondary languages that contributed to the summary but were not chosen as the primary language.

OutputLicenseClarityScore

Output location(s): summary.license_clarity_score

Structured license-clarity scoring payload on the summary surface.

JSON fieldValue shapeKey presenceMeaning
scoreintegerAlways emitted.Overall clarity score for the summary-level licensing evidence.
declared_licensebooleanAlways emitted.Whether clear declared-license evidence was found.
identification_precisionbooleanAlways emitted.Whether the detected licensing evidence is precise rather than vague or generic.
has_license_textbooleanAlways emitted.Whether substantive license-text evidence was found.
declared_copyrightsbooleanAlways emitted.Whether declared copyright evidence was found in the key-file set.
conflicting_license_categoriesbooleanAlways emitted.Whether the evidence contains conflicting license-category signals.
ambiguous_compound_licensingbooleanAlways emitted.Whether the evidence suggests a compound license situation that remains ambiguous.

OutputTallyEntry

Output location(s): summary.other_license_expressions[], summary.other_holders[], summary.other_languages[], tallies.*[]

Single tally bucket entry used throughout summary and tally outputs.

JSON fieldValue shapeKey presenceMeaning
valuestring | nullAlways emitted.Bucket value represented by the tally row.
countintegerAlways emitted.Number of occurrences counted into this tally bucket.

OutputTallies

Output location(s): tallies, tallies_of_key_files, files[].tallies, tallies_by_facet[].tallies

Tally block used on top-level, key-file, facet, and file-level tally surfaces.

JSON fieldValue shapeKey presenceMeaning
detected_license_expressionarray<object>Emitted only when non-empty.Tally entries for file-level detected license expressions.
copyrightsarray<object>Emitted only when non-empty.Tally entries for copyright strings.
holdersarray<object>Emitted only when non-empty.Tally entries for copyright holders.
authorsarray<object>Emitted only when non-empty.Tally entries for author strings.
programming_languagearray<object>Emitted only when non-empty.Tally entries for detected programming-language hints.

OutputFacetTallies

Output location(s): tallies_by_facet[]

Facet-specific tally wrapper for one user-defined facet label.

JSON fieldValue shapeKey presenceMeaning
facetstringAlways emitted.Facet label for this grouped tally block.
talliesobjectAlways emitted.Tally payload for this single facet.