{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/mend/main/json-schema/mend-dwrresponse-pageable-collection-source-file-inventory-dto-schema.json", "title": "DWRResponsePageableCollectionSourceFileInventoryDTO", "description": "Provides insights into endpoint-supported pagination information", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/mend-library-source-files-api-openapi.yml#/components/schemas/DWRResponsePageableCollectionSourceFileInventoryDTO", "type": "object", "properties": { "additionalData": { "title": "Provides insights into endpoint-supported pagination information.", "type": "object", "description": "+ **totalItems**: The total count of data points returned in an API response.\n+ **isLastPage**: Defines whether the current page represents the conclusion of the API response. When “true”, this signifies you are viewing the last page of the API response. When “false”, this indicates there are further pages remaining." }, "supportToken": { "title": "Support Token", "type": "string" }, "retVal": { "type": "array", "items": { "$ref": "#/$defs/SourceFileInventoryDTO" } } }, "$defs": { "DescriptionAndExplanationDTO": { "type": "object", "properties": { "explanation": { "title": "Explanation Link", "type": "string" }, "indicatingText": { "title": "Indicating Text", "type": "string" }, "description": { "title": "Description", "type": "string" }, "displayText": { "title": "Display Text", "type": "string" } } }, "LicenseDTO": { "required": [ "name" ], "type": "object", "properties": { "uuid": { "title": "License Uuid", "type": "string" }, "name": { "title": "Licenses", "type": "string" }, "spdxName": { "title": "Spdx Name", "type": "string" }, "type": { "title": "Type", "type": "string" }, "suspected": { "title": "Suspected License", "type": "boolean" }, "osiApproved": { "title": "Approved Osi", "type": "boolean" }, "profile": { "$ref": "#/$defs/LicenseProfileDTO" } } }, "LicenseProfileDTO": { "type": "object", "properties": { "uuid": { "type": "string" }, "name": { "type": "string" }, "links": { "uniqueItems": true, "type": "array", "items": { "title": "Links", "type": "string" } }, "copyrightRiskScore": { "$ref": "#/$defs/RiskScoreExplanationDTO" }, "patentAndRoyaltyRisk": { "$ref": "#/$defs/RiskScoreExplanationDTO" }, "royaltyFree": { "title": "Royalty Free", "type": "string" }, "copyleft": { "$ref": "#/$defs/DescriptionAndExplanationDTO" }, "linking": { "$ref": "#/$defs/DescriptionAndExplanationDTO" }, "requiredNotices": { "type": "array", "items": { "title": "Required Notices", "type": "string" } } } }, "ProjectDTO": { "type": "object", "properties": { "uuid": { "title": "Project UUID", "type": "string" }, "name": { "title": "Project Name", "type": "string" }, "path": { "title": "Product Name", "type": "string" }, "productName": { "title": "Product Name", "type": "string" }, "productUuid": { "title": "Product Uuid", "type": "string" } } }, "RiskScoreExplanationDTO": { "type": "object", "properties": { "explanation": { "title": "Explanation Link", "type": "string" }, "indicatingText": { "title": "Indicating Text", "type": "string" }, "riskScore": { "title": "Risk Score", "type": "integer", "format": "int32" } } }, "SourceFileInventoryDTO": { "type": "object", "properties": { "uuid": { "title": "Source File UUID", "type": "string" }, "name": { "title": "Source File Name", "type": "string" }, "matchType": { "title": "Match Type", "type": "string", "enum": [ "MANUAL", "AUTOMATIC" ] }, "sha1": { "title": "SourceFileSha1", "type": "string", "enum": [ "MANUAL", "AUTOMATIC" ] }, "localPath": { "title": "Local Path", "type": "string" }, "lastModified": { "title": "Source File Last Modification Date", "type": "string", "format": "date-time" }, "library": { "$ref": "#/$defs/SourceFileLibraryDTO" }, "project": { "$ref": "#/$defs/ProjectDTO" }, "comment": { "title": "Source File Comment", "type": "string" }, "contextType": { "title": "Context Type", "type": "string", "enum": [ "SYSTEM", "GLOBAL_ACCOUNT", "DOMAIN", "PRODUCT", "PROJECT", "SCAN", "UNSUPPORTED_TYPE" ] } } }, "SourceFileLibraryDTO": { "type": "object", "properties": { "uuid": { "title": "Source Library UUID", "type": "string" }, "name": { "title": "Source Library Name", "type": "string" }, "licenses": { "type": "array", "items": { "$ref": "#/$defs/LicenseDTO" } }, "description": { "type": "string" } } } } }